[pocket-linux] Chapter 3. The dreaded libc.so.6

Miguel Servin El.Servas at gmail.com
Tue Oct 26 22:08:18 CDT 2004


Hi folks.

I recently decided to build the pocket-linux and I have to say it is a
very educational and enjoyable experience. :)...until chapter 3.

I'm experiencing problems trying to build my chapter 3 rootdisk,
because every time the kernel try to load /bin/sh, it panics and die:

Init (or /bin/sh): error while loading shared libraries: libc.so.6:
cannot open shared object file: No such file or directory.

I know is not the ramdisk support on my kernel, because my boot disk
can use the rootdisk image from the pocket-linux home page. (and
viceversa: the bootdisk from the homepage dies with the same error
when using my rootdisk.)

I've reading the archives, searching the web, and I can find some
other people who gets the same error message, but I can't seem to find
a solution. (that...combined with the fact that I'm pretty new to
Linux)

Whether I compile Bash 2.05a or 3.0, I get the same error.
I even tried not targeting for i386, but still no go. (not exporting
the CC variable and omitting the --host= parameter) It just can' find
the library.
Leaving the libraries unstripped didn't work.
The file permissions are ok, (0755) (and yes, I checked the libraries
are not just the symlinks from my original /lib)
I even created symlinks to the libraries in /bin, but still no go.

NO SUCH FILE OR DIRECTORY.

The output from ldd tells me that bash uses /lib/tls/libc.so.6 so I
used that first, and then with the one in /lib but nothing.

To me, somehow the binary can't find the library, and I just don't
why... even if the libraries are there... where they're supposed to
be. Maybe it's something very simple, like setting a variable when
doing the compile or something like that, but honestly I don't know
what.

I don't want to use the disk image from the homepage because I would
like to do the actual building myself (that's what this project is
about, right?), and besides I think I can run into the same problems
when building the rest of the utils, so I need to know what to tweak.

I'm using a disconnected RedHat 9 box for the project (No updates or
patches), on a PIII 500Mhz, thought it was broken, but no. :)

I hope someone can point me to the right direction.

Thank you very much.

El Servas.



More information about the Pocket-Linux mailing list