Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159354 - sys-power/apcupsd-3.12.4 fails to compile with USE=snmp
Summary: sys-power/apcupsd-3.12.4 fails to compile with USE=snmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
: 174567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-29 01:49 UTC by Michael Cramer
Modified: 2007-06-15 02:09 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2006-12-29 01:49:59 UTC
emerge -pv apcupsd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-power/apcupsd-3.12.4  USE="cgi doc ncurses nls snmp threads usb -vhosts" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

-----

gmake[3]: Leaving directory `/var/tmp/portage/sys-power/apcupsd-3.12.4/work/apcupsd-3.12.4/src/drivers/usb'
gmake[3]: Entering directory `/var/tmp/portage/sys-power/apcupsd-3.12.4/work/apcupsd-3.12.4/src/drivers/snmp'
/usr/bin/g++ -c -I/usr/local/include -fno-exceptions -fno-rtti -O2 -march=pentium3 -pipe -fomit-frame-pointer -Wall   -I/var/tmp/portage/sys-power/apcupsd-3.
12.4/work/apcupsd-3.12.4/include   powernet-mib-mgr.c
/usr/include/net-snmp/library/snmp_api.h:359: error: expected constructor, destructor, or type conversion before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected constructor, destructor, or type conversion before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected constructor, destructor, or type conversion before 'void'
gmake[3]: *** [powernet-mib-mgr.o] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-power/apcupsd-3.12.4/work/apcupsd-3.12.4/src/drivers/snmp'
gmake[2]: *** [all-subdirs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/sys-power/apcupsd-3.12.4/work/apcupsd-3.12.4/src/drivers'
gmake[1]: *** [all-subdirs] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/sys-power/apcupsd-3.12.4/work/apcupsd-3.12.4/src'
make: *** [all-subdirs] Error 2

!!! ERROR: sys-power/apcupsd-3.12.4 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  apcupsd-3.12.4.ebuild, line 67:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Michael Cramer 2006-12-29 01:50:13 UTC
Portage 2.1.2_rc4-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3-2006.0 i686)
=================================================================
System uname: 2.6.18-gentoo-r3-2006.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.8
Last Sync: Fri, 29 Dec 2006 09:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks admin aiglx akode alias alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr ao aoss apache2 apm arts artswrappersuid artworkextra asterisk async audiofile authfile autoipd automount autoreplace avahi avalon-framework avalon-logkit bcmath bcp beagle berkdb big-tables bitmap-fonts bjam bluetooth boo bookmarks branding brltty bzip2 cairo calendar caps cdb cddb cdparanoia cdr cgi chm cjk clamav cli cluster commons-digester connectionstatus contactnotes cpudetection cracklib crypt cscope css ctype cups curl curlwrappers cvs dbus dcraw depth32 dga directfb diskio djbfft djvu dlloader dmi dmx doc drac dri dts dv dvd dvdr dvdread dvi dynamic ecc eds elf elibc_glibc emacs emboss emovix encode epydoc esd evo examples exif expat extraengine extrafilters faad fam fame fbcon ffmpeg fftw filepro firebird firefox flac flatfile fontconfig fortran fpx freetds freetts ft ftp gadu galago gcj gd gdbm ggi gif gimp glep glib glibc-omitfp glitz gmp gnokii gnome gnutls gphoto2 gpm graphviz groupwise gs gstreamer gtk gtkhtml guile hal hash hesiod highlight history howl-compat hpn ical iconv icu idea idled idn ieee1394 ifsession imagemagick imap imlib immqt inifile input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc irda isdnlog ithreads jack jack-tmpfs java java5 javamail javascript jbig jce jingle jms jmx joystick jpeg jpeg2k junit justify jython kcal kde kdeenablefinal kdehiddenvisibility kdrive kerberos kernel_linux keyring kig-scripting krb4 lame latex lcms ldap leim libcaca libg++ libnotify linguas_de linguas_en lirc lirc_devices_serial lm_sensors log4j logrotate lua lzo lzw mad max-idx-128 mbrola mdb memlimit mfd-rewrites mhash mikmod mime ming mjpeg mmap mmx mng modplug mono motif mozbranding mozcalendar mozdevelop mp3 mp3rtp mp4 mpeg mpm-prefork mssql mudflap multiuser musepack musicbrainz mysql mysqli nas ncurses neXt nethack netjack netmeeting netpbm network new-login nfs nis nls nntp no-old-linux nowlistening nptl nptlonly nsplugin numeric oav objc objc++ objc-gc ocaml odbc ofa ogg ole onaccess openct openexr opengl opensslcrypt oss overlays p2p pam pam_chroot pam_console pam_timestamp pch pcntl pcre pcsc-lite pda pdf pdo pear perl pg-intdatetime php physfs pic pike png portaudio posix postgres povray ppds pppd pwdb pyste python qt3 qt3support qt4 quicktime quotas rdesktop readline reflection rewrite rhino rle rpm rrdcgi ruby samba sametime sample sasl scanner script sdl sendmail sensord serial servletapi session shaper sharedmem sid simplexml sitemisc skey slp smartcard smp sms smux sndfile snmp soap sockets socks5 softquota speex spell spl sql sqlite sqlite3 srp sse ssl statistics subversion svg svga swat symlink sysfs syslog sysvipc t1lib tcl tcltk tcpd test tetex texteffect theora threads threadsafe tidy tiff timidity tk tokenizer toolbar tools translator transmitter truetype truetype-fonts type1-fonts ucs2 udev unicode unzip usb userland_GNU utempter vcd video_cards_r128 video_cards_vesa vim-pager vim-syntax vim-with-x vorbis vorbis-psy vroot wddx webpresence wifi win32codecs winbind winpopup wmf wxwindows x264 xbase xcb xcomposite xforms xinerama xinetd xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid yahoo yaz yv12 zeroconf zip zlib"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Russell Knighton 2007-01-13 22:53:26 UTC
Just wanted to pipe up and say I have the same issue. Removing SNMP use flag allows it to compile.

