[Bug 275313] net/dhcpd fails to build on 15-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Nov 2023 17:58:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275313

            Bug ID: 275313
           Summary: net/dhcpd fails to build on 15-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mallorya@fastmail.com
                CC: koue@chaosophia.net
                CC: koue@chaosophia.net
             Flags: maintainer-feedback?(koue@chaosophia.net)

It builds on 14.0-RELEASE but not 15-CURRENT.

That's because `DIOCKILLSTATES` was removed in favor of `DIOCKILLSTATESNV`:
https://reviews.freebsd.org/D30056

```
cc  -O2 -pipe  -Wall -fstack-protector-strong -fno-strict-aliasing    -Wall
-D__dead='' -fPIE -MD  -MF.depend.pfutils.o -MTpfutils.o -std=gnu99
-Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/16/include
-fstack-protector-strong    -Qunused-arguments     -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith
-Wcast-qual -c pfutils.c -o pfutils.o
pfutils.c:51:16: warning: a function declaration without a prototype is
deprecated in all versions of C [-Wstrict-prototypes]
pftable_handler()
               ^
                void
pfutils.c:193:16: error: use of undeclared identifier 'DIOCKILLSTATES'
        if (ioctl(fd, DIOCKILLSTATES, &psk) == -1) {
                      ^
pfutils.c:203:16: error: use of undeclared identifier 'DIOCKILLSTATES'
        if (ioctl(fd, DIOCKILLSTATES, &psk) == -1) {
                      ^
1 warning and 2 errors generated.
*** [pfutils.o] Error code 1

make[2]: stopped in
/home/freebsd/ports/net/dhcpd/work/dhcpd-6.6.20200413/src/usr.sbin/dhcpd
1 error
```

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