Roland Mainz wrote: > sagun shakya wrote: > >> In order to test 64-bit version of libpcap I'm trying to compile an >> application in 64-bit. When I run 'configure' with the following env set: >> >> export CC=/opt/SUNWspro/SS11/bin/cc >> export CFLAGS="-xO3 -xarch=generic64 -Ui386 -U__i386 -Xa -xildoff >> -I/usr/include -xstrconst -lpcap" >> >> The configure scripts fails with: ld.so.1: a.out: fatal: relocation >> error: R_AMD64_32: file /usr/lib/64/libpcap.so: symbol (unknown): value >> 0xfffffd7fff330000 does not fit >> Is this due to not having specific CFLAGS set? >> If anyone is curious, in order to get this working I had to compile my library (libpcap) with '-KPIC' for AMD64. This fixed the problem.
-Sagun