Portage 2.1.2_rc4-r5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.12.8
Last Sync: Thu, 04 Jan 2007 03:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fforce-addr -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fforce-addr -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo http://gentoo.osuosl.org ftp://mirrors.blueyonder.co.uk/mirrors/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo http://gentoo.mirrors.pair.com"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://starbug/gentoo-portage"
USE="/ 3dnow 3dnowext 7zip X a52 aac aalib acpi aiglx aim alsa aoss asf audiofile avahi avi beagle bidi bitmap bitmap-fonts bluetooth bonobo bzip2 cairo caps cdda cddb cdio cdparanoia cdr cjk cli cracklib crypt cups curl dbus dga dhcp divx divx4linux dlloader dmi dpms dri dv dvb dvd dvdr dvdread eds encode esd evo evolution exif faad fastcgi fbcon ffmpeg fglrx firefox flac flash foomaticdb fortran ftp fuse gb gd gdbm gif gimp glibc-omitfp gmedia gnome gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal iconv icq ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jikes joystick jpeg jpeg2k kerberos keyring krb4 lcms ldap libg++ libnotify libvisual libwww lirc live lm_sensors mad matroska migemo mikmod mime ming mjpeg mmx mmx2 mmxext mng modplug mono mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mpi mppe-mppc msn musepack nas nautilus ncurses network nforce2 nfs nls nptl nptlonly nsplugin oav odbc offensive ogg oggvorbis on-the-fly-crypt opengl oscar pam pcre pda pdf pdflib perl pic pmu png ppds pppd prelude python qt3 quicktime readline real reflection rtc samba sasl scanner sdl session shorten slp sndfile snmp sockets sox speex spell spl sse ssl stream sysfs syslog szip tcl tcltk tcpd theora tiff tk truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd videos vidix vim vim-syntax visualization vorbis wavpack win32codecs wma wmf wmp x264 x86 xinerama xml xml2 xorg xosd xpm xprint xv xvid yahoo zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LINGUAS="en_GB en" LIRC_DEVICES="avermedia" USERLAND="GNU" VIDEO_CARDS="fglrx ati radeon vesa v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Peter 2007-01-16 02:42:15 UTC
This bug report has been very helpful! apcupsd wouldn't work until a remerge, which wouldn't work until -snmp was added. Now /etc/init.d/apcupsd start works flawlessly and my system will respond now to power failures.
Comment 4 Philippe Chaintreuil 2007-02-01 22:27:54 UTC
I'm seeing this as well.
Comment 5 Philippe Chaintreuil 2007-02-01 22:29:36 UTC
Strangely I my compile and install complete!  I just don't get the executable installed, so /etc/init.d/apcupsd start doesn't work.
Comment 6 Martin Balaz 2007-02-05 17:05:48 UTC
The problem is, that the macro NETSNMP_IMPORT in the file /usr/include/net-snmp/library/snmp_api.h on lines 359-361 is not defined.

There are more solutions:
1) Change it to "extern"
2) Include net-snmp/net-snmp-config.h in the file "/var/tmp/portage/apcupsd-3.12.4/work/apcupsd-3.12.4/src/drivers/snmp/snmp.h":

# ifdef HAVE_NET_SNMP
#  include <net-snmp/net-snmp-config.h>
#  include <net-snmp/library/asn1.h>
#  include <net-snmp/library/snmp.h>
#  include <net-snmp/library/snmp_api.h>
#  include <net-snmp/library/snmp_client.h>
# endif
Comment 7 Matthias Nagl 2007-02-14 23:36:28 UTC
the same problem occurs with the amd64-stable version apcupsd-3.10.18-r1.
Comment 8 Malachi Constant 2007-03-12 08:02:36 UTC
Confirmed for AMD64 arch.  Also confirmed for 3.10.15-r1, 3.10.18-r1.
Comment 9 Johnny 2007-03-23 18:50:27 UTC
I get the behavior mentioned in comment #5 here, i.e., it emerges with no errors but no binary results in /usr/sbin or anywhere else.
My use flags are already sans snmp
USE="nls usb -apache2 -cgi -doc -ncurses -snmp -threads"
 bit disabling since it emerges with binary just fine if I leave out the usb flag but since my only cable is usb...
Comment 10 Jeffrey Gardner (RETIRED) gentoo-dev 2007-03-23 19:58:45 UTC
I just committed Martin Balaz's fix...sync in half an hour or so and try again..
Thanks Martin!
Comment 11 Johnny 2007-03-23 21:31:06 UTC
emerge with USE="nls usb -apache2 -cgi -doc -ncurses -snmp -threads"
makes a binary now:
~ # which apcupsd
/usr/sbin/apcupsd

 Thanks.

OK so we know in atimely fashion if it fixes the original bug here's some errors from the log when I add back in the op use flags
sys-power/apcupsd usb cgi doc ncurses nls snmp threads -vhosts

it does this, in part, when I grep for errors in the log:
gmake[2]: *** [drivers.o] Error 1
ar rc libapc.a proctitle.o apcconfig.o apcerror.o apcevents.o apcexec.o apcfile.o apcipc.o apclibnis.o apclist.o apclock.o apclog.o apcsignal.o apcstatus.o asys.o apcwinip
c.o
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
gmake[2]: *** [drivers.o] Error 1
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
gmake[3]: *** [drv_powernet.o] Error 1
gmake[3]: *** [powernet-mib-mgr.o] Error 1
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
gmake[3]: *** [rfc1628-mib-mgr.o] Error 1
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
gmake[3]: *** [drv_powernet.o] Error 1
gmake[3]: *** [powernet-mib-mgr.o] Error 1
gmake[1]: *** [/var/tmp/portage/sys-power/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/libdrivers.a] Error 2
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
gmake[3]: *** [powernet-mib-mgr.o] Error 1
/usr/include/net-snmp/library/snmp_api.h:359: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/net-snmp/library/snmp_api.h:360: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/net-snmp/library/snmp_api.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

Hope this helps I don't need the snmp myself.
Comment 12 Jeffrey Gardner (RETIRED) gentoo-dev 2007-03-25 00:13:36 UTC
Johnny, which apcupsd version are you using? I committed the fix to apcupsd-3.12.4 and it's working fine here.
Comment 13 Johnny 2007-03-25 06:15:59 UTC
(In reply to comment #12)
> Johnny, which apcupsd version are you using? I committed the fix to
> apcupsd-3.12.4 and it's working fine here.
> 

I'm using the latest: 3.10.18-r1
which is odd since your fix seems to have fixed the problem I was having that when using USE="nls usb -apache2 -cgi -doc -ncurses -snmp -threads"
 I was getting no resulting binary but now it works fine (at least I get the binary now even if usb doesn't work for me ...yet)
The errors posted were with the USE also as posted, no errors for the above.
Maybe I should downrev...
Comment 14 Johnny 2007-03-25 06:49:43 UTC
(In reply to comment #13)
hmm.. just noticed, duh,I'm looking at 2 revs down on the center number 3.10.X when y'all are looking at 3.12.X
 I had thought I was using the latest...I'd done a sync...I'll get back to you when I figure out how to get up to the same rev as everyone else.
Comment 15 Johnny 2007-03-25 07:29:59 UTC
(In reply to comment #14)
> (In reply to comment #13)
I'm guessing that my different apcupsd rev is due to using 2.6.18-hardened kernel and that somehow chooses a different rev from portage so perhaps my compile findings are irrelevant to this bug.
Comment 16 Jeffrey Gardner (RETIRED) gentoo-dev 2007-03-25 18:37:03 UTC
I'm going to go ahead and mark this FIXED for users of 3.12.4 and set my calendar for stabilization.
Thanks everyone!
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2007-04-14 10:06:58 UTC
*** Bug 174567 has been marked as a duplicate of this bug. ***
Comment 18 opello@opello.org 2007-06-15 02:09:10 UTC
I experienced this bug on x86 with the the latest stable, apcupsd-3.10.18-r1.  The listed fix for 3.12.4 in #6 (adding the net-snmp-config.h to the includes in the ifdef) worked fine for 3.10.18-r1 too.  Looks like 3.12 never got stabilized?  Seems like the newer version should be stabilized or the fix backported?