Hi,

Is there any way to get 64bit interface counters in net-snmp to work with 
OpenBSD (preferably via ports)?

>From the official net-snmp 5.4* changelog:

---
Solaris, FreeBSD, OpenBSD:
      - Experimental support for 64bit interface counters (ifXTable). Enable
        via '--with-mib-modules=if-mib --enable-mfd-rewrites'.
---

I've synced the ports tree from -current and added "--enable-mfd-rewrites" to 
the CONFIGURE_ARGS variable in the net-snmp (net-snmp-5.4.2.1p3) port's 
Makefile.

But the compilation fails:

---
if-mib/data_access/interface_sysctl.c:186: error: `IFM_TOKEN' undeclared (first 
use in this function)
if-mib/data_access/interface_sysctl.c:186: error: (Each undeclared identifier 
is reported only once
if-mib/data_access/interface_sysctl.c:186: error: for each function it appears
in.)
if-mib/data_access/interface_sysctl.c:188: error: `IFM_TOK_STP4' undeclared 
(first use in this function)
if-mib/data_access/interface_sysctl.c:189: error: `IFM_TOK_UTP4' undeclared 
(first use in this function)
if-mib/data_access/interface_sysctl.c:193: error: `IFM_TOK_STP16' undeclared 
(first use in this function)
if-mib/data_access/interface_sysctl.c:194: error: `IFM_TOK_UTP16' undeclared 
(first use in this function)
*** Error code 1

Stop in /usr/ports/pobj/net-snmp-5.4.2.1/net-snmp-5.4.2.1/agent/mibgroup (line
96 of Makefile).
*** Error code 1

Stop in /usr/ports/pobj/net-snmp-5.4.2.1/net-snmp-5.4.2.1/agent (line 825 of 
Makefile).
*** Error code 1

Stop in /usr/ports/pobj/net-snmp-5.4.2.1/net-snmp-5.4.2.1 (line 521 of 
Makefile).
*** Error code 1

Stop in /usr/ports/net/net-snmp (line 2193 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/net/net-snmp (line 1448 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/net/net-snmp (line 1988 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/net/net-snmp (line 1478 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/net/p5-SNMP-Info (line 1625 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/net/p5-SNMP-Info (line 1478 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1
---

Any ideas?


Regards,

Johan

Reply via email to