apcupsd 3.4.10 fails to install
Doug Sampson
dougs at dawnsign.com
Fri Sep 21 22:42:57 UTC 2012
> I'm having troubling installing apcupsd 3.4.10 on a FreeBSD 9.0 machine.
> This is what I get:
>
> aries# pwd
> /usr/ports/sysutils/apcupsd
> aries# make install clean
> ===> 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[](unsigned
> 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[](unsigned
> int)'
> gmake[2]: *** [apcupsd] Error 1
> gmake[1]: *** [all] Error 2
> gmake: *** [src_DIR] Error 2
> *** Error code 1
>
> Stop in /usr/ports/sysutils/apcupsd.
> *** Error code 1
>
> Stop in /usr/ports/sysutils/apcupsd.
> aries#
>
>
> This system was compiled from svn sources. The ARIES kernel conf is as
> follows:
>
> 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 $
>
> include GENERIC
> nocpu I486_CPU
> nocpu I586_CPU
> ident ARIES
>
> options KVA_PAGES=512 # increase system memory usage from 1GB to
> 2GB for ZFS usage
>
> nodevice eisa
> nodevice fdc
>
>
> Contents of make.conf:
>
> aries# less /etc/make.conf
> # added by DSS 2/23/09
> #.if $(.CURDIR:M*/sysutils/bacula-client) || \
> # $(.CURDIR:M*/sysutils/bacula-client)
> #CONFIGURE_ARGS+=--enable-static-fd
> #.endif
>
> WITHOUT_X11=yes
> # added by use.perl 2012-09-21 10:18:17
> PERL_VERSION=5.14.2
>
I played around with the selecting/deselecting config options and got apcupsd to install. Previously I had the following options selected:
aries# make showconfig
===> The following configuration options are available for apcupsd-3.14.10:
APCSMART_DRV=on: Compile APC SmartUPS serial driver
APCDUMB_DRV=on: Compile dumb UPS driver
CLIENT_ONLY=off: Only NIS client (no network server or drivers)
CGI=off: Compile with CGI programms to show status
PCNET_DRV=on: Compile PowerChute Network Shutdown driver
USB=on: Compile with USB Support driver
SNMP_DRV=on: Compile with SNMP driver
SNMP_DRV_OLD=off: Compile with old SNMP driver
TCP_WRAPPERS=on: Compile with TCP_WRAPPERS support
TEST_DRV=off: Compile TEST driver
GAPCMON=off: Build GTK GUI front-end
===> Use 'make config' to modify these settings
aries#
The install with the above options failed. Next I ran make with the following options:
aries# make showconfig
===> The following configuration options are available for apcupsd-3.14.10:
APCSMART_DRV=on: Compile APC SmartUPS serial driver
APCDUMB_DRV=off: Compile dumb UPS driver
CLIENT_ONLY=off: Only NIS client (no network server or drivers)
CGI=off: Compile with CGI programms to show status
PCNET_DRV=on: Compile PowerChute Network Shutdown driver
USB=off: Compile with USB Support driver
SNMP_DRV=off: Compile with SNMP driver
SNMP_DRV_OLD=off: Compile with old SNMP driver
TCP_WRAPPERS=on: Compile with TCP_WRAPPERS support
TEST_DRV=off: Compile TEST driver
GAPCMON=off: Build GTK GUI front-end
===> 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 need to be compiled with SNMP?
I was able to install apcupsd on other FreeBSD machines. The only difference is that these other machines are running the RELEASE version kernel instead of a compiled kernel.
~Doug
More information about the freebsd-questions
mailing list