Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2006 22:12:15 +0100 (CET)
From:      Jean-Baptiste Quenot <jbq@caraldi.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/106816: Maintainer update: www/resin3 failed on amd64
Message-ID:  <20061216211215.397C72E02E@zoupla.cottages>
Resent-Message-ID: <200612162120.kBGLK9n4057027@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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