Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Apr 2006 15:44:30 -0400
From:      Mike Jakubik <mikej@rogers.com>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-ports@freebsd.org, freebsd-amd64@freebsd.org
Subject:   Re: relocation R_X86_64_32 can not be used (Was: Re: (no subject))
Message-ID:  <443C071E.8010809@rogers.com>
In-Reply-To: <20060411002924.E1096@ganymede.hub.org>
References:  <20060410235910.F1096@ganymede.hub.org> <20060411002924.E1096@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443C071E.8010809>