ports/174567: [PATCH]: Fix mxml linking on amd64
Marcus von Appen
mva at FreeBSD.org
Wed Dec 19 08:50:01 UTC 2012
>Number: 174567
>Category: ports
>Synopsis: [PATCH]: Fix mxml linking on amd64
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 19 08:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Marcus von Appen
>Release: FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #6 r244296: Sun Dec 16 20:38:06 CET 2012 root at medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA amd64
>Description:
textproc/mxml does not link properly against targets due to a
missing -fPIC in its CFLAGS on amd64.
Maintainer (hsmtkk at gmail.com) is CC'ed.
>How-To-Repeat:
n/a
The issue was triggered on updating audio/zynaddsubfx:
Linking CXX shared library libzynaddsubfx_dssi.so
/usr/bin/ld: /usr/local/lib/libmxml.a(mxml-attr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmxml.a: could not read symbols: Bad value
*** [src/libzynaddsubfx_dssi.so] Error code 1
>Fix:
Index: Makefile
===================================================================
--- Makefile (revision 309149)
+++ Makefile (working copy)
@@ -1,12 +1,9 @@
-# New ports collection makefile for: mxml
-# Date created: 2007-10-12
-# Whom: Martin Wilke <miwi at FreeBSD.org>
-#
+# Created by: Martin Wilke <miwi at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= mxml
PORTVERSION= 2.6
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_EASYSW}
MASTER_SITE_SUBDIR= mxml/${PORTVERSION}
@@ -21,6 +18,8 @@
CONFIGURE_ARGS= --with-docdir=no
MAKE_JOBS_SAFE= yes
+CFLAGS+= -fPIC
+
MAN1= mxmldoc.1
MAN3= mxml.3
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list