From nobody@FreeBSD.org  Tue Oct  9 13:05:18 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BA8BFEA5
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Oct 2012 13:05:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 96D068FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Oct 2012 13:05:18 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q99D5H08037938
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 9 Oct 2012 13:05:17 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q99D5HUw037915;
	Tue, 9 Oct 2012 13:05:17 GMT
	(envelope-from nobody)
Message-Id: <201210091305.q99D5HUw037915@red.freebsd.org>
Date: Tue, 9 Oct 2012 13:05:17 GMT
From: Alexey Kuznetsov <alexey@kouznetsov.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports/sysutils/apcupsd failed to build in i386 machine with USB driver enabled
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172559
>Category:       ports
>Synopsis:       ports/sysutils/apcupsd failed to build in i386 machine with USB driver enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 22:30:31 UTC 2012
>Closed-Date:    Fri Nov 30 22:24:55 UTC 2012
>Last-Modified:  Fri Nov 30 22:24:55 UTC 2012
>Originator:     Alexey Kuznetsov
>Release:        9.1 PRELEASE, 9-0 STABLE i386 and amd64
>Organization:
>Environment:
FreeBSD xxx.xxx.ru 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241351: Mon Oct  8 20:18:24 UTC 2012     root@xxx.xxx.ru:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
if I have  usb [x] option on at make config, then port compilation finished with error message

# make clean all
..
Configuration on Tue Oct  9 16:53:52 MSK 2012:

  Host:                       i386-portbld-freebsd9.1 -- freebsd 9.1-PRERELEASE
  Apcupsd version:            3.14.10 (13 September 2011)
  Source code location:       .
  Install binaries:           /usr/local/sbin
  Install config files:       /usr/local/etc/apcupsd
  Install man files:          /usr/local/man
  Nologin file in:            /var/run
  PID directory:              /var/run
  LOG dir (events, status)    /var/log
  LOCK dir (for serial port)  /var/spool/lock
  Power Fail dir              /var/run
  Compiler:                   c++ 4.2.1
  Compiler flags:             -I/usr/local/include -L/usr/local/lib -I/usr/local/include -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -fno-exceptions -fno-rtti -Wall 
  Linker:                     cc
  Linker flags:                -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/lib -pthread
  Host and version:           freebsd 9.1-PRERELEASE
  Shutdown Program:           /sbin/shutdown
  Port/Device:                /dev/usv
  Network Info Port (CGI):    3551
  UPSTYPE                     apcsmart
  UPSCABLE                    smart

  drivers (no-* are disabled): apcsmart dumb net generic-usb no-snmp no-net-snmp no-pcnet no-test

  enable-nis:                 yes
  with-nisip:                 0.0.0.0
  enable-cgi:                 no
  with-cgi-bin:               /etc/apcupsd
  with-libwrap:               
  enable-pthreads:            yes
  enable-dist-install:        no
  enable-gapcmon:             no
  enable-apcagent:            no
  
Configuration complete: Run 'gmake' to build apcuspd.

===>  Building for apcupsd-3.14.10
        src
        src/lib
  CXX   src/lib/apcconfig.c
  CXX   src/lib/apcerror.c
  CXX   src/lib/apcevents.c
  CXX   src/lib/apcexec.c
  CXX   src/lib/apcfile.c
  CXX   src/lib/apclibnis.c
  CXX   src/lib/apclock.c
  CXX   src/lib/apclog.c
  CXX   src/lib/apcsignal.c
  CXX   src/lib/apcstatus.c
  CXX   src/lib/asys.c
  CXX   src/lib/newups.c
  CXX   src/lib/md5.c
  CXX   src/lib/statmgr.cpp
  CXX   src/lib/gethostname.c
  CXX   src/lib/amutex.cpp
  CXX   src/lib/astring.cpp
  CXX   src/lib/autil.cpp
  CXX   src/lib/atimer.cpp
  CXX   src/lib/athread.cpp
  CXX   src/lib/libsupc++fix.cpp
  AR    src/lib/libapc.a
        src/drivers
        src/drivers/apcsmart
  CXX   src/drivers/apcsmart/smartsetup.c
  CXX   src/drivers/apcsmart/smarteeprom.c
  CXX   src/drivers/apcsmart/smart.c
  CXX   src/drivers/apcsmart/smartoper.c
  CXX   src/drivers/apcsmart/smartsetup2.c
        src/drivers/dumb
  CXX   src/drivers/dumb/dumboper.c
  CXX   src/drivers/dumb/dumbsetup.c
        src/drivers/net
  CXX   src/drivers/net/net.c
        src/drivers/usb
        src/drivers/usb/generic
  CXX   src/drivers/usb/generic/hidutils.c
  CXX   src/drivers/usb/generic/generic-usb.c
  CXX   src/drivers/usb/usb.c
  CXX   src/drivers/drivers.c
  AR    src/drivers/libdrivers.a
        src/libusbhid
  CXX   src/libusbhid/parse.c
  CXX   src/libusbhid/data.c
  CXX   src/libusbhid/descr.c
  AR    src/libusbhid/libusbhid.a
  CXX   src/options.c
  CXX   src/device.c
  CXX   src/reports.c
  CXX   src/action.c
  CXX   src/apcupsd.c
  CXX   src/apcnis.c
  LD    src/apcupsd
