make errors with net-snmp-5.3.0.1

"H. McManus" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Genexis BV
Message-ID <[email protected]>
Hi,

I'm trying to compile net-snmp-5.3.0.1 on linux.

Make exits with a several errors though. I have pasted below the make error, 
the summary printed at the end of the ./configure phase and the actual 
configure line that I used.

Does the error mean that mibII/interfaces and ifTable are mutually exclusive 
or does the problem lie elsewhere?

Thanks!

Helen.

MAKE ERROR:
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib 
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing 
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/lib/perl/5.8/CORE -g -O2 -Dlinux -c mibII/interfaces.c  -fPIC -DPIC -o 
mibII/.libs/interfaces.lo
mibII/interfaces.c:216: error: 'var_interfaces' undeclared here (not in a 
function)
mibII/interfaces.c:217: error: 'var_ifEntry' undeclared here (not in a 
function)
mibII/interfaces.c:708: warning: 'struct in_ifaddr' declared inside parameter 
list
mibII/interfaces.c:708: warning: its scope is only this definition or 
declaration, which is probably not what you want
mibII/interfaces.c: In function 'var_ifEntry':
mibII/interfaces.c:735: error: storage size of 'in_ifaddr' isn't known
mibII/interfaces.c:748: warning: passing argument 4 of 
'Interface_Scan_By_Index' from incompatible pointer type
mibII/interfaces.c: At top level:
mibII/interfaces.c:1737: warning: 'struct in_ifaddr' declared inside parameter 
list
mibII/interfaces.c:1738: error: conflicting types for 'Interface_Scan_Next'
../../include/net-snmp/data_access/interface.h:267: error: previous 
declaration of 'Interface_Scan_Next' was here
mibII/interfaces.c:1980: warning: 'struct in_ifaddr' declared inside parameter 
list
mibII/interfaces.c:1981: error: conflicting types for 
'Interface_Scan_By_Index'
mibII/interfaces.c:708: error: previous declaration of 
'Interface_Scan_By_Index' was here
mibII/interfaces.c: In function 'Interface_Scan_By_Index':
mibII/interfaces.c:1985: warning: passing argument 4 of 'Interface_Scan_Next' 
from incompatible pointer type
make[2]: *** [mibII/interfaces.lo] Error 1
make[2]: Leaving directory `/root/net-snmp-5.3.0.1/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/net-snmp-5.3.0.1/agent'
make: *** [subdirs] Error 1

CONFIGURE SUMMARY:
---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  UCD-SNMP compatability:     enabled
  Net-SNMP Version:           5.3.0.1
  Building for:               linux
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:    usm
  Agent MIB code:             mibII ucd_snmp snmpv3mibs notification 
notification-log-mib target agent_mibs agentx disman/event-mib 
disman/schedule utilities ucd-snmp/diskio ucd-snmp/lmSensors tunnel 
mibII/interfaces tcp-mib udp-mib misc/ipfwacc agentx/subagent agentx/master 
smux host
  *** MIB Module warning *** mib module 'if-mib/ifTable' requires module 
'if-mib/ifTable/ifTable' but someone told me to compile without it
  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable' excludes 
module 'mibII/interfaces' but another module requires it
  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable' requires 
module 'if-mib/ifTable/ifTable' but someone told me to compile without it
  *** MIB Module warning *** mib module 'if-mib/ifTable/ifTable_interface' 
excludes module 'mibII/interfaces' but another module requires it
  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable_interface' 
excludes module 'mibII/interfaces' but another module requires it
  *** MIB Module warning *** mib module 'if-mib/ifXTable/ifXTable_interface' 
requires module 'if-mib/ifTable/ifTable' but someone told me to compile 
without it
  SNMP Perl modules:          building -- embeddable
  Embedded perl support:      enabled
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  WARNING:  New version of the Event MIB which may be subtly different from 
the original implementation - configure with 'disman/old-event-mib' for the 
previous version

CONFIGURE:
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man 
--with-persistent-directory=/var/lib/snmp --enable-mfd-rewrites 
--enable-reentrant --enable-embedded-perl --enable-ucd-snmp-compatibility 
--enable-shared --without-efence --without-dmalloc --without-rsaref 
--with-openssl --without-rpm --with-default-snmp-version=2 
--with-perl-modules=INSTALLDIRS=vendor --with-defaults --with-libwrap 
--with-bzip2 --with-mib-modules="ucd-snmp/diskio ucd-snmp/lmSensors tunnel 
mibII/interfaces tcp-mib udp-mib misc/ipfwacc agentx/subagent agentx/master 
smux" --with-sys-contact="root@localdom" --with-sys-location="Right here" 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.