Dear Sir,
I want to upgrade the Net-SNMP version 5.0.9 installed on a Solaris 10
(sun4u platform ) machine as I am not able to query the 'hrProcessorLoad'
OID.
I have downloaded the Net-SNMP 5.4.2.1 source and tried to compile. But
while making , I am getting the following error:
making all in /Desktop/net-snmp-5.4.2.1/snmplib
making all in /Desktop/net-snmp-5.4.2.1/agent
/bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2
-Dsolaris2=solaris2 -c -o snmp_vars.lo snmp_vars.c
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
snmp_vars.c -fPIC -DPIC -o .libs/snmp_vars.o
In file included from /usr/include/kvm.h:14,
from kernel.h:11,
from snmp_vars.c:142:
/usr/include/sys/proc.h:202: error: syntax error before "p_t1_lgrpid"
/usr/include/sys/proc.h:203: error: syntax error before "p_tr_lgrpid"
/usr/include/sys/proc.h:337: error: syntax error before '}' token
In file included from kernel.h:11,
from snmp_vars.c:142:
/usr/include/kvm.h:44: error: syntax error before '*' token
/usr/include/kvm.h:45: error: syntax error before '*' token
/usr/include/kvm.h:48: error: syntax error before "proc_t"
*** Error code 1
make: Fatal error: Command failed for target `snmp_vars.lo'
Current working directory /Desktop/net-snmp-5.4.2.1/agent
*** Error code 1
The following command caused the error:
if test "snmplib agent apps man local mibs" != ""; then \
it="snmplib agent apps man local mibs" ; \
for i in $it ; do \
echo "making all in `pwd`/$i"; \
( cd $i ; make ) ; \
if test $? != 0 ; then \
exit 1 ; \
fi \
done \
fi
make: Fatal error: Command failed for target `subdirs'
Please help me to solve this issue.
--
Regards,
Hareesh V
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders