Fun with glibc-2.3

Greg Schafer gschafer at zip.com.au
Sun Sep 22 05:34:14 PDT 2002


On Sun, Sep 22, 2002 at 02:09:44PM +0200, Matthias Benkmann wrote:
> On Sun, 22 Sep 2002 16:58:57 +1000 Greg Schafer <gschafer at zip.com.au>
> wrote:
> 
> > We will prolly have to come up with something a bit more creative.
> 
> export LD_LIBRARY_PATH=/static/compatibility

Yes, great minds think alike :-)

Already tried that, except it doesn't work..

The more I look into this, the more I'm thinking that this is not exactly
the same problem as with past glibc upgrades. It is similar, in that a
statically linked binary is looking for shared libs, but it is different
in that the old libs just don't work when mixed with the new.

tigers-lfs:~# grep open the.log
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
open("/etc/mtab", O_RDONLY)             = 3
open("/proc/meminfo", O_RDONLY)         = 3
open("/etc/nsswitch.conf", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/static/compat/libnss_compat.so.2", O_RDONLY) = 3
open("/static/compat/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libnsl.so.1", O_RDONLY)      = 3
open("/static/compat/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/static/compat/ld-linux.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/ld-linux.so.2", O_RDONLY)    = 3

ie: after it finds the old libnss_compat.so.2 it goes looking for
other libs, finds them, but craps out..

Greg
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list