ports/165545: net-mgmt/collectd5 doesn't compile against lang/python[23]*
Philip M. Gollucci
pgollucci at FreeBSD.org
Wed Feb 29 04:20:13 UTC 2012
>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:
More information about the freebsd-ports-bugs
mailing list