lm_sensor

rangeli nepal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello Everybody,

How are you doing. I am trying to compile net-snmp 5.5 with lm_sensor  3.1.1
on centos 4.8 platform

with following option

 --with-mib-modules="ucd-snmp/lmsensorsMib" --with-ldflags="-lsensors"

It starts with very encouraging message :

checking for and configuring mib modules to use...  ucd-snmp/lmsensorsMib
default_modules.
 ucd-snmp/lmsensorsMib default_modules hardware/sensors snmpv3mibs mibII
ucd_snmp ..........


But at the end I get following:



 /bin/sh ../../libtool  --mode=compile gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib   -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -Ulinux -Dlinux=linux -I/usr/include/rpm  -D_REENTRANT
-D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE   -c -o
hardware/sensors/lmsensors_v2.lo hardware/sensors/lmsensors_v2.c
libtool: compile:  gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT
-D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/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: syntax error before '*' token
hardware/sensors/lmsensors_v2.c:23: warning: passing arg 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: error: `data' undeclared (first use in
this function)
hardware/sensors/lmsensors_v2.c:27: error: (Each undeclared identifier is
reported only once
hardware/sensors/lmsensors_v2.c:27: error: for each function it appears in.)
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'
make[2]: *** [hardware/sensors/lmsensors_v2.lo] Error 1

am I missing something.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.