Not a dd-wrt / tomato expert but check these programs for errors. They are the default needed to develop on android and might fix something you are missing.
Also reinstall lzma and other archive programs, check "glibc gdm" , sry I am using gentoo so bare with me.
This below should be the same for Ubuntu / ??fedora?? or for what you need.
Ubuntu needed for android:
sudo aptitude install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev ncurses-dev libc6-dev-i386
sudo aptitude install libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind
Side note:
If you are building under x86_64 you may encounter the following errors:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
You should install g++-multilib:
sudo apt-get install g++-multilib
If you are experiencing the following errors:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
You should install lib32z1-dev:
sudo apt-get install lib32z1-dev
If you are experiencing the following errors:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: cannot find -lncurses
You should install lib32ncurses5-dev:
sudo apt-get install lib32ncurses5-dev
Final thing is to check that you have a good copy of the uclibc toolchain, the toolchain is hit or miss.
Hope this gets you in the right direction towards a solution. If not google libstdc++.so.5 .

RSS


Update: I tried running "lzma --help" and got the same error message, so apparently the missing shared library is missing from my Fedora system, not the embedded images. I'll check the general tubz for an answer.
It sure is annoying that the lzma requires this, tho. Didn't windows DLL nightmares convince people that shared libraries are a really bad idea?