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

Miguel Angel Servin Velazquez miguel.servin.velazquez at banorte.com
Wed Oct 27 19:29:39 CDT 2004


Hi Eric. Thanks for your reply. :)

So you're telling me to compile bash with it's libraries linked statically and use it with the compressed image in the root disk, Right?

I will do it, but I almost can tell it's going to work well.

The problem I see is not the compressed image not loading well, but instead the dynamically-linked bash not finding the libraries it needs.
BUT... I can be wrong, so I will try it tonight when I get home. :D

I'll keep you posted.
_________
El Servas

-----Original Message-----
From: pocket-linux-bounces at ufo.chicago.il.us [mailto:pocket-linux-bounces at ufo.chicago.il.us] On Behalf Of Eric Wanchic
Sent: Miércoles, 27 de Octubre de 2004 01:17 p.m.
To: 'Miguel Servin'; 'Support for Pocket Linux Guide'
Subject: RE: [pocket-linux] Chapter 3. The dreaded libc.so.6

Hey Miguel,
  Glad to see you taking an interest in Pocket Linux. We are all here to
help you, and we'll do our best to see you thru the glitchy hurdels. Like
you probably read previously, I just finished Chapter 3 and I need to post
some issues w/ solutions that I experienced. However, I don't think anything
I'm going to post has to do with this issue.

Here's what I'd like you to try. Build your compressed root disk using the
bash from Chapter 2. This way you won't need any libraries. Tell me if that
works our not. From there we can narrow down some issues. If I understood
you correctly, did you start having issues actually building bash again?

Eric

-----Original Message-----
From: pocket-linux-bounces at ufo.chicago.il.us
[mailto:pocket-linux-bounces at ufo.chicago.il.us]On Behalf Of Miguel
Servin
Sent: Tuesday, October 26, 2004 10:08 PM
To: pocket-linux at ufo.chicago.il.us
Subject: [pocket-linux] Chapter 3. The dreaded libc.so.6


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.

_______________________________________________
Pocket-Linux mailing list
Pocket-Linux at ufo.chicago.il.us
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux


_______________________________________________
Pocket-Linux mailing list
Pocket-Linux at ufo.chicago.il.us
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux





More information about the Pocket-Linux mailing list