From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 29 04:20:13 2012 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 B52F91065675 for ; Wed, 29 Feb 2012 04:20:13 +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 8BE178FC19 for ; Wed, 29 Feb 2012 04:20:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1T4KDgV032330 for ; Wed, 29 Feb 2012 04:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1T4KDOG032329; Wed, 29 Feb 2012 04:20:13 GMT (envelope-from gnats) Resent-Date: Wed, 29 Feb 2012 04:20:13 GMT Resent-Message-Id: <201202290420.q1T4KDOG032329@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, "Philip M. Gollucci" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637FC10658A7 for ; Wed, 29 Feb 2012 04:12:50 +0000 (UTC) (envelope-from pgollucci@frieza.p6m7g8.net) Received: from frieza.p6m7g8.net (wsip-174-79-184-239.dc.dc.cox.net [174.79.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 2A28A8FC2C for ; Wed, 29 Feb 2012 04:12:47 +0000 (UTC) Received: from frieza.p6m7g8.net (localhost [127.0.0.1]) by frieza.p6m7g8.net (8.14.5/8.14.4) with ESMTP id q1T2r7mH054309; Wed, 29 Feb 2012 02:53:07 GMT (envelope-from pgollucci@frieza.p6m7g8.net) Received: (from pgollucci@localhost) by frieza.p6m7g8.net (8.14.5/8.14.5/Submit) id q1T2r7FL054308; Wed, 29 Feb 2012 02:53:07 GMT (envelope-from pgollucci) Message-Id: <201202290253.q1T2r7FL054308@frieza.p6m7g8.net> Date: Wed, 29 Feb 2012 02:53:07 GMT From: "Philip M. Gollucci" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: ssanders@taximagic.com Subject: ports/165545: net-mgmt/collectd5 doesn't compile against lang/python[23]* X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Philip M. Gollucci" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 04:20:13 -0000 >Number: 165545 >Category: ports >Synopsis: net-mgmt/collectd5 doesn't compile against lang/python[23]* >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 29 04:20:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Philip M. Gollucci >Release: FreeBSD 10.0-CURRENT amd64 >Organization: RideCharge Inc. >Environment: >Description: Warning: Linking the shared library python.la against the static library /usr/local/lib/libpython2.7.a is not portable! libtool: link: cc -shared .libs/python_la-python.o .libs/python_la-pyconfig.o .libs/python_la-pyvalues.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/lo cal/lib/libpython2.7.a /usr/local/lib/libstatgrab.so -ldevstat -Wl,-soname -Wl,python.so -o .libs/python.so /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC but yet in lang/python27 -- cc -c -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe -fno-strict-aliasing -I. -IInclude -I./../Include -fPIC -DPy_BUILD_CORE -o Objects/abstract.o ./../Objects/abstr act.c >How-To-Repeat: build net-mgmt/collectd5 >Fix: At any rate, the fix is exactly as the compiler suggests use -fPIC which the patch does --- python.diff begins here --- Index: lang/python24/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python24/Makefile,v retrieving revision 1.176 diff -u -r1.176 Makefile --- lang/python24/Makefile 5 Nov 2011 13:18:25 -0000 1.176 +++ lang/python24/Makefile 29 Feb 2012 02:48:50 -0000 @@ -7,7 +7,7 @@ PORTNAME= python24 PORTVERSION= 2.4.5 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -20,6 +20,7 @@ WRKSRC= ${PYTHON_WRKSRC} GNU_CONFIGURE= yes CONFIGURE_ENV= OPT="${CFLAGS}" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${WRKSRC}" USE_LDCONFIG= yes INSTALL_TARGET= altinstall Index: lang/python25/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python25/Makefile,v retrieving revision 1.168 diff -u -r1.168 Makefile --- lang/python25/Makefile 18 Feb 2012 17:53:52 -0000 1.168 +++ lang/python25/Makefile 29 Feb 2012 02:49:25 -0000 @@ -7,7 +7,7 @@ PORTNAME= python25 PORTVERSION= 2.5.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -22,6 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${PYTHON_WRKSRC}" USE_LDCONFIG= yes INSTALL_TARGET= altinstall Index: lang/python26/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python26/Makefile,v retrieving revision 1.180 diff -u -r1.180 Makefile --- lang/python26/Makefile 18 Feb 2012 17:53:52 -0000 1.180 +++ lang/python26/Makefile 29 Feb 2012 02:49:01 -0000 @@ -7,7 +7,7 @@ PORTNAME= python26 PORTVERSION= 2.6.7 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -22,6 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${PYTHON_WRKSRC}" USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes Index: lang/python27/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python27/Makefile,v retrieving revision 1.184 diff -u -r1.184 Makefile --- lang/python27/Makefile 18 Feb 2012 17:53:53 -0000 1.184 +++ lang/python27/Makefile 29 Feb 2012 02:49:05 -0000 @@ -7,7 +7,7 @@ PORTNAME= python27 PORTVERSION= 2.7.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -22,6 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${PYTHON_WRKSRC}" USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes Index: lang/python31/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python31/Makefile,v retrieving revision 1.178 diff -u -r1.178 Makefile --- lang/python31/Makefile 18 Feb 2012 17:53:53 -0000 1.178 +++ lang/python31/Makefile 29 Feb 2012 02:49:10 -0000 @@ -7,7 +7,7 @@ PORTNAME= python31 PORTVERSION= 3.1.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -22,6 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${PYTHON_WRKSRC}" MAKE_JOBS_SAFE= yes USE_LDCONFIG= yes Index: lang/python32/Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python32/Makefile,v retrieving revision 1.183 diff -u -r1.183 Makefile --- lang/python32/Makefile 18 Feb 2012 17:53:53 -0000 1.183 +++ lang/python32/Makefile 29 Feb 2012 02:49:31 -0000 @@ -7,7 +7,7 @@ PORTNAME= python32 PORTVERSION= 3.2.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -22,6 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../configure # must be relative CONFIGURE_ENV= OPT="${CFLAGS}" SVNVERSION="echo freebsd" +CFLAGS+= -fPIC MAKE_ENV= VPATH="${PYTHON_WRKSRC}" MAKE_JOBS_SAFE= yes USE_LDCONFIG= yes --- python.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: