From owner-freebsd-questions@FreeBSD.ORG Fri Sep 21 22:42:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6E65106567B for ; Fri, 21 Sep 2012 22:42:57 +0000 (UTC) (envelope-from dougs@dawnsign.com) Received: from mailfilter.dawnsign.com (pyxis.dawnsign.com [69.198.101.212]) by mx1.freebsd.org (Postfix) with ESMTP id 2FE918FC1E for ; Fri, 21 Sep 2012 22:42:57 +0000 (UTC) Received: from mailfilter.dawnsign.com (localhost [127.0.0.1]) by mailfilter.dawnsign.com (Postfix) with ESMTP id B3B789595C for ; Fri, 21 Sep 2012 15:42:49 -0700 (PDT) Received: from Draco.dawnsign.com (draco.dawnsign.com [192.168.101.33]) by mailfilter.dawnsign.com (Postfix) with ESMTP id 92F349586F for ; Fri, 21 Sep 2012 15:42:49 -0700 (PDT) Received: from DRACO.dawnsign.com ([fe80::6062:7fef:2376:a729]) by Draco.dawnsign.com ([fe80::6062:7fef:2376:a729%10]) with mapi id 14.01.0379.000; Fri, 21 Sep 2012 15:42:49 -0700 From: Doug Sampson To: "freebsd-questions@freebsd.org" Thread-Topic: apcupsd 3.4.10 fails to install Thread-Index: Ac2YJgMaHaN2HOTNQ6KhEqOB6kCQKQAHYPAQ Date: Fri, 21 Sep 2012 22:42:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.101.149] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Subject: RE: apcupsd 3.4.10 fails to install X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2012 22:42:57 -0000 > I'm having troubling installing apcupsd 3.4.10 on a FreeBSD 9.0 machine. > This is what I get: >=20 > aries# pwd > /usr/ports/sysutils/apcupsd > aries# make install clean > =3D=3D=3D> Building for apcupsd-3.14.10 > src > src/lib > src/drivers > src/drivers/apcsmart > src/drivers/dumb > src/drivers/net > src/drivers/pcnet > src/drivers/usb > src/drivers/usb/generic > src/libusbhid > LD src/apcupsd > /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+0xbb): undefined reference to `operator new[](unsigned > int)' > /usr/ports/sysutils/apcupsd/work/apcupsd- > 3.14.10/src/lib/libapc.a(astring.o): In function > `astring::realloc(unsigned int)': > astring.cpp:(.text+0x23c): undefined reference to `operator new[](unsigne= d > int)' > /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[](unsigne= d > int)' > gmake[2]: *** [apcupsd] Error 1 > gmake[1]: *** [all] Error 2 > gmake: *** [src_DIR] Error 2 > *** Error code 1 >=20 > Stop in /usr/ports/sysutils/apcupsd. > *** Error code 1 >=20 > Stop in /usr/ports/sysutils/apcupsd. > aries# >=20 >=20 > This system was compiled from svn sources. The ARIES kernel conf is as > follows: >=20 > aries# less /usr/src/sys/i386/conf/ARIES > # > # GENERIC -- Generic kernel configuration file for FreeBSD/i386 > # > # For more information on this file, please read the config(5) manual > page, > # and/or the handbook section on Kernel Configuration Files: > # > # http://www.FreeBSD.org/doc/en_US.ISO8859- > 1/books/handbook/kernelconfig-config.html > # > < ..snip.. > > # > # $FreeBSD: releng/9.0/sys/i386/conf/GENERIC 227305 2011-11-07 13:40:54Z > marius $ >=20 > include GENERIC > nocpu I486_CPU > nocpu I586_CPU > ident ARIES >=20 > options KVA_PAGES=3D512 # increase system memory usage from 1GB= to > 2GB for ZFS usage >=20 > nodevice eisa > nodevice fdc >=20 >=20 > Contents of make.conf: >=20 > aries# less /etc/make.conf > # added by DSS 2/23/09 > #.if $(.CURDIR:M*/sysutils/bacula-client) || \ > # $(.CURDIR:M*/sysutils/bacula-client) > #CONFIGURE_ARGS+=3D--enable-static-fd > #.endif >=20 > WITHOUT_X11=3Dyes > # added by use.perl 2012-09-21 10:18:17 > PERL_VERSION=3D5.14.2 >=20 I played around with the selecting/deselecting config options and got apcup= sd to install. Previously I had the following options selected: aries# make showconfig =3D=3D=3D> The following configuration options are available for apcupsd-3.= 14.10: APCSMART_DRV=3Don: Compile APC SmartUPS serial driver APCDUMB_DRV=3Don: Compile dumb UPS driver CLIENT_ONLY=3Doff: Only NIS client (no network server or drivers) CGI=3Doff: Compile with CGI programms to show status PCNET_DRV=3Don: Compile PowerChute Network Shutdown driver USB=3Don: Compile with USB Support driver SNMP_DRV=3Don: Compile with SNMP driver SNMP_DRV_OLD=3Doff: Compile with old SNMP driver TCP_WRAPPERS=3Don: Compile with TCP_WRAPPERS support TEST_DRV=3Doff: Compile TEST driver GAPCMON=3Doff: Build GTK GUI front-end =3D=3D=3D> Use 'make config' to modify these settings aries# The install with the above options failed. Next I ran make with the followi= ng options: aries# make showconfig =3D=3D=3D> The following configuration options are available for apcupsd-3.= 14.10: APCSMART_DRV=3Don: Compile APC SmartUPS serial driver APCDUMB_DRV=3Doff: Compile dumb UPS driver CLIENT_ONLY=3Doff: Only NIS client (no network server or drivers) CGI=3Doff: Compile with CGI programms to show status PCNET_DRV=3Don: Compile PowerChute Network Shutdown driver USB=3Doff: Compile with USB Support driver SNMP_DRV=3Doff: Compile with SNMP driver SNMP_DRV_OLD=3Doff: Compile with old SNMP driver TCP_WRAPPERS=3Don: Compile with TCP_WRAPPERS support TEST_DRV=3Doff: Compile TEST driver GAPCMON=3Doff: Build GTK GUI front-end =3D=3D=3D> Use 'make config' to modify these settings aries# This time make succeeded and I was able to install. What appears to be missing from my kernel file? Since the UPS is a SmartUPS= 450SC, I really do not need the USB option. Nor do I need the APCDUMB_DRV = option. This leaves the SNMP_DRV as a potential culprit. Does the kernel ne= ed to be compiled with SNMP? I was able to install apcupsd on other FreeBSD machines. The only differenc= e is that these other machines are running the RELEASE version kernel inste= ad of a compiled kernel. ~Doug =20