linking problems with gcc3.0 on solaris8
ravi kol
kolli27@yahoo.com
Wed Aug 1 15:04:00 GMT 2001
I am trying to compile a c file with GCC3.0 on a
solaris 8 sparc machine.the following is the command
and the output.
-----------------------------------------
gcc -I/usr/j2sdk1_3_1/include
-I/usr/j2sdk1_3_1/include/solaris -I/usr/local/include
-shared jpcap.c -o libjpcap.so -lnsl
-L/usr/local/lib/pcap.a
<unknown> 0x974
/var/tmp/ccJxZSFu.o
<unknown> 0x5fc
/var/tmp/ccJxZSFu.o
<unknown> 0xa80
/var/tmp/ccJxZSFu.o
.
.
......so on........
.
.
gx_snaplen 0xcdc
/var/tmp/ccklhQu4.o
pcap_setfilter 0xa28
/var/tmp/ccklhQu4.o
pcap_lookupdev 0x4e0
/var/tmp/ccklhQu4.o
INVALID_FILTER_EXCEPTION 0x9fc
/var/tmp/ccklhQu4.o
INVALID_FILTER_EXCEPTION 0xa54
/var/tmp/ccklhQu4.o
INVALID_FILTER_EXCEPTION 0xa58
/var/tmp/ccklhQu4.o
INVALID_FILTER_EXCEPTION 0x9f8
/var/tmp/ccklhQu4.o
INVALID_FILTER_EXCEPTION 0x988
/var/tmp/ccklhQu4.o
pcap_geterr 0xa48
/var/tmp/ccklhQu4.o
pcap_geterr 0x9ec
/var/tmp/ccklhQu4.o
pcap_geterr 0x7ac
/var/tmp/ccklhQu4.o
pcap_close 0xaa4
/var/tmp/ccklhQu4.o
ld: fatal: relocations remain against allocatable but
non-writable sections collect2: ld returned 1 exit
status
-----------------------------------------
I have recently shifted from gcc-2.95.2 .when i tried
using the -fPIC option ,it compiles ...ok...but the
resultant shared object is a wrong one.(very small
size fileand gets runtime errors with applications
using it)I tried other things like gcc -lc -lgcc with
no luck.
similar error(all same symbols ) came ...when i used
my gcc without linking the libraries nsl and and
pcap.a.
I will appreciate your help
.-kolli.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
More information about the Gcc-help
mailing list