problem compil net-snmp-5.4.1 - Installation - Linux et OS Alternatifs
MarshPosté le 04-05-2008 à 10:45:21
Bonjour,
J'ai une erreur sur le make : Voilà ce que je fait : ./configure --with-mib-modules="ucd-snmp/lmSensors" --with-ldflags="-lsensors" make
Citation :
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -g -O2 -Ulinux -Dlinux=linux -c ucd-snmp/lmSensors.c -fPIC -DPIC -o ucd-snmp/.libs/lmSensors.o ucd-snmp/lmSensors.c: In function '_sensor_load': ucd-snmp/lmSensors.c:943: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token ucd-snmp/lmSensors.c:943: error: 'data' undeclared (first use in this function) ucd-snmp/lmSensors.c:943: error: (Each undeclared identifier is reported only once ucd-snmp/lmSensors.c:943: error: for each function it appears in.) ucd-snmp/lmSensors.c:964: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type ucd-snmp/lmSensors.c:964: error: too few arguments to function 'sensors_get_detected_chips' ucd-snmp/lmSensors.c:973: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function) ucd-snmp/lmSensors.c:974: error: incompatible type for argument 1 of 'sensors_get_label' ucd-snmp/lmSensors.c:974: error: too many arguments to function 'sensors_get_label' make[2]: *** [ucd-snmp/lmSensors.lo] Erreur 1 make[2]: quittant le répertoire « /usr/local/src/net-snmp-5.4.1/agent/mibgroup » make[1]: *** [subdirs] Erreur 1 make[1]: quittant le répertoire « /usr/local/src/net-snmp-5.4.1/agent » make: *** [subdirs] Erreur 1
Marsh Posté le 04-05-2008 à 10:45:21
Bonjour,
J'ai une erreur sur le make :
Voilà ce que je fait :
./configure --with-mib-modules="ucd-snmp/lmSensors" --with-ldflags="-lsensors"
make
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -g -O2 -Ulinux -Dlinux=linux -c ucd-snmp/lmSensors.c -fPIC -DPIC -o ucd-snmp/.libs/lmSensors.o
ucd-snmp/lmSensors.c: In function '_sensor_load':
ucd-snmp/lmSensors.c:943: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ucd-snmp/lmSensors.c:943: error: 'data' undeclared (first use in this function)
ucd-snmp/lmSensors.c:943: error: (Each undeclared identifier is reported only once
ucd-snmp/lmSensors.c:943: error: for each function it appears in.)
ucd-snmp/lmSensors.c:964: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
ucd-snmp/lmSensors.c:964: error: too few arguments to function 'sensors_get_detected_chips'
ucd-snmp/lmSensors.c:973: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
ucd-snmp/lmSensors.c:974: error: incompatible type for argument 1 of 'sensors_get_label'
ucd-snmp/lmSensors.c:974: error: too many arguments to function 'sensors_get_label'
make[2]: *** [ucd-snmp/lmSensors.lo] Erreur 1
make[2]: quittant le répertoire « /usr/local/src/net-snmp-5.4.1/agent/mibgroup »
make[1]: *** [subdirs] Erreur 1
make[1]: quittant le répertoire « /usr/local/src/net-snmp-5.4.1/agent »
make: *** [subdirs] Erreur 1
Si quelqu'un pouvait m'aider SVP