Dear Friends,

I am trying to install the Net-SNMP-5.1.3.1 agent on a RHEL 4 machine. I
need to include the LM-SENSORS.MIB also.

Below I am giving the steps which I have done:

1.  ./configure --prefix=/usr/local/net-snmp
--with-mib-modules="ucd-snmp/lmSensors"

2.  make

But at this step , I am getting the following error :


*/bin/sh ../../libtool  --mode=compile gcc -I../../include -I../../include
-I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I..   -g -O2 -Dlinux  -c
-o ucd-snmp/lmSensors.lo ucd-snmp/lmSensors.c
rm -f ucd-snmp/.libs/lmSensors.lo
gcc -I../../include -I../../include -I. -I../.. -I. -I./../..
-I./../../snmplib -I./.. -I.. -g -O2 -Dlinux -c ucd-snmp/lmSensors.c  -fPIC
-DPIC -o ucd-snmp/.libs/lmSensors.lo
ucd-snmp/lmSensors.c:22:29: sensors/sensors.h: No such file or directory
ucd-snmp/lmSensors.c: In function `_sensor_load':
ucd-snmp/lmSensors.c:256: error: syntax error before '*' token
ucd-snmp/lmSensors.c:257: error: syntax error before '*' token
ucd-snmp/lmSensors.c:264: error: `chip' undeclared (first use in this
function)
ucd-snmp/lmSensors.c:264: error: (Each undeclared identifier is reported
only once
ucd-snmp/lmSensors.c:264: error: for each function it appears in.)
ucd-snmp/lmSensors.c:267: error: `data' undeclared (first use in this
function)
ucd-snmp/lmSensors.c:271: error: `SENSORS_MODE_R' undeclared (first use in
this function)
ucd-snmp/lmSensors.c:272: error: `SENSORS_NO_MAPPING' undeclared (first use
in this function)
make[2]: *** [ucd-snmp/lmSensors.lo] Error 1
*

Please help to solve this issue.

-- 
Regards,
Hareesh V
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to