Re: Curious warning from linker re libc5/libc6
On Sun, Feb 22, 1998 at 02:27:30PM +0000, Oliver Elphick wrote:
> /usr1/Eiffel4/library/mel/spec/linux/lib/libXpm.a /usr/lib/libXm.a -lXt
> -lX11 /usr1/Eiffel4/bench/spec/linux/lib/libwkbench.a -L/usr/X11R6/lib -lbsd
> -lm
> ld: warning: libc.so.6, needed by /usr/X11R6/lib/libXt.so, may conflict with
> libc.so.5
ld is linking against /usr/X11R6/lib/libXt.so, thus creating a mixed libc
binary. This is bad.
> However, applying ldd to the final executable, I get:
>
> # ldd ./EIFGEN/W_code/app
> libXt.so.6 => /usr/lib/libc5-compat/libXt.so.6 (0x4000d000)
So your setup is forcing the dynamic loader to load a mixed libc5/libc6
binary, compiled with a libc6 libXt, against a libc5 libXt. Doubly bad.
> libICE.so.6 => /usr/lib/libc5-compat/libICE.so.6 (0x401bd000)
> which shows no reference to libc6.
>
> Is this a genuine warning?
Yes.
> (Although ldd shows that none of the linked libraries are from
> /usr/X11R6/lib, if I remove that directory from the library search path, I
> get a message saying that it cannot find -lXt.)
You should be using -L/usr/i486-linuxlibc1/lib to tell altgcc to use the
libXt there (from the "xlib6-altdev" package). Thus, you should get a full
libc5 binary.
HTH,
Ray
--
Tevens ben ik van mening dat Nederland overdekt dient te worden.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: