[uClibc]Looks right but is wrong

Fredrik Johnsson fredrikj at orestad-linux.se
Fri Aug 30 07:22:22 UTC 2002


Hi!

I've compiled glib and gtk and according to LDD they have no dep on glibc.

Then I proceeed to compile libjpeg and libpng, both wich worksfine and don't 
dep on glibc.

Finally I compile dillo and depending on which version of ldd I use i get 
different results.

All the notfound is just that I've put the uclibc compile libs in a 
preparation dir not found by ldd.

with glibc(system) ldd it shows:
libjpeg.so.62 => //usr/lib/libjpeg.so.62 (0x0x40007000)
        libpng12.so.0 => not found
        libz.so.1 => //usr/lib/libz.so.1 (0x0x40026000)
        libpthread.so.0 => /usr/i386-linux-uclibc/lib/libpthread.so.0 
(0x0x40035000)
        libgtk-1.2.so.0 => not found
        libgdk-1.2.so.0 => not found
        libgmodule-1.2.so.0 => not found
        libglib-1.2.so.0 => not found
        libdl.so.0 => /usr/i386-linux-uclibc/lib/libdl.so.0 (0x0x40047000)
        libXext.so.6 => not found
        libX11.so.6 => not found
        libm.so.0 => /usr/i386-linux-uclibc/lib/libm.so.0 (0x0x4004a000)
        libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0 (0x0x40058000)
/usr/local/embedded/bin/dillo: linked against GNU libc!
And with the uclibc version:
	libjpeg.so.62 => /usr/lib/libjpeg.so.62
        libpng12.so.0 => not found
        libz.so.1 => /usr/lib/libz.so.1
        libpthread.so.0 => /lib/libpthread.so.0
        libgtk-1.2.so.0 => not found
        libgdk-1.2.so.0 => not found
        libgmodule-1.2.so.0 => not found
        libglib-1.2.so.0 => not found
        libdl.so.0 => /usr/i386-linux-uclibc/lib/libdl.so.0
        libXext.so.6 => not found
        libX11.so.6 => not found
        libm.so.0 => /usr/i386-linux-uclibc/lib/libm.so.0
        libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0
**      libc.so.6 => /lib/libc.so.6
**      ld-linux.so.2 => /lib/ld-linux.so.2
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0

And when I finaly run the program on the target it says:

	Gdk-WARNING **: locale not supported by Xlib, locale set to C
	Gdk-WARNING **: can not set locale modifiers
	Setting locale to C
	dillo: can't resolve symbol 'getresuid'

Is it compiled with glibc or not?

The symbol getresuid, what does it relate to?

-- 
Mvh Fredrik Johnsson
Email: fredrikj at orestad-linux.se
Url: http://www.orestad-linux.net




More information about the uClibc mailing list