Trouble compiling the sources. I read the README.osX and followed the
configure options. Here's my configure line ...

~/net-snmp-5.4 # ./configure
--with-persistent-directory=/var/db/net-snmp --with-defaults
--without-rpm --with-mib-modules="host ucd-snmp/diskio"
--with-out-mib-modules="mibII/icmp host/hr_swrun" --disable-static
--without-kmem-usage

.. configure does complain about some modules ...

configure: WARNING: mib module error
configure: WARNING: mib module 'host' requires module 'host/hr_swrun'
but someone told me to compile without it
 host ucd-snmp/diskio default_modules host/hr_system host/hr_storage
host/hr_device host/hr_other host/hr_proc host/hr_network
host/hr_print host/hr_disk host/hr_partition host/hr_filesys
host/hr_swinst util_funcs snmpv3mibsconfigure: WARNING: mib module
error
configure: WARNING: mib module 'mibII' requires module 'mibII/icmp'
but someone told me to compile without it

.. and then the summary of my configuration ....
---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Net-SNMP Version:           5.4
  Building for:               darwin8
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:     usm
  *** MIB Module warning *** mib module 'host' requires module
'host/hr_swrun' but someone told me to compile without it
  *** MIB Module warning *** mib module 'mibII' requires module
'mibII/icmp' but someone told me to compile without it
  Agent MIB code:             host ucd-snmp/diskio default_modules =>
host/hr_system host/hr_storage host/hr_device host/hr_other
host/hr_proc host/hr_network host/hr_print host/hr_disk
host/hr_partition host/hr_filesys host/hr_swinst util_funcs snmpv3mibs
mibII ucd_snmp notification notification-log-mib target agent_mibs
agentx disman/event disman/schedule utilities
  Embedded Perl support:      enabled
  SNMP Perl modules:          building -- embeddable
  SNMP Python modules:        disabled
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES

---------------------------------------------------------

... the it fails during make ...

~/net-snmp-5.4 # make
...
making all in /Volumes/music/downloads/net-snmp-5.4/agent/mibgroup
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib   -g -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE   -g -O2
-Udarwin8 -Ddarwin8=darwin8  -c -o mibgroup/host/hr_network.lo
mibgroup/host/hr_network.c
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g
-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include
-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -g -O2
-Udarwin8 -Ddarwin8=darwin8 -c mibgroup/host/hr_network.c  -fno-common
-DPIC -o mibgroup/host/.libs/hr_network.o
mibgroup/host/hr_network.c: In function 'Save_HR_Network_Info':
mibgroup/host/hr_network.c:250: error: invalid use of undefined type
'struct ifnet'
mibgroup/host/hr_network.c:251: error: invalid use of undefined type
'struct ifnet'
mibgroup/host/hr_network.c:251: error: invalid use of undefined type
'struct ifnet'
make[1]: *** [mibgroup/host/hr_network.lo] Error 1
make: *** [subdirs] Error 1



I'm running OS X 10.4.8, Dual 867MHz PowerPC G4, 1MB L3 cache per processor.

Can I provide more info to help?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to