This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't find libc.so.6 though it's there


Hi all,

i just upgraded form Glibc-2.2.2 to Glib-2.3.5 (and gcc from 2.95.3 to
3.4.5).
Until now most programs seem to run fine with the new glibc. But there
are now some programs that claims there would be no glibc.so.6. One of
these is agrep:

me@linux:~ > agrep
agrep: error while loading shared libraries: libc.so.6: cannot open
shared object file: No such file or directory
me@linux:~ > ldd /usr/bin/agrep
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => not found

Oher programs like gkrellm in addition reports libpthread and other
glibc-librarys as missing (libgtk and other non-glibc-libs are found
properly).
I couldn't figure out a way to get them running again except recompiling
them. The problem is: I'm really not able to check and recompile every
single program in the system.

Has anybody an idea why these programs can't find the glibc?
Or anaything i could test?

More results of tests i did are attached.

Thanks
flo


Versions used:
Linux kernel 2.6.7 from kernel.org (compiled with gcc 2.95.3)
Gcc 3.4.5
Glibc 2.3.5 with glibc-linuxthreads-2.3.5
For compatibility reasons i used these ctype_b and errno patches:
http://dunedin.lug.net.nz/forums/archive/index.php/t-1712.html (second post)
http://cvs.debian.org/glibc-package/debian/patches/glibc23-errno.dpatch?rev=1.3&root=glibc&view=markup
http://cvs.debian.org/glibc-package/debian/patches/glibc23-errno-hack.dpatch?rev=1.2&root=glibc&view=markup

Some tests i already did:
me@linux:~ > ldd /usr/bin/grep
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0x40017000)
        /lib/ld-linux.so.2 (0x40000000)
me@linux:~ > ldd /usr/bin/agrep
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => not found
me@linux:~ > declare -x LD_DEBUG=all
me@linux:~ > declare -x LD_LIBRARY_PATH=/lib
me@linux:~ > /usr/bin/agrep
      8813:
      8813:     file=libc.so.6 [0];  needed by /usr/bin/agrep [0]
      8813:     find library=libc.so.6 [0]; searching
      8813:      search path=/lib/tls/i686:/lib/tls:/lib/i686:/lib      
       (system search path)
      8813:       trying file=/lib/tls/i686/libc.so.6
      8813:       trying file=/lib/tls/libc.so.6
      8813:       trying file=/lib/i686/libc.so.6
      8813:       trying file=/lib/libc.so.6
      8813:      search cache=/etc/ld.so.cache
      8813:      search
path=/lib:/usr/lib/tls/i686:/usr/lib/tls:/usr/lib/i686:/usr/lib        
(system search path)
      8813:       trying file=/lib/libc.so.6
      8813:       trying file=/usr/lib/tls/i686/libc.so.6
      8813:       trying file=/usr/lib/tls/libc.so.6
      8813:       trying file=/usr/lib/i686/libc.so.6
      8813:       trying file=/usr/lib/libc.so.6
      8813:
/usr/bin/agrep: error while loading shared libraries: libc.so.6: cannot
open shared object file: No such file or directory
me@linux:~ > declare -x LD_DEBUG=
me@linux:~ > ls -lisah /lib/tls/i686/libc.so.6 /lib/tls/libc.so.6 \
/lib/i686/libc.so.6 /lib/libc.so.6 /usr/lib/tls/i686/libc.so.6 \
/usr/lib/tls/libc.so.6 /usr/lib/i686/libc.so.6 /usr/lib/libc.so.6
ls: /lib/tls/i686/libc.so.6: No such file or directory
ls: /lib/tls/libc.so.6: No such file or directory
ls: /lib/i686/libc.so.6: No such file or directory
ls: /usr/lib/tls/i686/libc.so.6: No such file or directory
ls: /usr/lib/tls/libc.so.6: No such file or directory
ls: /usr/lib/i686/libc.so.6: No such file or directory
 342103    0 lrwxr-xr-x    1 root     root           13 Feb 27 16:49 
/lib/libc.so.6 -> libc-2.3.5.so
 863550    0 lrwxr-xr-x    1 root     root           18 Feb 27 20:02 
/usr/lib/libc.so.6 -> /lib/libc-2.3.5.so
me@linux:~ > cat /etc/ld.so.conf
/lib
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/openwin/lib
/opt/kde/lib
/opt/kde2/lib
/opt/gnome/lib
me@linux:~ > /lib/libc.so.6
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.5.
Compiled on a Linux 2.6.7 system on 2006-02-27.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]