Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 16:39:08 +0200 (CEST)
From:      Jean-Baptiste Quenot <jbq@caraldi.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@FreeBSD.org
Subject:   Maintainer update: www/opal fix build error on amd64
Message-ID:  <20060420143908.E51C761AC@vision.anyware>

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

>Submitter-Id:	current-users
>Originator:	Jean-Baptiste Quenot
>Confidential:	no
>Synopsis:	Maintainer update: www/opal fix build error on amd64
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		maintainer-update
>Release:	FreeBSD 5.5-PRERELEASE i386
>Environment:
System: FreeBSD vision.anyware 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #1: Thu Mar 9 19:20:53 CET 2006 jbq@vision.anyware:/usr/obj/usr/src/sys/VISION i386
>Description:
See http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.6.2006022322/opal-2.2.1_1.log
>Fix:
diff --ignore-matching-lines=\$FreeBSD.*\$ --exclude=.*.sw* --exclude=.svn --exclude=work --exclude=admin -ruN /usr/ports/net/opal/Makefile ./Makefile
--- /usr/ports/net/opal/Makefile	Wed Apr 12 00:11:02 2006
+++ ./Makefile	Thu Apr 20 16:32:11 2006
@@ -35,6 +35,11 @@
 
 .if ${OSVERSION} < 500000
 BROKEN=		Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
+.endif
+
+# Avoid build error on amd64: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
+.if (${ARCH} == "amd64")
+CFLAGS+=	-fPIC
 .endif
 
 .ifdef (WITH_FFMPEG)



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