[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Curious warning from linker re libc5/libc6



On Mon, Feb 23, 1998 at 04:37:15PM +0000, Oliver Elphick wrote:
> This is the command being run by the Eiffel compiler: 
> gcc -o app -O   -DWORKBENCH -I/usr1/Eiffel4/bench/spec/linux/include 
> -I/usr1/Eiffel4/library/mel/Clib  F1/Fobj1.o D1/Dobj1.o C1/Cobj1.o E1/Eobj1.o 
> E1/emain.o \
>         /usr1/Eiffel4/precomp/spec/linux/mel/EIFGEN/W_code/preobj.o \
>         /usr1/Eiffel4/precomp/spec/linux/base/EIFGEN/W_code/preobj.o \
>         /usr1/Eiffel4/precomp/spec/linux/vision/EIFGEN/W_code/preobj.o \
>         /usr1/Eiffel4/library/mel/spec/linux/lib/libMel.a 
> /usr1/Eiffel4/library/mel/spec/linux/lib/libXpm.a /usr/lib/libXm.a 
> -L/usr/i486-linuxlibc1/lib -L/usr/lib/libc5-compat -lXt -lX11 
> /usr1/Eiffel4/bench/spec/linux/lib/libwkbench.a -lbsd -lm
> 
> and this is what it produces:
> ld: cannot open -lXt: No such file or directory

Hmmm.. Please do a ls -al /usr/i486-linuxlibc1/lib/libXt*

On my system, I get
-rw-r--r--   1 root     root       358238 Nov  2 05:23 /usr/i486-linuxlibc1/lib/libXt.a
lrwxrwxrwx   1 root     root           34 Nov  6 11:50 /usr/i486-linuxlibc1/lib/libXt.so -> /usr/lib/libc5-compat/libXt.so.6.0
-rw-r--r--   1 root     root        16018 Nov  2 05:23 /usr/i486-linuxlibc1/lib/libXtst.a
lrwxrwxrwx   1 root     root           36 Nov  6 11:50 /usr/i486-linuxlibc1/lib/libXtst.so -> /usr/lib/libc5-compat/libXtst.so.6.1

> I included `-L/usr/i486-linuxlibc1/lib' as you suggested and added
> -L/usr/lib/libc5-compat, because that is where the libc5 Xt library is.

The only directories you need to use in '-L' are those containing libfoo.so
(for every foo). libfoo.so should be a symlink to libfoo.so.1.2.3, and is
used by ld.

> I don't understand why it says it cannot find the library.  Is there any
> way to force the linker to use that particular shared library, specifying
> its path explicitly?

Probably. But I think it is better to find out where the problem is, rather
than work around the symptoms.

You could try if "gcc -v" reveals anything.

HTH,
Ray
-- 
UNFAIR  Term applied to advantages enjoyed by other people which we tried 
to cheat them out of and didn't manage. See also DISHONESTY, SNEAKY, 
UNDERHAND and JUST LUCKY I GUESS.     
- The Hipcrime Vocab by Chad C. Mulligan  


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