LZMA can't find libstdc++.so.5

3 posts / 0 new
Last post
john bartas
john bartas's picture
LZMA can't find libstdc++.so.5

Total newbie here - I decided to try building DDWRT for the WGR614 since I happen to have one from a few years ago. Once I fixed a few things I found answered on this site (get 32-bit trx.zip, etc) I almost made it, but now I'm stuck. 

During the final "make install" step I got this:

##########################################
### Create LZMA kernel ####################
mipsel-linux-objcopy -O binary -g /home/jbartas/work/ddwrt/bcm5354/src/linux/linux/vmlinux /home/jbartas/work/ddwrt/bcm5354/src/router/mipsel/vmlinux.bin
../../tools/lzma e /home/jbartas/work/ddwrt/bcm5354/src/router/mipsel/vmlinux.bin /home/jbartas/work/ddwrt/bcm5354/src/router/mipsel/vmlinux.lzma
../../tools/lzma: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

The ./lib Makefile has some instructions to build this, but they are commented out. I un-commented them (I know, dangerous) and the named file was built, but lzma still can't find it.

My quesitons:

1) What exactly is this file?

2) Why is it commented out of the Makefile?

3) Why does lzma want it?

4) Why can't lzma find it in the lib directory?

I want to learn here, so don't spare the technical details :-)  Any enlightenment would be greatly appreciated.

-JB-

john bartas
john bartas's picture
Update: I tried running "lzma

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?

john bartas
john bartas's picture
Thanks MadRocker,

Thanks MadRocker,
Yesterday (at a friends suggestion) I was actually able to "yum" the missing library into my Fedora system and get things built. I now have a binary, ready to flash.

Unfortunately my old Linksys home router died and I had the press the Netgear into service. I'm afraid to flash it now, because if I brick it I have no Internet at home. So next week it's off to Best Buy to pick up a Netgear 3500 - then I'll have two routers to play with.