[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `make'ing libtclobj under Linux
From: |
glen e. p. ropella |
Subject: |
Re: `make'ing libtclobj under Linux |
Date: |
Tue, 06 Aug 1996 07:23:59 -0500 |
Thor,
Since the configure script responded with "no" for the existence of
-lobjc, it might mean that you don't have the objective c library
on your system. I'm running the 1.2.13 kernel also; but, I have mine
configured to use either ELF or a.out format. When I did a
find /usr -name libobjc.a -print
I got:
/usr/lib/gcc-lib/i486-linux/2.7.0/libobjc.a
/usr/lib/gcc-lib/i486-linux/2.7.2/libobjc.a
/usr/lib/gcc-lib/i486-linuxaout/2.7.2/libobjc.a
I got nothing when I did a ls -R | grep libobjc.so
It's possible that one cannot link the objective-c
library dynamically.
Check to see if you have libobjc.a in your library
search path (I believe gcc -v should show you what
path gcc is searching).
When I put -v on the $ac_link variable in the configure
script, I got the following for my search path for the
command that searches for the objective-c library.
checking for -lobjc... Reading specs from
/usr/lib/gcc-lib/i486-linux/2.7.2/specs
gcc version 2.7.2
/usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c -v -undef -D__GNUC__=2
-D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix)
-Asystem(posix) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -D__i486__
conftest.c /tmp/cca01680.i
GNU CPP version 2.7.2 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/i486-linux/include
/usr/lib/gcc-lib/i486-linux/2.7.2/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i486-linux/2.7.2/cc1 /tmp/cca01680.i -quiet -dumpbase
conftest.c -O -version -o /tmp/cca01680.s
GNU C version 2.7.2 (i386 Linux/ELF) compiled by GNU C version 2.7.2.
/usr/i486-linux/bin/as -V -Qy -o /tmp/cca016801.o /tmp/cca01680.s
GNU assembler version 960228 (i486-linux), using BFD version 2.6.0.12
/usr/i486-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1
-o conftest /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
-L/usr/lib/gcc-lib/i486-linux/2.7.2 -L/usr/i486-linux/lib
/tmp/cca016801.o -lobjc -lgcc -lc -lgcc /usr/lib/crtend.o
/usr/lib/crtn.o
yes
Hence, for me, it searched "-L/usr/lib/gcc-lib/i486-linux/2.7.2"
and "-L/usr/i486-linux/lib". It found it in the former.
--
glen e. p. ropella
address@hidden Hail Eris!