OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 80411.5
October 4, 2011 10:03 PM

Categories: WGR614L (Legacy Product)

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

john bartas

Member
Joined: 09/27/2011

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-

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

October 5, 2011 5:26 PM

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?

October 6, 2011 2:39 AM

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 .

October 8, 2011 9:50 AM

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.

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window