Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443484 - sys-power/apcupsd-3.14.8-r1 with snmp support - snmp.h:82:10: error: expected unqualified-id before numeric constant
Summary: sys-power/apcupsd-3.14.8-r1 with snmp support - snmp.h:82:10: error: expected...
Status: RESOLVED DUPLICATE of bug 430894
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 09:09 UTC by Olliver Schinagl
Modified: 2012-11-16 20:28 UTC (History)
2 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 Olliver Schinagl 2012-11-16 09:09:35 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-16 16:26:24 UTC

*** This bug has been marked as a duplicate of bug 430894 ***
Comment 2 Olliver Schinagl 2012-11-16 20:28:48 UTC
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.