ports/106816: Maintainer update: www/resin3 failed on amd64
Jean-Baptiste Quenot
jbq at caraldi.com
Sat Dec 16 21:20:28 UTC 2006
>Number: 106816
>Category: ports
>Synopsis: Maintainer update: www/resin3 failed on amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 16 21:20:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jean-Baptiste Quenot
>Release: FreeBSD 6.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD zoupla.cottages 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Dec 15 23:24:25 CET 2006 jbq at zoupla.cottages:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
===> Building for resin-3.0.21
(cd modules/c/src; make)
for dir in common resin_os; do (cd $dir; make); done
cc -r -o common.o stream.o config.o memory.o
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
*** Error code 1
>How-To-Repeat:
>Fix:
diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.swp --exclude=.*.sw* --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/www/resin3/Makefile ./Makefile
--- /usr/ports/www/resin3/Makefile Mon Aug 28 23:32:16 2006
+++ ./Makefile Sat Dec 16 21:43:11 2006
@@ -113,6 +113,11 @@
-e "s|%%RUNASUSER%%|${RUNASUSER}|g" \
-e "s|%%WRKDIR%%|${WRKDIR}|g" \
-e "s|%%WRKSRC%%|${WRKSRC}|g"
+
+# Avoid build error on 64-bit architectures
+.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
+CFLAGS+= -fPIC
+.endif
post-patch:
@${REINPLACE_CMD} ${SUBSTITUTIONS} ${REINPLACE_FILES}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list