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?
>>     
> [snip]
>
> Sometimes stuff like "configure" just doesn't pass CLFAGS to all
> compiler calls...
> ... the workaround is to move the architecture-specific flags (e.g.
> "-xarch=generic64") to "CC", e.g. try:
> -- snip --
> export CC="/opt/SUNWspro/SS11/bin/cc -xarch=generic64"
> export CFLAGS="-xO3 -Ui386 -U__i386  -Xa -xildoff -I/usr/include
> -xstrconst -lpcap"
> -- snip --
>
> AFAIK this should work...
> BTW: You miss "-xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1" for
> CFLAGS
>   

The workaround didn't make any difference. The error is the same.
Could this be an issue with how I built the 64-bit library?

Sagun


Reply via email to