[Bug 266481] net-mgmt/net-snmp: PR_SLOWHZ missing in src/main after commit 1922eb3e9c23522ed323d022bac8456bf08b97cf

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Sep 2022 09:54:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266481

            Bug ID: 266481
           Summary: net-mgmt/net-snmp: PR_SLOWHZ missing in src/main after
                    commit 1922eb3e9c23522ed323d022bac8456bf08b97cf
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
             Flags: maintainer-feedback?(zi@FreeBSD.org)
          Assignee: zi@FreeBSD.org

Created attachment 236660
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=236660&action=edit
Patch for agent/mibgroup/mibII/tcp.c

This happens on src/main after commit 1922eb3e9c23522ed323d022bac8456bf08b97cf:

libtool: compile:  cc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -I/usr/include -O2 -pipe -fno-omit-frame-pointer
-I/usr/local/include -I/include -fstack-protector-strong -fno-strict-aliasing
-std=c99 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2
-pipe -fno-omit-frame-pointer -I/usr/local/include -I/include
-fstack-protector-strong -fno-strict-aliasing -std=c99 -Ufreebsd14
-Dfreebsd14=freebsd14 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -c mibII/tcp.c 
-fPIC -DPIC -o mibII/.libs/tcp.o
mibII/tcp.c:343:33: error: use of undeclared identifier 'PR_SLOWHZ'
        ret_value = TCPTV_MIN / PR_SLOWHZ * 1000;
                                ^
mibII/tcp.c:351:38: error: use of undeclared identifier 'PR_SLOWHZ'
        ret_value = TCPTV_REXMTMAX / PR_SLOWHZ * 1000;
                                     ^
2 errors generated.
*** Error code 1

Stop.
make[3]: stopped in
/construction/xports/net-mgmt/net-snmp/work/net-snmp-5.9.1/agent/mibgroup
*** Error code 1

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