From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 21 03:50:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5F0A106568F for ; Fri, 21 Aug 2009 03:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D9428FC92 for ; Fri, 21 Aug 2009 03:50:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7L3o11P024544 for ; Fri, 21 Aug 2009 03:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7L3o06J024543; Fri, 21 Aug 2009 03:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 21 Aug 2009 03:50:00 GMT Resent-Message-Id: <200908210350.n7L3o06J024543@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Max Brazhnikov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CB5A106568E for ; Fri, 21 Aug 2009 03:40:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3B6A58FC52 for ; Fri, 21 Aug 2009 03:40:39 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7L3eb9u043073 for ; Fri, 21 Aug 2009 03:40:37 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7L3ebg0043060; Fri, 21 Aug 2009 03:40:37 GMT (envelope-from nobody) Message-Id: <200908210340.n7L3ebg0043060@www.freebsd.org> Date: Fri, 21 Aug 2009 03:40:37 GMT From: Max Brazhnikov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/138009: math/muparser: fix linking with muparser on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 03:50:01 -0000 >Number: 138009 >Category: ports >Synopsis: math/muparser: fix linking with muparser on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 21 03:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Max Brazhnikov >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: FreeBSD luna.dio.ru 7.2-STABLE FreeBSD 7.2-STABLE #2: Fri Jun 26 21:57:33 MSD 2009 root@luna.dio.ru:/usr/obj/usr/freebsd/7/src/sys/LUNA i386 >Description: science/kst fails on amd64: /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=link c++ -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kstfit_general_levenberg_marquardt.la -rpath /usr/local/lib/kde3/kstplugins -module -avoid-version -module -no-undefined -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib kstfit_general_levenberg_marquardt.lo -lgsl -lgslcblas -lm -lmuparser -lm -Wl,-export-dynamic -L/usr/local/lib -ljpeg -L/usr/local/lib /usr/bin/ld: /usr/local/lib/libmuparser.a(muParser_lib_muParser.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/math/muparser/Makefile,v retrieving revision 1.8 diff -u -r1.8 Makefile --- Makefile 5 Feb 2009 07:37:03 -0000 1.8 +++ Makefile 20 Aug 2009 09:09:40 -0000 @@ -7,6 +7,7 @@ PORTNAME= muparser PORTVERSION= 1.30 +PORTREVISION= 1 CATEGORIES= math devel MASTER_SITES= SF DISTNAME= ${PORTNAME}_v130 @@ -28,6 +29,12 @@ WRKSRC= ${WRKDIR}/muparser +.include + +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" +CFLAGS+= -fPIC +.endif + # taken from audio/taglib post-patch: @${REINPLACE_CMD} -e "s#\$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#g" \ @@ -47,4 +54,4 @@ ${COPYTREE_SHARE} . ${EXAMPLESDIR} .endif -.include +.include >Release-Note: >Audit-Trail: >Unformatted: