[uClibc]Dynamic libuClibc.so woes

Erik Andersen andersen at lineo.com
Wed Mar 7 23:26:34 UTC 2001


On Wed Mar 07, 2001 at 03:09:34PM -0800, John Lombardo wrote:
> > [andersen at slag silly]$ ldd ./hello
> >         libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000c000)
> >         ld-linux.so.1 => /lib/ld-linux.so.1 (0x40039000)
> > [andersen at slag silly]$ ls -sh ./hello
> > 4.0k ./hello*
> > [andersen at slag silly]$ ./hello
> > hello world
> >
> >
> > So there you have it.  An app compiled using a shared uClibc.  As
> > can be seen
> > by running 'ldd' it is linked automagicaly with the glibc shared library
> > loader, so you don't need to do anything else to make it work.
> > If this were
> 
> Afaikt, glibc does not produce a ld-linux.so.1, it produces a ld-linux.so.2.
> If you're runnnig on RH 6.2, then the ld-linux.so.1 that you're running with
> did not come from glibc at all, but from the ld.so package:
> 
> [root at jllinux libc]# rpm -q -f /lib/ld-linux.so.1
> ld.so-1.9.5-1

Ahh, ok I see the problem now:

[andersen at slag andersen]$ ldd ~/CVS/uClibc/test/silly/hello
        libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000c000)
        ld-linux.so.1 => /lib/ld-linux.so.1 (0x40039000)
[andersen at slag andersen]$ dpkg -S /lib/ld-linux.so.1
ldso: /lib/ld-linux.so.1
[andersen at slag /tmp]$ apt-get source ldso
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 121kB of source archives.
Get:1 http://http.us.debian.org potato/main ld.so 1.9.11-9 (dsc) [548B]
Get:2 http://http.us.debian.org potato/main ld.so 1.9.11-9 (tar) [120kB]
Fetched 121kB in 2s (54.2kB/s)
dpkg-source: extracting ld.so in ld.so-1.9.11

You can grab the sources from any debian mirror
    http://packages.debian.org/stable/base/ldso.html

Ideally, I'd like to get this checked into the CVS repository 
some time soon,

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list