libtool: compile: i686-pc-linux-gnu-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -DNETSNMP_ENABLE_IPV6 -O2 -pipe -Wall -ggdb -march=athlon-xp -Ulinux -Dlinux=linux -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -c hardware/sensors/lmsensors_v2.c -fPIC -DPIC -o hardware/sensors/.libs/lmsensors_v2.o hardware/sensors/lmsensors_v2.c: In function ‘netsnmp_sensor_arch_load’: hardware/sensors/lmsensors_v2.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token hardware/sensors/lmsensors_v2.c:19: error: ‘data’ undeclared (first use in this function) hardware/sensors/lmsensors_v2.c:19: error: (Each undeclared identifier is reported only once hardware/sensors/lmsensors_v2.c:19: error: for each function it appears in.) hardware/sensors/lmsensors_v2.c:20: warning: ISO C90 forbids mixed declarations and code hardware/sensors/lmsensors_v2.c:23: warning: passing argument 1 of ‘sensors_get_detected_chips’ from incompatible pointer type hardware/sensors/lmsensors_v2.c:23: error: too few arguments to function ‘sensors_get_detected_chips’ hardware/sensors/lmsensors_v2.c:27: warning: implicit declaration of function ‘sensors_get_all_features’ hardware/sensors/lmsensors_v2.c:29: warning: ISO C90 forbids mixed declarations and code hardware/sensors/lmsensors_v2.c:34: error: ‘SENSORS_NO_MAPPING’ undeclared (first use in this function) hardware/sensors/lmsensors_v2.c:35: error: incompatible type for argument 1 of ‘sensors_get_label’ hardware/sensors/lmsensors_v2.c:35: error: too many arguments to function ‘sensors_get_label’ hardware/sensors/lmsensors_v2.c:36: warning: implicit declaration of function ‘sensors_get_feature’ make[2]: *** [hardware/sensors/lmsensors_v2.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.5/work/net-snmp-5.5/agent/mibgroup' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.5/work/net-snmp-5.5/agent' make: *** [subdirs] Error 1 The problem persists in 5.6 which isn't in the tree yet. 5.5 is package.masked because of this (and because of possible new features I have not yet explored).
This was fixed in 5.4.2.1 (and still is in 5.4.2.1-r4 currently in the tree) via 2 patches. The patches were dropped by whoever bumped to 5.4.3 and haven't been added back.
Fixed as of 5.7.2_rc1.