On Tuesday 12 June 2007, Wm T. Robinson wrote: > I have a server running SuSe 10.1 have loaded NTOP on another with 10.2 > without any issue, however the 10.1 box is reporting an error when > attempting to run "make". > > Cannot seem to find any indication of what may be causing this via numerous > search resources. > > Any assistance would greatly be appreciated...... > > linux-bkqe:~/Desktop/ntop-3.3 # make > make all-recursive > make[1]: Entering directory `/root/Desktop/ntop-3.3' > Making all in . > make[2]: Entering directory `/root/Desktop/ntop-3.3' > if /bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. > -I. -I. -DINET6 -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall > -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -fstack-protector-all -Dlinux > -I/usr/include/rpm -I. -I/usr/include -DLINUX -I/usr/local/include -g -O2 > -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes > -Wmissing-declarations -Wnested-externs -fPIC -DPIC -MT iface.lo -MD -MP > -MF ".deps/iface.Tpo" -c -o iface.lo iface.c; \ then mv -f > ".deps/iface.Tpo" ".deps/iface.Plo"; else rm -f ".deps/iface.Tpo"; exit 1; > fi gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -DINET6 -O2 -march=i586 -mtune=i686 > -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing > -fstack-protector-all -Dlinux -I/usr/include/rpm -I. -I/usr/include -DLINUX > -I/usr/local/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith > -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC > -MT iface.lo -MD -MP -MF .deps/iface.Tpo -c iface.c -fPIC -DPIC -o > .libs/iface.o iface.c:765:38: error: net-snmp/net-snmp-config.h: No such > file or directory iface.c:766:40: error: net-snmp/net-snmp-includes.h: No > such file or directory iface.c: In function getIfName: > iface.c:775: error: storage size of session isnt known > iface.c:779: error: oid undeclared (first use in this function) > iface.c:779: error: (Each undeclared identifier is reported only once > iface.c:779: error: for each function it appears in.) > iface.c:779: error: expected ; before anOID > iface.c:780: error: MAX_OID_LEN undeclared (first use in this function) > iface.c:791: warning: implicit declaration of function init_snmp > iface.c:791: warning: nested extern declaration of init_snmp > iface.c:796: warning: implicit declaration of function snmp_sess_init > iface.c:796: warning: nested extern declaration of snmp_sess_init > iface.c:802: error: SNMP_VERSION_1 undeclared (first use in this > function) iface.c:811: warning: implicit declaration of function > snmp_open iface.c:811: warning: nested extern declaration of snmp_open > iface.c:811: warning: assignment makes pointer from integer without a cast > iface.c:816: warning: implicit declaration of function snmp_pdu_create > iface.c:816: warning: nested extern declaration of snmp_pdu_create > iface.c:816: error: SNMP_MSG_GET undeclared (first use in this function) > iface.c:816: warning: assignment makes pointer from integer without a cast > iface.c:819: warning: implicit declaration of function read_objid > iface.c:819: warning: nested extern declaration of read_objid > iface.c:819: error: anOID undeclared (first use in this function) > iface.c:819: warning: implicit declaration of function snmp_add_null_var > iface.c:819: warning: nested extern declaration of snmp_add_null_var > iface.c:827: warning: implicit declaration of function > snmp_synch_response iface.c:827: warning: nested extern declaration of > snmp_synch_response iface.c:832: error: STAT_SUCCESS undeclared (first > use in this function) iface.c:832: error: dereferencing pointer to > incomplete type > iface.c:832: error: SNMP_ERR_NOERROR undeclared (first use in this > function) iface.c:834: error: dereferencing pointer to incomplete type > iface.c:834: error: dereferencing pointer to incomplete type > iface.c:835: error: dereferencing pointer to incomplete type > iface.c:835: error: ASN_OCTET_STR undeclared (first use in this function) > iface.c:836: error: dereferencing pointer to incomplete type > iface.c:836: error: dereferencing pointer to incomplete type > iface.c:837: error: dereferencing pointer to incomplete type > iface.c:837: error: dereferencing pointer to incomplete type > iface.c:848: warning: implicit declaration of function snmp_free_pdu > iface.c:848: warning: nested extern declaration of snmp_free_pdu > iface.c:849: warning: implicit declaration of function snmp_close > iface.c:849: warning: nested extern declaration of snmp_close > iface.c:784: warning: unused variable count > iface.c:775: warning: unused variable session > make[2]: *** [iface.lo] Error 1 > make[2]: Leaving directory `/root/Desktop/ntop-3.3' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/Desktop/ntop-3.3' > make: *** [all] Error 2 >
I'm no expert, but I'd say you are missing the net-snmp development packages. Specifically, net-snmp-config.h and net-snmp-includes.h are missing. See thehe lines in your original message: iface.c:765:38: error: net-snmp/net-snmp-config.h: No such file or directory iface.c:766:40: error: net-snmp/net-snmp-includes.h: No such file or directory -- Fail to learn history-repeat it. Fail to learn rights-lose them. Learn both-get screwed by previous two groups. _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
