relocation R_X86_64_32 can not be used (Was: Re: (no subject))

Mike Jakubik mikej at rogers.com
Tue Apr 11 19:43:50 UTC 2006


Marc G. Fournier wrote:
>> ===>  Building for resin-2.1.17_1
>> (cd src/c/plugin; make)
>> for dir in common apache2; do (cd $dir; make); done
>> cc -c -I/usr/include -O2 -fno-strict-aliasing -pipe  -DNO_IDEA stream.c
>> stream.c: In function `select_host':
>> stream.c:1103: warning: cast from pointer to integer of different size
>> cc -c -I/usr/include -O2 -fno-strict-aliasing -pipe  -DNO_IDEA 
>> registry.c
>> cc -c -I/usr/include -O2 -fno-strict-aliasing -pipe  -DNO_IDEA config.c
>> cc -c -I/usr/include -O2 -fno-strict-aliasing -pipe  -DNO_IDEA memory.c
>> cc -shared -o common.o stream.o registry.o config.o memory.o
>> /usr/bin/ld: stream.o: relocation R_X86_64_32 can not be used when 
>> making a shared object; recompile with -fPIC
Has everyone gone blind? :P    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>> stream.o: could not read symbols: Bad value
>> *** Error code 1
>>
>> I get the same issue with Resin3 (would rather 3, just figured I'd 
>> see if 2 made a difference) ...

Recompile with -fPIC on amd64.



More information about the freebsd-amd64 mailing list