/usr/local/ports/work/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::assign(char const*, int)':
astring.cpp:(.text+0x6b): undefined reference to `operator new[](unsigned int)'
/usr/local/ports/work/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::realloc(unsigned int)':
astring.cpp:(.text+0x1ec): undefined reference to `operator new[](unsigned int)'
/usr/local/ports/work/usr/ports/sysutils/apcupsd/work/apcupsd-3.14.10/src/lib/libapc.a(astring.o): In function `astring::vformat(char const*, char*)':
astring.cpp:(.text+0x4a5): undefined reference to `operator new[](unsigned int)'
gmake[2]: *** [apcupsd] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [src_DIR] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/apcupsd.
*** [build] Error code 1

same error described in mail list half of the month ago.
http://lists.freebsd.org/pipermail/freebsd-questions/2012-September/245125.html

looks like snmp_drv[x] option breaks the build process in same way at different place
>How-To-Repeat:
cd /usr/ports/sysutils/apcupsd
make config
enable usb [x]
make all
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 9 22:46:21 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172559 

From: "Alexey Kouznetsov" <alexey@kouznetsov.com>
To: <bug-followup@FreeBSD.org>,
	<alexey@kouznetsov.com>
Cc:  
Subject: Re: ports/172559: ports/sysutils/apcupsd failed to build in i386 machine with USB driver enabled
Date: Wed, 10 Oct 2012 23:21:51 +0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0006_01CDA73E.08EF16B0
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 I found same bug described but for FreeBSD 10 as
 <http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170522> ports/170522. I
 tried path from such PR at FreeBSD 9.1-PREREASE and 9.0-STABLE (csuped
 around 12 July 2012 +- 1 day) and this works for me at both machines.
 Apcupsd started and successfully works with com and usb drivers. Also this
 patch fixed other option was also broken in such port.
 
 
 ------=_NextPart_000_0006_01CDA73E.08EF16B0
 Content-Type: text/html;
 	charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
 xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
 xmlns=3D"http://www.w3.org/TR/REC-html40">
 
 <head>
 <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
 charset=3Dus-ascii">
 <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{margin:0cm;
 	margin-bottom:.0001pt;
 	font-size:12.0pt;
 	font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;}
 span.EmailStyle17
 	{mso-style-type:personal-compose;
 	font-family:Arial;
 	color:windowtext;}
 @page Section1
 	{size:595.3pt 841.9pt;
 	margin:2.0cm 42.5pt 2.0cm 3.0cm;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 
 </head>
 
 <body lang=3DRU link=3Dblue vlink=3Dpurple>
 
 <div class=3DSection1>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
 style=3D'font-size:
 10.0pt;font-family:Arial'>I found same bug described but for FreeBSD 10 =
 as </span></font><a
 href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/170522"
 title=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/170522"><span=
 
 lang=3DEN-US>ports/170522</span></a><span lang=3DEN-US>. I tried path =
 from such PR
 at FreeBSD 9.1-PREREASE and 9.0-STABLE (csuped around 12 July 2012 +- 1 =
 day)
 and this works for me at both machines. Apcupsd started and successfully =
 works
 with com and usb drivers. Also this patch fixed other option was also =
 broken in
 such port.</span><font size=3D2 face=3DArial><span lang=3DEN-US =
 style=3D'font-size:
 10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------=_NextPart_000_0006_01CDA73E.08EF16B0--
 
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Fri Nov 30 22:24:53 UTC 2012 
State-Changed-Why:  
Should be fixed now, please update your ports and mail me if it's not. 
Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172559 
>Unformatted:
