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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Florian Hühn
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>.
Reply | Threaded
Open this post in threaded view
|

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

Dwayne Grant McConnell-2
On Mon, 27 Feb 2006, Florian Hü wrote:

> 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.

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

This is not the place for your question. This mailing list is for glibc
development and not user problems for a particular distro. It appears you
are running Debian so you should take your question to one of their
mailing lists.

--
Dwayne Grant McConnell <[hidden email]>
Lotus Notes Mail: Dwayne McConnell [Mail]/Austin/IBM@IBMUS
Lotus Notes Calendar: Dwayne McConnell [Calendar]/Austin/IBM@IBMUS
Reply | Threaded
Open this post in threaded view
|

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

Florian Hühn
On Mon, 27 Feb 2006 14:57:47 -0600 (CST)
Dwayne Grant McConnell <[hidden email]> wrote:

> On Mon, 27 Feb 2006, Florian Hü wrote:
>
> > 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.
>
> This is not the place for your question. This mailing list is for glibc
> development and not user problems for a particular distro. It appears you
> are running Debian so you should take your question to one of their
> mailing lists.

Oh i'm sorry.
What i'm running is a basicly self-compiled linux.
Is there any distro-independet, glibc-related mailinglist? (All i found are
mailiglists from different dirtros suggesting to install their binary packages.)

Thanks
flo
Reply | Threaded
Open this post in threaded view
|

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

Dwayne Grant McConnell-2
On Mon, 27 Feb 2006, Florian Hü wrote:

> On Mon, 27 Feb 2006 14:57:47 -0600 (CST)
> Dwayne Grant McConnell <[hidden email]> wrote:
>
> Oh i'm sorry.
> What i'm running is a basicly self-compiled linux.
> Is there any distro-independet, glibc-related mailinglist? (All i found are
> mailiglists from different dirtros suggesting to install their binary packages.)

There is nothing exactly like what you want because building/installing
glibc and replacing glibc on a running system is non-trivial. Try

Linux From Scratch
http://www.linuxfromscratch.org/
or
DIY Linux
http://www.diy-linux.org/
or
crossgcc mailing list
http://sourceware.org/ml/crossgcc/

--
Dwayne Grant McConnell <[hidden email]>
Lotus Notes Mail: Dwayne McConnell [Mail]/Austin/IBM@IBMUS
Lotus Notes Calendar: Dwayne McConnell [Calendar]/Austin/IBM@IBMUS