hi robert,

ok, let's catch up on the details ...

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.

<grumble>

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?

yes

currently: OSX 10.3.5 + XCode 1.5 update is installed,  with further updates as well 
...

% 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 -v
       gcc version 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)
% autoconf --version
       autoconf (GNU Autoconf) 2.59
% automake --version
       automake (GNU automake) 1.9
% /usr/local/ssl/bin/openssl version
       OpenSSL 0.9.7d 17 Mar 2004
% 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 g4edgar.internal.presence-group.net 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'

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

ok, stumped for now.

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.

let's take these in order ... suggestions/questions on the "upper half" here?

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

Reply via email to