Hi,

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?

Detail below:

[snip]
 78 configure:1749: checking build system type
 79 configure:1767: result: i386-pc-solaris2.11
 80 configure:1789: checking host system type
 81 configure:1804: result: i386-pc-solaris2.11
 82 configure:1946: checking for gcc
 83 configure:1973: result: /opt/SUNWspro/SS11/bin/cc
 84 configure:2211: checking for C compiler version
 85 configure:2218: /opt/SUNWspro/SS11/bin/cc --version >&5
 86 cc: Warning: option -- passed to ld
 87 usage: cc [ options] files.  Use 'cc -flags' for details
 88 configure:2221: $? = 1
 89 configure:2228: /opt/SUNWspro/SS11/bin/cc -v >&5
 90 usage: cc [ options] files.  Use 'cc -flags' for details
 91 configure:2231: $? = 1
 92 configure:2238: /opt/SUNWspro/SS11/bin/cc -V >&5
 93 cc: Sun C 5.8 Patch 121016-05 2007/01/10
 94 usage: cc [ options] files.  Use 'cc -flags' for details
 95 configure:2241: $? = 1
 96 configure:2264: checking for C compiler default output file name
 97 configure:2291: /opt/SUNWspro/SS11/bin/cc -xO3 -xarch=generic64 
-Ui386 -U__i386  -Xa -xildoff -I/usr/include -xstrconst -lpcap   
conftest.c  >&5
 98 configure:2294: $? = 0
 99 configure:2332: result: a.out
100 configure:2349: checking whether the C compiler works
101 configure:2359: ./a.out
102 ld.so.1: a.out: fatal: relocation error: R_AMD64_32: file 
/usr/lib/64/libpcap.so: symbol (unknown): value 0xfffffd7fff330000 does 
not fit
103 ./configure[2360]: eval: line 1: 27387: Killed
104 configure:2362: $? = 265
105 configure:2369: error: cannot run C compiled programs.
106 If you meant to cross compile, use `--host'.
107 See `config.log' for more details.


Thank for the help,

Sagun

Reply via email to