/bin/sh: Syntax error: Bad fd number
make: *** [depend] Error 2
This is because the default ubuntu 10.04 setting uses dash instead of bash for sh command. Thus, rename the old link of /bin/sh to dash and create new link of /bin/sh to bash.
cd /bin
sudo mv sh sh_orig
sudo ln -s /bin/bash sh