Hi,
I'm trying to build NetSNMP on OS X.
Digging through the LIST archives, there seem to be a LOT of problems
getting NetSNMP built & running reliably on OS X. I 've gathered that
whatever fixes there ARE have found their way into the latest 5.4.x TRUNK,
NOT the 5.3.x release(s).
Still, trying to gather up a consistent set of instructions for OS X, for
any SNMP version, from the archives is challenging at best, and has proven
just about impossible for me.
The best remaining option is apparently following the instructions in the
distribution's "README.osX".
So, I'm configuring the build with:
./configure \
--prefix=/usr/local/net-snmp \
--with-defaults \
--enable-shared --disable-static \
--with-openssl=/usr/local/ssl \
--with-libwrap \
--with-default-snmp-version=3 \
--disable-ipv6 \
--without-kmem-usage \
--disable-mini-agent \
--with-perl-modules --disable-embedded-perl \
--with-python-modules \
--without-rpm \
--with-mib-modules="host ucd-snmp/diskio" \
--with-out-mib-modules="mibII/icmp host/hr_swrun"
On completion, this reports:
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
SNMP Versions Supported: 1 2c 3
Net-SNMP Version: 5.5.dev
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: disabled
SNMP Perl modules: building -- not embeddable
SNMP Python modules: building for /usr/local/bin/python
Authentication support: MD5 SHA1
Encryption support: DES AES
---------------------------------------------------------
The two "*** MIB Module warning ***" notices are a result of
including/excluding modules as specified in the instructions.
The "requires" in those warnings does not seem to mean OPTIONAL.
Which is it? Are these instructions valid, or not?
If YES, why the warnings?
If NO, what are the correct instructions?
Continuing on with a 'make' step, it, too, fails:
...
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -I/usr/local/ssl/include -I/usr/local/bdb/include
-I/usr/local/ssl/include -g -O2 -Udarwin8 -Ddarwin8=darwin8 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -c
host/hr_proc.c -fno-common -DPIC -o host/.libs/hr_proc.o
/bin/sh ../../libtool --mode=compile gcc -I../../include -I.
-I../../agent -I../../agent/mibgroup -I../../snmplib
-I/usr/local/ssl/include -I/usr/local/ bdb/include -I/usr/local/ssl/include
-g -O2 -Udarwin8 -Ddarwin8=darwin8 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -Wcast-qual -Wno-char-subscripts -c -o host/hr_network.lo
host/hr_network.c
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -I/usr/local/ssl/include -I/usr/local/bdb/include
-I/usr/local/ssl/include -g -O2 -Udarwin8 -Ddarwin8=darwin8 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -c
host/hr_network.c -fno-common -DPIC -o host/.libs/hr_network.o
host/hr_network.c: In function 'Save_HR_Network_Info':
host/hr_network.c:250: error: invalid use of undefined type 'struct ifnet'
host/hr_network.c:251: error: invalid use of undefined type 'struct ifnet'
host/hr_network.c:251: error: invalid use of undefined type 'struct ifnet'
make[2]: *** [host/hr_network.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
DOES this software work on OS X? Assuming it does, are there some
instructions to follow?
Thanks,
Harv
-------------------------------------------------------------------------
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-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