As you know, FRRouting does not compile with SNMP support and the description of this problem is on https://github.com/FRRouting/frr/issues/1617
I found a solution to this problem, but it affects another port: net-mgmt/net-snmp .
We need install this port with some option USE_CSTD.
make USE_CSTD=gnu99 install clean
Wow, thanks for your debug session !
net-mgmt/net-snmp/Makefile specifically include this line:
I need to ask to their authors why this specific CSTD usage before asking a net-snmp port modification
Frr created patch that fix compilation with snmp support.
I just need to check why libtool is adding -lpkg, generating this alarm:
====> Running Q/A tests (stage-qa)
Warning: you need USES=ssl
Error: /usr/local/lib/frr/modules/bgpd_snmp.so is linked to /usr/local/lib/libpkg.so.4 from ports-mgmt/pkg but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libpkg.so:ports-mgmt/pkg
Can you also disable RPKI option by default and enable FPM by default.
RPKI need only when we compile with BGP option.
There was a release with fixes this error and other corrections.
I'm working on net/frr5 that allows to build SNMP modules.
I need to check that regressions introduced into FRR 4.0 are fixed on 5.0 before to commit this port.
A commit references this bug:
Date: Fri Jul 6 07:36:10 UTC 2018
New revision: 473998
New port: net/frr5 (5.0.1).
Reported by: pi
Sponsored by: Orange
Fix build with SNMP option.
Reported by: email@example.com
Fix crash with gif/tun/gre interface.
Reported by: firstname.lastname@example.org
New net/frr5 (5.0.1) should resolve your problem.