I haven't compiled the latest wallet, but when I compiled the last time I had some dependencies to add:
sudo apt-get install libboost-all-dev
sudo apt-get install libdb++-dev
and some changes in the src tree, provided by onnz
mkdir -p src/obj/XtraBYtes
cd src/leveldb && make libleveldb.a libmemenv.a
I would recommend to borz to add this dir to the src tree and add the make instructions for the db to the makefile.unix
good luck