Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use ./autogen.conf and then make, in the output there were such errors:
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’ isn’t 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: nested extern declaration of ‘init_snmp’
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: nested extern declaration of ‘snmp_open’
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:819: warning: nested extern declaration of ‘read_objid’
iface.c:819: error: ‘anOID’ undeclared (first use in this function)
iface.c:819: warning: nested extern declaration of ‘snmp_add_null_var’
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:848: warning: nested extern declaration of ‘snmp_free_pdu’
iface.c:849: warning: nested extern declaration of ‘snmp_close’
make[2]: *** [iface.lo] Error 1
make[2]: Leaving directory `/home/xlbrlx/ntop-3.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xlbrlx/ntop-3.3'
make: *** [all] Error 2
That'll be looking for the contents of a package called "net-snmp-devel" or something similar. I would generally suggest installing prebuilt rpm's or deb's though in the first instance.
I've installed some snmp like packages, now it says:
ntop.h:136:1: warning: "_XOPEN_SOURCE" redefined
In file included from ntop.h:88,
from iface.c:26:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from /usr/include/net-snmp/utilities.h:54,
from /usr/include/net-snmp/net-snmp-includes.h:74,
from iface.c:766:
/usr/include/net-snmp/library/container.h: In function ‘CONTAINER_FREE’:
/usr/include/net-snmp/library/container.h:427: error: lvalue required as left operand of assignment
make[2]: *** [iface.lo] Error 1
make[2]: Leaving directory `/home/xlbrlx/ntop-3.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xlbrlx/ntop-3.3'
make: *** [all] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.