LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2011, 03:32 AM   #1
XlbrlX
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Installing ntop


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
 
Old 08-16-2011, 03:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 08-16-2011, 03:52 AM   #3
XlbrlX
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I would generally suggest installing prebuilt rpm's or deb's though in the first instance.
you mean installing exactly what??
 
Old 08-16-2011, 04:06 AM   #4
XlbrlX
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] problem with installing of ntop AngryBeast Linux - Software 9 07-19-2011 06:38 PM
installing Ntop razzera Debian 3 05-04-2010 09:38 AM
why my ntop can't start using service ntop start command cmx08 Linux - Software 5 10-21-2008 10:52 PM
ntop error while installing hariiyer Linux - Software 1 11-23-2007 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration