From owner-freebsd-ports@FreeBSD.ORG Tue Aug 28 12:48:49 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF559106566C; Tue, 28 Aug 2012 12:48:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5624A8FC14; Tue, 28 Aug 2012 12:48:48 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q7SCmGcT010429; Tue, 28 Aug 2012 15:48:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q7SCm4hs065209; Tue, 28 Aug 2012 15:48:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q7SCm3Ml065208; Tue, 28 Aug 2012 15:48:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 28 Aug 2012 15:48:03 +0300 From: Konstantin Belousov To: Ion-Mihai Tetcu Message-ID: <20120828124803.GM33100@deviant.kiev.zoral.com.ua> References: <201208251822.45678.olevole@olevole.ru> <20120828114631.7b46f606@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ga6FVKWZzVeX7g0Z" Content-Disposition: inline In-Reply-To: <20120828114631.7b46f606@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Warren Block , ports@freebsd.org, freebsd-ports@freebsd.org, Oleg Ginzburg Subject: Re: apcupsd compile fails on 9-stable amd64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 12:48:49 -0000 --Ga6FVKWZzVeX7g0Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 28, 2012 at 11:46:31AM +0300, Ion-Mihai Tetcu wrote: > On Sat, 25 Aug 2012 14:01:09 -0600 (MDT) > Warren Block wrote: >=20 > > On Sat, 25 Aug 2012, Oleg Ginzburg wrote: > >=20 > > > On Saturday 25 August 2012 18:06:29 Warren Block wrote: > > >> Discovered last night that sysutils/apcupsd will not compile on > > >> 9-stable amd64 if the USB or SNMP options are enabled. It does > > >> compile on 8.3-stable i386. Stock gcc, not clang. ccache is > > >> installed, but not used for ports. Any suggestions? > > >> > > >> ... > > >> CXX src/apcupsd.c > > >> CXX src/apcnis.c > > >> LD src/apcupsd > > >> /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdriv= ers.a(s > > >> nmp.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 > > > > > > Ive already register PR for this: http://www.freebsd.org/cgi/query- > > > pr.cgi?pr=3Dports/170522 > >=20 > > Sorry, saw that last night, but forgot about it. The fix works for > > me. Thanks! >=20 > Thanks for confirming=20 I do not think the 'fix' is right one. The issue there is that C compiler driver is used to link object files generated by C++ compiler. Basically, you need to change $(CC) to $(CXX) somewhere for LD. --Ga6FVKWZzVeX7g0Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlA8vgMACgkQC3+MBN1Mb4gYigCfZOpBZpHHzuaKJ7G7NwqrDD7g yUEAnRdL2d7S+syXsPvfhQA76b8o6K1U =Edhr -----END PGP SIGNATURE----- --Ga6FVKWZzVeX7g0Z--