Bug 217895 - The bsnmpd service does not start due to a boot error in snmp_bridge.so
Summary: The bsnmpd service does not start due to a boot error in snmp_bridge.so
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Enji Cooper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-18 18:11 UTC by Vladyslav V. Prodan
Modified: 2017-03-19 22:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladyslav V. Prodan 2017-03-18 18:11:27 UTC
In the config /etc/snmpd.conf uncomment:

begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"

Logs:

...
Mar 18 19:45:01 templ snmpd[1970]: lm_load: open /usr/lib/snmp_bridge.so: Undefined symbol "mib_find_if"
Mar 18 19:45:01 templ kernel: Mar 18 19:45:01 templ snmpd[1970]: lm_load: open /usr/lib/snmp_bridge.so: Undefined symbol "mib_find_if"
Mar 18 19:45:01 templ snmpd[1970]: init dep failed: 13 1.3.6.1.4.1.12325.1.1.1.6 6.98.114.105.100.103.101
Mar 18 19:45:01 templ kernel: Mar 18 19:45:01 templ snmpd[1970]: init dep failed: 13 1.3.6.1.4.1.12325.1.1.1.6 6.98.114.105.100.103.101
Mar 18 19:45:01 templ snmpd[1970]: error in config file
Mar 18 19:45:01 templ kernel: Mar 18 19:45:01 templ snmpd[1970]: error in config file

FreeBSD 11.0-STABLE #0 r314635: Sat Mar  4 02:12:23 EET 2017


# pkg info -x snmp
bsnmp-regex-0.6_1
bsnmp-ucd-0.4.2
net-snmp-5.7.3_12
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2017-03-18 18:39:10 UTC
You need to load mib-II to get the missing symbol. This is an issue with several of the MIB modules not lazy-loading their dependencies. I think this was noted in the example config file/module manpage, but I'll doublecheck. I'll see if I can at the very least add more intuitive error messages.
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2017-03-18 18:40:35 UTC
Also, you must load mib-II in the config before the bridge module.
Comment 3 Vladyslav V. Prodan 2017-03-18 19:03:38 UTC
(In reply to Ngie Cooper from comment #2)

Thanks.
Moving a section

#
# MIB-2 module
#
begemotSnmpdModulePath."mibII"  = "/usr/lib/snmp_mibII.so"

just above the boot section of the snmp_bridge.so module in the config snmpd.conf started  service bsnmpd.

Probably, it is necessary to make the appropriate corrections in the installation config snmpd.conf
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2017-03-19 22:16:34 UTC
I forgot to MFC the change from head that moved MIB-II being loaded before the bridge module. Fixed in r315592/r315593.

I'll open another bug to fix the underlying issue that needs to be fixed is more apparent.
Comment 5 Enji Cooper freebsd_committer freebsd_triage 2017-03-19 22:17:07 UTC
(In reply to Ngie Cooper from comment #4)

*to fix the underlying -> so the underlying