removing default compiled mib modules
"Ronnel P. Maglasang" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I wanted to remove the mib modules compiled by default in the
agent except for the mib-II with this option in the configure
script: --with-out-mib-modules="snmpv3mibs ucd_snmp agent_mibs agentx
notification target utilities"
The configure scripts prints the following summary:
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
SNMP Versions Supported: 1 2c 3
Net-SNMP Version: 5.2.1.2
Building for: freebsd5
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
*** MIB Module warning *** mib module 'ucd_snmp' is both included and
excluded. It has been excluded.
*** MIB Module warning *** mib module 'snmpv3mibs' is both included
and excluded. It has been excluded.
*** MIB Module warning *** mib module 'notification' is both included
and excluded. It has been excluded.
*** MIB Module warning *** mib module 'target' is both included and
excluded. It has been excluded.
*** MIB Module warning *** mib module 'agent_mibs' is both included
and excluded. It has been excluded.
*** MIB Module warning *** mib module 'agentx' is both included and
excluded. It has been excluded.
*** MIB Module warning *** mib module 'utilities' is both included and
excluded. It has been excluded.
Agent MIB code: mibII
SNMP Perl modules: disabled
Embedded perl support: disabled
Authentication support: MD5 SHA1
Encryption support: DES AES
---------------------------------------------------------
When I run make, a link error occured:
mv -f .libs/snmptrapd.lo snmptrapd.lo
/bin/sh ../libtool --mode=link gcc -o snmptrapd snmptrapd.lo
libnetsnmptrapd.la -L../snmplib -L../agent -L../agent/helpers
../agent/libnetsnmpagent.la ../agent/libnetsnmpmibs.la
../agent/helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -lkvm
-lcrypto -lm
gcc -o .libs/snmptrapd snmptrapd.o ./.libs/libnetsnmptrapd.so
-L/usr/home/ronnelm/proj/work/snmp/xxx/net-snmp-5.2.1.2/snmplib
-L/usr/home/ronnelm/proj/work/snmp/xxx/net-snmp-5.2.1.2/agent
-L/usr/home/ronnelm/proj/work/snmp/xxx/net-snmp-5.2.1.2/agent/helpers
../agent/.libs/libnetsnmpagent.so ../agent/.libs/libnetsnmpmibs.so
../agent/helpers/.libs/libnetsnmphelpers.so
../snmplib/.libs/libnetsnmp.so -lkvm -lcrypto -lm -Wl,--rpath
-Wl,/usr/local/lib
snmptrapd.o(.text+0xe4b): In function `main':
/usr/home/ronnelm/proj/work/snmp/xxx/net-snmp-5.2.1.2/apps/snmptrapd.c:962:
undefined reference to `init_register_usmUser_context'
./.libs/libnetsnmptrapd.so: undefined reference to `run_exec_command'
*** Error code 1
Stop in /usr/home/ronnelm/proj/work/snmp/xxx/net-snmp-5.2.1.2/apps.
*** Error code 1
Are there any dependencies here? Is there anything I have to set or unset
when removing the above modules at compile time?
Thanks
smime.p7s
(application/x-pkcs7-signature, 3.1 KB) - not displayed