Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2023 03:01:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 275252] net/frr9: snmp issue Undefined symbol "netsnmp_enable_subagent"
Message-ID:  <bug-275252-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275252

            Bug ID: 275252
           Summary: net/frr9: snmp issue Undefined symbol
                    "netsnmp_enable_subagent"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: olivier@freebsd.org
          Reporter: yiftachswr@gmail.com
             Flags: maintainer-feedback?(olivier@freebsd.org)
          Assignee: olivier@freebsd.org

When installing on a fresh FreeBSD 14 machine FRR9 (or FRR8) it seems that =
the
snmp is broken:

```
root@freebsd-14:/usr/ports/net/frr9 # /usr/local/sbin/bgpd -v
bgpd version 9.0.1
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
        '--enable-user=3Dfrr' '--enable-group=3Dfrr' '--enable-vty-group=3D=
frrvty'
'--enable-vtysh' '--disable-doc-html' '--sysconfdir=3D/usr/local/etc/frr'
'--localstatedir=3D/var/run/frr' '--disable-nhrpd' '--disable-pathd'
'--disable-ospfclient' '--disable-pimd' '--disable-pbrd'
'--with-vtysh-pager=3Dcat' '--enable-backtrace' '--disable-config-rollbacks'
'--disable-datacenter' '--enable-fpm' '--disable-ldpd' '--without-libpam'
'--enable-rpki' '--disable-sharpd' '--disable-shell-access' '--enable-snmp'
'--disable-tcmalloc' '--prefix=3D/usr/local' '--mandir=3D/usr/local/man'
'--disable-silent-rules' '--infodir=3D/usr/local/share/info/'
'--build=3Damd64-portbld-freebsd14.0' 'build_alias=3Damd64-portbld-freebsd1=
4.0'
'PKG_CONFIG=3Dpkgconf'
'PKG_CONFIG_LIBDIR=3D/usr/ports/net/frr9/work/.pkgconfig:/usr/local/libdata=
/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig'
'CC=3Dcc' 'CFLAGS=3D-O2 -pipe -fstack-protector-strong -fno-strict-aliasing=
 '
'LDFLAGS=3D -L/usr/local/lib -L/usr/local/lib -fstack-protector-strong ' 'L=
IBS=3D'
'CPPFLAGS=3D-I/usr/local/include -I/usr/local/include' 'CPP=3Dcpp' 'CXX=3Dc=
++'
'CXXFLAGS=3D-O2 -pipe -fstack-protector-strong -fno-strict-aliasing '
'PYTHON=3D/usr/local/bin/python3.9'
```

but when trying to run FRR with snmp module on we see the following errors:

```
root@freebsd-14:/usr/ports/net/frr9 # bgpd -M snmp
frr_init: loader error: dlopen(/usr/local/lib/frr/modules/bgpd_snmp.so):
/usr/local/lib/libfrrsnmp.so.0: Undefined symbol "netsnmp_enable_subagent"
frr_init: loader error: dlopen(/usr/local/lib/frr/modules/snmp.so): Cannot =
open
"/usr/local/lib/frr/modules/snmp.so"
frr_init: loader error: dlopen(snmp): Shared object "snmp" not found, requi=
red
by "bgpd"
```

This issue is also mentioned here:=20
- OpenSense: https://github.com/opnsense/ports/issues/179
- PfSense: https://redmine.pfsense.org/issues/14491#change-68711

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275252-7788>