On Thu, 22 Jul 2004 16:41:21 -0700 OpenMacNews wrote:
O> in reference to bug [995021] "OS X agent dies in nlist", wherein the crash
O> referenced is:
O>
O> i've found the following (undoubtedly, not exhaustive):
O>
O> (1) "--enable-mini-agent" is required for the binary to successfully launch,
O> without CRASHing(2) "--enable-ipv6" results in a build that reproducibly
O> CRASHES, as above, on run, and must be left out of condigure(3) addition of
O> '--with-mib-modules="host ..."' causes make failure w/
O> ld: Undefined symbols:
O> _get_address
O> _get_in_address
Hmmm... I just downloaded the 5.1.2 tarball, and did not have any problem
enabling ipv6, and did not need to enable mini-agent.
I have 10.3.4:
~/snmp/net-snmp-5.1.2 rks$ uname -a
Darwin rs-Computer.local 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24
PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc
~/snmp/net-snmp-5.1.2 rks$ gcc -v Reading specs from
/usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
Do you have the latest dev tools installed? Are you using the gcc 3.3?
O> ./configure \
O> --prefix=/usr/local \
O> --with-defaults
O>
O> builds successfully, CRASHES on run ...
This was the first config I tried (minus the prefix), and it worked fine for
me. I also tried your goal state:
./configure --prefix=/usr/local --with-defaults --enable-shared
--disable-static --with-libwrap --with-default-snmp-version=3
--with-persistent-directory=/var/db/ucd-snmp --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,mibII/tcpTable,mib
II/udpTable
With an agent that runs and responds to queries:
~/snmp/net-snmp-5.1.2 rks$ sudo agent/snmpd -f -L
Creating directory: /var/db/ucd-snmp
NET-SNMP version 5.1.2
O> make fails:
O>
O> gcc -g -O2 -Ddarwin7 -o .libs/snmpd snmpd.lo -L/usr/local/ssl/lib
O> -L./.libs -lnetsnmpagent -lnetsnmpmibs -Lhelpers/.libs
O> -lnetsnmphelpers -lwrap -L../snmplib/.libs -lnetsnmp -lkvm -lz
O> -lcrypto -lelf -L/usr/local/lib
O> /System/Library/Perl/5.8.4/darwin-thread-multi-2level/auto/DynaLoader
O> /DynaLoader.a
O> -L/System/Library/Perl/5.8.4/darwin-thread-multi-2level/CORE -lperl
O> -lc -lm -ldl ld: Undefined symbols:
O> _get_address
O> _get_in_address
This one I could reproduce. It is due to a missing config_require. In
agent/mibgroups/interfaces.h, add
/** need get_address in var_route for some cases */
config_require(mibII/var_route)
at the top of the file, with the other config_require lines, and re-run
configure.
--
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
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