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

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

I need to build a libc5 version of aalib for the textquake package. So I
need to link something with the libc5 version of the slang library. But if I
try to do that, it doesn't work:

joey@kite:/tmp>/usr/i486-linuxlibc1/bin/gcc foo.c -L/usr/lib/libc5-compat -lslang -o foo
ld: warning: libc.so.6, needed by /lib/libslang.so, may conflict with libc.so.5
joey@kite:/tmp>ldd foo
	libslang.so.1 => /lib/libslang.so.1 (0x4000d000)
	libc.so.5 => /lib/libc.so.5 (0x40054000)
	libm.so.6 => /lib/libm.so.6 (0x40112000)
	libc.so.6 => /lib/libc.so.6 (0x4012b000)
	ld-linux.so.2 => /lib/ld-linux.so.2 (0x401cc000)

It semes that gcc automatically looks in /lib and some other directories
first, and only if that fails does it look in the directories specified with
-L. Since I have slang1 installed (I have to, I can't build the libc6
version of aalib without it), it seems to be impossible to build a libc5
binary linked to the libc5 slang.

Am I missing something, or is this a problem in how we have the libc5
compatability stuff set up?

see shy jo

Reply to: