Building apcupsd with the snmp useflag fails. I did a revdep-rebuild and found the following: CXX src/drivers/snmp/drv_rfc1628.c In file included from drv_rfc1628.c:27:0: snmp.h:82:10: error: expected unqualified-id before numeric constant snmp.h:82:10: error: expected ';' before numeric constant drv_rfc1628.c: In function 'int rfc_1628_check_alarms(UPSINFO*)': drv_rfc1628.c:35:40: error: expected unqualified-id before numeric constant drv_rfc1628.c:35:40: error: expected ',' or ';' before numeric constant drv_rfc1628.c: In function 'int rfc1628_snmp_ups_read_static_data(UPSINFO*)': drv_rfc1628.c:79:40: error: expected unqualified-id before numeric constant drv_rfc1628.c:79:40: error: expected ',' or ';' before numeric constant drv_rfc1628.c: In function 'int rfc1628_snmp_ups_read_volatile_data(UPSINFO*)': drv_rfc1628.c:101:40: error: expected unqualified-id before numeric constant drv_rfc1628.c:101:40: error: expected ',' or ';' before numeric constant make[4]: *** [.obj/drv_rfc1628.o] Error 1 make[3]: *** [all] Error 2 make[2]: *** [snmp_DIR] Error 2 make[1]: *** [drivers_DIR] Error 2 make: *** [src_DIR] Error 2 emake failed * ERROR: sys-power/apcupsd-3.14.8-r1 failed (compile phase): [ebuild R ] net-analyzer/net-snmp-5.7.2_rc1 USE="bzip2 elf ipv6 lm_sensors perl ssl tcpd zlib -X -doc -mfd-rewrites -minimal -python -rpm (-selinux) -ucd-compat" 0 kB [ebuild R ] sys-power/apcupsd-3.14.8-r1 USE="cgi nls snmp -gnome -usb" 0 kB Disabling snmp allows building of apcupsd just fine. Reproducible: Always
*** This bug has been marked as a duplicate of bug 430894 ***
I have to appologize for this report, I did see bug 430894 but missed the error. Was 'more' wrong with the other one so overlooked it.