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

Re: what am I doing wrong? Unable to build libc5 programs with slang

	I got things that required libm (I think ...) to work once.  Try
setting LD_LIBRARY_PATH (I think this only affects runtime searching,
though, so it probably won't help after all). 
I definitely used -L/usr/i486-linuxlibc1/lib ,and not
-L/usr/lib/libc5-compat .

joey>I need to build a libc5 version of aalib for the textquake package. So I
joey>need to link something with the libc5 version of the slang library. But if I
joey>try to do that, it doesn't work:
joey>joey@kite:/tmp>/usr/i486-linuxlibc1/bin/gcc foo.c -L/usr/lib/libc5-compat -lslang -o foo
joey>ld: warning: libc.so.6, needed by /lib/libslang.so, may conflict with libc.so.5
joey>joey@kite:/tmp>ldd foo
joey>	libslang.so.1 => /lib/libslang.so.1 (0x4000d000)
joey>	libc.so.5 => /lib/libc.so.5 (0x40054000)
joey>	libm.so.6 => /lib/libm.so.6 (0x40112000)
joey>	libc.so.6 => /lib/libc.so.6 (0x4012b000)
joey>	ld-linux.so.2 => /lib/ld-linux.so.2 (0x401cc000)
joey>It semes that gcc automatically looks in /lib and some other directories
joey>first, and only if that fails does it look in the directories specified with
joey>-L. Since I have slang1 installed (I have to, I can't build the libc6
joey>version of aalib without it), it seems to be impossible to build a libc5
joey>binary linked to the libc5 slang.

John Lapeyre <lapeyre@physics.arizona.edu>
Tucson,AZ     http://www.physics.arizona.edu/~lapeyre

Reply to: