apcupsd compile fails on 9-stable amd64

2012-08-25 Thread Warren Block
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
  LDsrc/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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: apcupsd compile fails on 9-stable amd64

2012-08-25 Thread Oleg Ginzburg
Hi

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
>LDsrc/apcupsd
> /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.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
> ___
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Ive already register PR for this: http://www.freebsd.org/cgi/query-
pr.cgi?pr=ports/170522

-- 
С уважением, With respect,
Олег Гинзбург Oleg Ginzburg
=
E-mail: mailto: olev...@olevole.ru
Skype: olegginzburg
XMPP/Jabber: olev...@jabber.ru

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: apcupsd compile fails on 9-stable amd64

2012-08-25 Thread Warren Block

On Sat, 25 Aug 2012, Oleg Ginzburg wrote:


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
   LDsrc/apcupsd
/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.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=ports/170522


Sorry, saw that last night, but forgot about it.  The fix works for me. 
Thanks!

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: apcupsd compile fails on 9-stable amd64

2012-08-28 Thread Ion-Mihai Tetcu
On Sat, 25 Aug 2012 14:01:09 -0600 (MDT)
Warren Block  wrote:

> On Sat, 25 Aug 2012, Oleg Ginzburg wrote:
> 
> > 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
> >>LDsrc/apcupsd
> >> /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.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=ports/170522
> 
> Sorry, saw that last night, but forgot about it.  The fix works for
> me. Thanks!

Thanks for confirming 

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: apcupsd compile fails on 9-stable amd64

2012-08-28 Thread Konstantin Belousov
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:
> 
> > On Sat, 25 Aug 2012, Oleg Ginzburg wrote:
> > 
> > > 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
> > >>LDsrc/apcupsd
> > >> /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/drivers/libdrivers.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=ports/170522
> > 
> > Sorry, saw that last night, but forgot about it.  The fix works for
> > me. Thanks!
> 
> Thanks for confirming 

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.


pgpuo8lvsURrY.pgp
Description: PGP signature