Date: Mon, 10 Apr 2006 21:30:17 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> 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: <20060411043016.GA1866@troutmask.apl.washington.edu> In-Reply-To: <20060411010839.Q1096@ganymede.hub.org> References: <20060410235910.F1096@ganymede.hub.org> <20060411002924.E1096@ganymede.hub.org> <20060411033619.GA1495@troutmask.apl.washington.edu> <20060411010839.Q1096@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 11, 2006 at 01:09:07AM -0300, Marc G. Fournier wrote: > On Mon, 10 Apr 2006, Steve Kargl wrote: > > >On Tue, Apr 11, 2006 at 12:30:02AM -0300, Marc G. Fournier wrote: > >>>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 > >>>stream.o: could not read symbols: Bad value > > > >You're mixing static and share libs. Add -static to your > >CFLAGS. > > Same result: > > ===> 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 -static -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 -static -DNO_IDEA registry.c > cc -c -I/usr/include -static -DNO_IDEA config.c > cc -c -I/usr/include -static -DNO_IDEA memory.c > cc -shared -o common.o stream.o registry.o config.o memory.o ^^^^^^^ This isn't -static. -- Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060411043016.GA1866>