RE: "-I -interfaces" startup parameters for SNMPD.
"Kurapati M-G19456" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dear list, I am seeing the following compile time errors, when I tried to build the net-snmp-5.2.2 with "--with-out-mib-modules="mibII/interfaces" option. Please help me in resolving these errors. Conifgure options ----------------- ./configure --prefix=/usr --without-openssl --with-enterprise-oid=161 --with-enterprise-sysoid="1.3.1.6.1.4.1.161.10.4.1.0" --with-default-snmp-version="3" --with-sys-contact="[email protected]" --with-sys-location="MCG" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --disable-snmptrapd-subagent --with-out-mib-modules="mibII/interfaces" Compile time warnings --------------------- /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -rpath /usr/lib -version-info 9:0:0 -o libnetsnmpagent.la snmp_agent.lo snmp_vars.lo agent_read_config.lo agent_registry.lo agent_index.lo agent_trap.lo kernel.lo agent_handler.lo mibgroup/snmpv3/usmConf.lo mibgroup/agentx/master.lo mibgroup/agentx/subagent.lo mibgroup/utilities/execute.lo mibgroup/mibII/vacm_conf.lo mibgroup/agentx/protocol.lo mibgroup/agentx/client.lo mibgroup/agentx/master_admin.lo mibgroup/agentx/agentx_config.lo rm -fr .libs/libnetsnmpagent.la .libs/libnetsnmpagent.* .libs/libnetsnmpagent.* gcc -shared snmp_agent.lo snmp_vars.lo agent_read_config.lo agent_registry.lo agent_index.lo agent_trap.lo kernel.lo agent_handler.lo mibgroup/snmpv3/usmConf.lo mibgroup/agentx/master.lo mibgroup/agentx/subagent.lo mibgroup/utilities/execute.lo mibgroup/mibII/vacm_conf.lo mibgroup/agentx/protocol.lo mibgroup/agentx/client.lo mibgroup/agentx/master_admin.lo mibgroup/agentx/agentx_config.lo -Wl,-soname -Wl,libnetsnmpagent.so.9 -o .libs/libnetsnmpagent.so.9.0.0 (cd .libs && rm -f libnetsnmpagent.so.9 && ln -s libnetsnmpagent.so.9.0.0 libnetsnmpagent.so.9) (cd .libs && rm -f libnetsnmpagent.so && ln -s libnetsnmpagent.so.9.0.0 libnetsnmpagent.so) ar cru .libs/libnetsnmpagent.a snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o agent_index.o agent_trap.o kernel.o agent_handler.o mibgroup/snmpv3/usmConf.o mibgroup/agentx/master.o mibgroup/agentx/subagent.o mibgroup/utilities/execute.o mibgroup/mibII/vacm_conf.o mibgroup/agentx/protocol.o mibgroup/agentx/client.o mibgroup/agentx/master_admin.o mibgroup/agentx/agentx_config.o ranlib .libs/libnetsnmpagent.a creating libnetsnmpagent.la (cd .libs && rm -f libnetsnmpagent.la && ln -s ../libnetsnmpagent.la libnetsnmpagent.la) : libnetsnmpagent.la /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Dlinux -c -o snmpd.lo snmpd.c rm -f .libs/snmpd.lo gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Dlinux -c snmpd.c -fPIC -DPIC -o .libs/snmpd.lo gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Dlinux -c snmpd.c -o snmpd.o >/dev/null 2>&1 mv -f .libs/snmpd.lo snmpd.lo /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo libnetsnmpmibs.la libnetsnmpagent.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lm gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lm ./.libs/libnetsnmpmibs.so: undefined reference to `Interface_Index_By_Name' ./.libs/libnetsnmpmibs.so: undefined reference to `Interface_Scan_Init' ./.libs/libnetsnmpmibs.so: undefined reference to `Interface_Scan_Next' ./.libs/libnetsnmpmibs.so: undefined reference to `netsnmp_access_interface_index_find' collect2: ld returned 1 exit status make[1]: *** [snmpd] Error 1 make[1]: Leaving directory `/home/g19456/net-snmp/net-snmp-5.2.2/agent' make: *** [subdirs] Error 1 Regards Mahesh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kurapati M-G19456 Sent: Tuesday, December 26, 2006 2:02 PM To: Dave Shield Cc: [email protected] Subject: RE: "-I -interfaces" startup parameters for SNMPD. > How > to avoid SNMPD not to build this interface database? Is there a > configure option while compiling net-snmp package to exclude the interfaces mib building. Yes '--without-mib-modules=mibII/interfaces' [Mahesh start] I am seeing the following messages, when I do the configure with the above option. I want the SNMPD to build IP database. Configure output ------------------ checking for and configuring transport modules to use... Callback Unix TCP UDP. checking for security modules to use... usm checking for and configuring mib modules to use... mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities. configure: WARNING: mib module error configure: WARNING: mib module 'mibII' requires module 'mibII/interfaces' but someone told me to compile without it mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities mibII/system_mib mibII/sysORTable mibII/atconfigure: WARNING: mib module error configure: WARNING: mib module 'mibII/ip' requires module 'mibII/interfaces' but someone told me to compile without it [Mahesh end] Regards Mahesh ------------------------------------------------------------------------ - 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=DEVDE V _______________________________________________ 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 ------------------------------------------------------------------------- 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