Hi

I try to compile snmp code by myself , after read this page : 
http://www.net-snmp.org/docs/INSTALL.html

My snmp version is 5.7.2. when I run the make command after configure. I get 
the compile error as follow:

libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup 
-I../../snmplib -fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT 
-D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -c 
mibII/tcpTable.c  -fPIC -DPIC -o mibII/.libs/tcpTable.o
mibII/tcpTable.c: In function 'tcpTable_load_netlink':
mibII/tcpTable.c:588: warning: ISO C90 forbids mixed declarations and code
mibII/tcpTable.c:593: warning: initialization makes pointer from integer 
without a cast
mibII/tcpTable.c:596: warning: passing argument 2 of 'nl_send_auto_complete' 
from incompatible pointer type
mibII/tcpTable.c:604: warning: ISO C90 forbids mixed declarations and code
mibII/tcpTable.c:609: error: too many arguments to function 'nl_recv'
mibII/tcpTable.c:616: warning: ISO C90 forbids mixed declarations and code
mibII/tcpTable.c:623: warning: ISO C90 forbids mixed declarations and code
mibII/tcpTable.c:630: warning: ISO C90 forbids mixed declarations and code
make[2]: *** [mibII/tcpTable.lo] error
make[2]: Leaving directory `/home/net-snmp-5.7.2/agent/mibgroup'
make[1]: *** [subdirs] error
make[1]: Leaving directory `/home/net-snmp-5.7.2/agent'
make: *** [subdirs] error

Could you told me how to fix it ?

Best Wishes

Deng Mingfei

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to