ports/170522: sysutils/ports builds broken for FreeBSD 10
Oleg Ginzburg
olevole at olevole.ru
Fri Aug 10 08:10:05 UTC 2012
>Number: 170522
>Category: ports
>Synopsis: sysutils/ports builds broken for FreeBSD 10
>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 10 08:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Oleg Ginzburg
>Release: 10-CURRENT
>Organization:
>Environment:
FreeBSD gromozeka.my.domain 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r239157: Fri Aug 10 00:28:45 MSK 2012 root at gromozeka.my.domain:/usr/obj/usr/src/sys/GENERIC_NODEBUG amd64
>Description:
sysutils/apcupsd build failed on FreeBSD-CURRENT with the following:
--
CXX src/apcnis.c
LD src/apcupsd
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(snmp.o): In function `Snmp::VarBindList::VarBindList(Asn::Sequence&)':
snmp.cpp:(.text+0x7a8): undefined reference to `operator new[](unsigned long)'
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(snmp.o): In function `Snmp::VarBindList::Append(Asn::ObjectId const&, Snmp::Variable*)':
snmp.cpp:(.text+0xdc9): undefined reference to `operator new[](unsigned long)'
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(snmp.o): In function `Snmp::VarBindList::VarBindList(Asn::Sequence&)':
snmp.cpp:(.text+0xec8): undefined reference to `operator new[](unsigned long)'
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(asn.o): In function `Asn::Sequence::assign(Asn::Sequence const&)':
asn.cpp:(.text+0x73d): undefined reference to `operator new[](unsigned long)'
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(asn.o): In function `Asn::ObjectId::demarshal(unsigned char*&, unsigned int&)':
asn.cpp:(.text+0x82b): undefined reference to `operator new[](unsigned long)'
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.a(asn.o):asn.cpp:(.text+0x934): more undefined references to `operator new[](unsigned long)' follow
gmake[2]: *** [apcupsd] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [src_DIR] Error 2
*** [do-build] Error code 1
--
Looks like after http://svnweb.freebsd.org/base/head/lib/libcxxrt/Version.map?r1=236890&r2=236889&pathrev=236890 libcxx switch to Symbol Versioning and link with stdc++ is required.
>How-To-Repeat:
make -C /usr/ports/sysutils/apcupsd
>Fix:
diff -ruN apcupsd.bak/Makefile apcupsd/Makefile
--- apcupsd.bak/Makefile 2012-08-10 11:53:43.000000000 +0400
+++ apcupsd/Makefile 2012-08-10 11:50:56.000000000 +0400
@@ -35,6 +35,7 @@
CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CONFIGURE_ENV+= LIBS="-lstdc++"
MAN5= apcupsd.conf.5
MAN8= apcaccess.8 apccontrol.8 apctest.8 apcupsd.8
Patch attached with submission follows:
diff -ruN apcupsd.bak/Makefile apcupsd/Makefile
--- apcupsd.bak/Makefile 2012-08-10 11:53:43.000000000 +0400
+++ apcupsd/Makefile 2012-08-10 11:50:56.000000000 +0400
@@ -35,6 +35,7 @@
CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CONFIGURE_ENV+= LIBS="-lstdc++"
MAN5= apcupsd.conf.5
MAN8= apcaccess.8 apccontrol.8 apctest.8 apcupsd.8
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list