Date: Tue, 11 Apr 2006 19:45:38 +0200 From: Jean-Baptiste Quenot <jbq@caraldi.com> To: freebsd-ports@freebsd.org Subject: Re: Resin3 under FreeBSD 6.x / amd64 fails to build ... Message-ID: <20060411174538.GM53974@vision.anyware> In-Reply-To: <20060410224442.D1096@ganymede.hub.org> References: <20060410224442.D1096@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Marc G. Fournier: > > something obvious that I've missed here? > > cc -shared -L/usr/lib -o libresin_os.so jni_os.o jni_jvmti.o jni_jvmdi.o -pthread > /usr/bin/ld: jni_os.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC > jni_os.o: could not read symbols: Bad value Hello Marc, Have you been able to arrange something that works? I'm building resin-2.1.17_1 successfully on i386 with Apache 2 support. I heard complaints for other ports on the amd architecture. Adding CFLAGS=-fPIC seems to be the solution. Does anyone have an explanation about this cryptic « -fPIC » option? I would love to add it to my ports if I could understand why it is not handled by the ports infrastructure. Oh, and by the way you may address build failures to the maintainer (I am for resin2) next time as there is better chance that I read it in a timely manner. Concerning resin3, there is an open PR that waits for an available committer. See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/95334 Best regards, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060411174538.GM53974>