I use the current source from git with this configuration on MAC-OX: /configure --cache-file="config.cache" \ --prefix=/opt/local \ --with-cflags="-I/opt/local/include" \ --with-ldflags="-L/opt/local/lib" \ --with-defaults \ --disable-snmpv1 \ --without-rpm \ --without-perl-modules \ --without-python-modules \ --without-kmem-usage \ --with-out-mib-modules="mibII/icmp host/hr_swrun" \ --with-out-mib-modules="host ucd-snmp/diskio" \ --with-out-mib-modules="disman/event disman/schedule" \ --disable-deprecated \ --enable-ipv6 --with-transports="TCPIPv6 UDPIPv6 SSH" \ --with-mib-modules="agentx notification notification-log-mib target ucd-snmp/proxy examples" \ --enable-developer \ --enable-minimalist ###TBD### Remove all non- essential code features.
I get errors while starting the agent: claus-kleins-macbook-pro:net-snmp-build clausklein$ ./macos-build.sh + set -u + set -e + SRCDIR=. + DIRNAME=net-snmp-build ++ uname + UNAME=Darwin + '[' -x ./configure ']' + sudo ./agent/snmpd -Lf ./snmpd.log -C - Dread_config,mib_init,register_mib '--view all included .1 80' '-- rwuser claus noAuthNoPriv -V all "*"' '--createUser=claus SHA "--- none---" AES "---none---"' -c ./snmpd.conf 'tcp6:[::1]:161' Password: dyld: lazy symbol binding failed: Symbol not found: _init_iquery Referenced from: /Users/clausklein/Workspace/c/net-snmp-build/ agent/.libs/libnetsnmpagent.30.dylib Expected in: dynamic lookup dyld: Symbol not found: _init_iquery Referenced from: /Users/clausklein/Workspace/c/net-snmp-build/ agent/.libs/libnetsnmpagent.30.dylib Expected in: dynamic lookup ./macos-build.sh: line 109: 75862 Trace/BPT trap sudo ./agent/ snmpd -Lf ./snmpd.log -C -Dread_config,mib_init,register_mib '--view all included .1 80' '--rwuser claus noAuthNoPriv -V all "*"' '-- createUser=claus SHA "---none---" AES "---none---"' -c ./snmpd.conf 'tcp6:[::1]:161' claus-kleins-macbook-pro:net-snmp-build clausklein$ It seems that the feature is removed, but still at should_init list: claus-kleins-macbook-pro:net-snmp-build clausklein$ tcgrep.pl -rHw init_iquery . ./agent/mibgroup/agent_module_inits.h: if (should_init("iquery")) init_iquery(); claus-kleins-macbook-pro:net-snmp-build clausklein$ tcgrep.pl -rH NETSNMP_FEATURE_REMOVE_IQUERY . ./include/net-snmp/agent/features.h:#define NETSNMP_FEATURE_REMOVE_IQUERY_ALL 1 ./include/net-snmp/agent/features.h:#define NETSNMP_FEATURE_REMOVE_IQUERY 1 ./include/net-snmp/agent/features.h:#define NETSNMP_FEATURE_REMOVE_IQUERY_COMMUNITY_SESSION 1 ./include/net-snmp/agent/features.h:#define NETSNMP_FEATURE_REMOVE_IQUERY_PDU_SESSION 1 claus-kleins-macbook-pro:net-snmp-build clausklein$ //regards Claus ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders