Once thing I'd be wary of is having the version of net-snmp that ships with Mac
OS X (5.0.8, I believe), installed at the same time as your own version of
5.1.2. If the 5.1.2 version is loading the 5.0.8 share libraries, that would be
bad.
since it's Friday, and my Margarita is calling ... I decided to try the "really big
hammer" approach, and update everything and start from scratch.
bottom line: of course, it now works. WITH perl-modules, IPv6 and *no* miniagent (as
yet, i have NOT yet tried with mibII/tcpTable,mibII/udpTable ...)
AND, i have NO specific idea which change made the difference. so the advice (for me, at least)
is simply "upgrade everything" 8/]
er ... yay!
for posterity's (and any other poor Mac-schmo's ... ) sake, here's my build env:
perhaps most notably, i 'upgraded' netsnmp512rc1 --> netsnmp512
then, (IIRC, just abt *all* of these have changed since the bug report ...)
OSX 10.3.5 + XCode 1.5
% uname -a
Darwin g4edgar.internal.presence-group.net 7.5.0 Darwin Kernel Version 7.5.0:
Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh
powerpc
% gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
% glibtool --version
ltmain.sh (GNU libtool) 1.5.8 (1.1220.2.117 2004/08/04 14:12:05)
% sed --version
GNU sed version 4.1
% automake --version
automake (GNU automake) 1.9
% autoconf --version
autoconf (GNU Autoconf) 2.59
% /usr/local/ssl/bin/openssl version
OpenSSL 0.9.7d 17 Mar 2004
--> berkeleyDB 4.2.52 w/ strong encryption
% perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=darwin, osvers=7.5.0, archname=darwin-thread-multi-2level
uname='darwin 7.5.0 darwin kernel version 7.5.0: thu aug 5 19:26:16 pdt
2004; root:xnuxnu-517.7.21.obj~3release_ppc power macintosh powerpc '
config_args='-Dfirstmakefile=GNUmakefile -Duseshrplib -Duseperlio
-Duseithreads -Dinstallusrbinperl -Dprefix=/usr -Dperllibs=-ldb -lc -lm -dl
-Dlibs=-ldb -lc -lm -ldl'
i also brute-force "purged" my system of any traces of prior snmp, with:
# PURGE apple install
cd /usr/bin ;\
rm -f *snmp* ;\
rm -f encode_keychange ;\
rm -f fixproc ;\
rm -f ipf-mod.pl ;\
rm -f mib2c ;\
rm -f tkmib ;\
rm -f traptoemail ;\
rm -rf /usr/include/net-snmp ;\
rm -f /usr/lib/*snmp* ;\
rm -f /usr/sbin/*snmp* ;\
rm -rf /usr/share/snmp ;\
rm -f /usr/man/man1/*snmp* ;\
rm -f /usr/man/man3/*snmp* ;\
rm -f /usr/man/man5/*snmp*
# PURGE local install
cd /usr/local/bin ;\
rm -f *snmp* ;\
rm -f encode_keychange ;\
rm -f fixproc ;\
rm -f ipf-mod.pl ;\
rm -f mib2c ;\
rm -f tkmib ;\
rm -f traptoemail ;\
rm -rf /usr/local/include/net-snmp ;\
rm -f /usr/local/lib/*snmp* ;\
rm -f /usr/local/sbin/*snmp* ;\
rm -rf /usr/local/share/snmp ;\
rm -f /usr/local/man/man1/*snmp* ;\
rm -f /usr/local/man/man3/*snmp* ;\
rm -f /usr/local/man/man5/*snmp*
rm -rf /var/db/ucd-snmp
finally, here's what worked:
wget http://aleron.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.1.2.tar.gz
gnutar zxvf net-snmp-5.1.2.tar.gz
cd /usr/ports/net-snmp-5.1.2
unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LC_ALL LANG LINGUAS
echo "#undef ICMPSTAT_SYMBOL" >> include/net-snmp/system/darwin7.h
./configure \
--prefix=/usr/local/net-snmp \
--with-defaults \
--disable-mini-agent \
--enable-shared --disable-static \
--with-libwrap \
--with-default-snmp-version=3 \
--with-persistent-directory=/var/db/ucd-snmp \
--enable-ipv6 \
--with-openssl=/usr/local/ssl \
[EMAIL PROTECTED] \
--with-perl-modules --enable-embedded-perl \
--with-logfile="/var/log/snmpd.log" \
--with-transports="UDP TCP Unix TCPIPv6 UDPIPv6 Callback" \
--with-mib-modules="disman/event-mib smux mibII/mta_sendmail"
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
Net-SNMP Version: 5.1.2
Building for: darwin7
Network transport support: UDP TCP Unix TCPIPv6 UDPIPv6 Callback
SNMPv3 Security Modules: usm
Agent MIB code: snmpv3mibs mibII/snmp_mib mibII/system_mib
mibII/sysORTable mibII/vacm_vars utilities/execute disman/event-mib smux
mibII/mta_sendmail mibII/ipv6
SNMP Perl modules: building -- embeddable
Embedded perl support: enabled
Authentication support: MD5 SHA1
Encryption support: DES AES128 AES192 AES256
---------------------------------------------------------
make
umask 022
make install
rehash
now, i'm a little suspicious of this output ... but i'll havta check
% /usr/local/net-snmp/sbin/snmpd -C -DALL -p /var/run/snmpd.pid -c /etc/snmpd.conf -Ls
d 127.0.0.1
No log handling enabled - turning on stderr logging
trace: netsnmp_ds_set_string(): default_store.c, 269:
netsnmp_ds_set_string: Setting LIB:5 = "/etc/snmpd.conf"
trace: main(): snmpd.c, 781:
snmpd/main: optind 9, argc 10
trace: netsnmp_ds_set_string(): default_store.c, 269:
netsnmp_ds_set_string: Setting APP:2 = "127.0.0.1"
trace: main(): snmpd.c, 802:
snmpd/main: port spec: 127.0.0.1
trace: netsnmp_ds_set_boolean(): default_store.c, 191:
netsnmp_ds_set_boolean: Setting APP:1 = 0/False
daemonize: deamonizing...
daemonize: first fork returned 21149.
daemonize: parent exiting
daemonize: second fork returned 21150.
daemonize: child continuing
now that THIS seems to be working ... i'll try the "mibII/tcpTable,mibII/udpTable"
modules in a bit.
cheers,
richard
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders