[Bug 282064] 15-current libpfctl.o fails to compile and stops buildworld

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Oct 2024 18:08:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282064

            Bug ID: 282064
           Summary: 15-current libpfctl.o fails to compile and stops
                    buildworld
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: natenasby@gmail.com

With the base install version number being n272664-149e1af6ae49 and with
/usr/src updated from the main branch, libpfctl.o fails to compile and stops
buildworld.

--- lib__L ---
--- libpfctl.pieo ---
cc -fpie -DPIC  -O2 -pipe -fno-common -fpic   -g -gz=zlib -MD 
-MF.depend.libpfctl.pieo -MTlibpfctl.pieo -std=gnu99 -Wno-format-zero-length
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition
-Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-parameter  -Qunused-arguments     -c
/usr/src/lib/libpfctl/libpfctl.c -o libpfctl.pieo
--- libpfctl.o ---
/usr/src/lib/libpfctl/libpfctl.c:2922:12: error: use of undeclared identifier
'PF_RS_NR'; did you mean 'PF_RT_NR'?
 2922 |         { .type = PF_RS_NR, .off = _OUT(nr), .cb = snl_attr_get_uint32
},
      |                   ^~~~~~~~
      |                   PF_RT_NR
/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here
  210 |         PF_RT_NR                = 23, /* u32 */
      |         ^
/usr/src/lib/libpfctl/libpfctl.c:2923:12: error: use of undeclared identifier
'PF_RS_NAME'
 2923 |         { .type = PF_RS_NAME, .off = _OUT(name), .arg = (void
*)PF_ANCHOR_NAME_SIZE, .cb = snl_attr_copy_string },
      |                   ^
/usr/src/lib/libpfctl/libpfctl.c:2926:1: error: invalid application of 'sizeof'
to an incomplete type 'const struct snl_attr_parser[]'
 2926 | SNL_DECLARE_PARSER(ruleset_parser, struct genlmsghdr, fp_ruleset,
ap_ruleset);
      |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:175:2: note: expanded from macro
'SNL_DECLARE_PARSER'
  175 |         SNL_DECLARE_PARSER_EXT(_name, sizeof(_t), 0, _fp, _np, NULL)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:170:13: note: expanded from macro
'SNL_DECLARE_PARSER_EXT'
  170 |         .np_size = NL_ARRAY_LEN(_np),                                  
\
      |                    ^~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink_snl.h:71:33: note: expanded from macro
'NL_ARRAY_LEN'
   71 | #define NL_ARRAY_LEN(_a)        (sizeof(_a) / sizeof((_a)[0]))
      |                                        ^~~~
/usr/src/lib/libpfctl/libpfctl.c:2944:52: error: use of undeclared identifier
'PFNL_CMD_GET_RULESETS'; did you mean 'PFNL_CMD_GETRULES'?
 2944 |         hdr = snl_create_genl_msg_request(&nw, family_id,
PFNL_CMD_GET_RULESETS);
      |                                                          
^~~~~~~~~~~~~~~~~~~~~
      |                                                          
PFNL_CMD_GETRULES
/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared here
   44 |         PFNL_CMD_GETRULES = 6,
      |         ^
/usr/src/lib/libpfctl/libpfctl.c:2946:31: error: use of undeclared identifier
'PF_RS_PATH'; did you mean 'PF_CS_NAT'?
 2946 |         snl_add_msg_attr_string(&nw, PF_RS_PATH, path);
      |                                      ^~~~~~~~~~
      |                                      PF_CS_NAT
/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here
  295 |         PF_CS_NAT               = 12, /* bool */
      |         ^
/usr/src/lib/libpfctl/libpfctl.c:2980:52: error: use of undeclared identifier
'PFNL_CMD_GET_RULESET'; did you mean 'PFNL_CMD_GETRULES'?
 2980 |         hdr = snl_create_genl_msg_request(&nw, family_id,
PFNL_CMD_GET_RULESET);
      |                                                          
^~~~~~~~~~~~~~~~~~~~
      |                                                          
PFNL_CMD_GETRULES
/usr/include/netpfil/pf/pf_nl.h:44:2: note: 'PFNL_CMD_GETRULES' declared here
   44 |         PFNL_CMD_GETRULES = 6,
      |         ^
/usr/src/lib/libpfctl/libpfctl.c:2982:31: error: use of undeclared identifier
'PF_RS_PATH'; did you mean 'PF_CS_NAT'?
 2982 |         snl_add_msg_attr_string(&nw, PF_RS_PATH, path);
      |                                      ^~~~~~~~~~
      |                                      PF_CS_NAT
/usr/include/netpfil/pf/pf_nl.h:295:2: note: 'PF_CS_NAT' declared here
  295 |         PF_CS_NAT               = 12, /* bool */
      |         ^
/usr/src/lib/libpfctl/libpfctl.c:2983:28: error: use of undeclared identifier
'PF_RS_NR'; did you mean 'PF_RT_NR'?
 2983 |         snl_add_msg_attr_u32(&nw, PF_RS_NR, nr);
      |                                   ^~~~~~~~
      |                                   PF_RT_NR
/usr/include/netpfil/pf/pf_nl.h:210:2: note: 'PF_RT_NR' declared here
  210 |         PF_RT_NR                = 23, /* u32 */
      |         ^
8 errors generated.
*** [libpfctl.o] Error code 1

make[5]: stopped making "all" in /usr/src/lib/libpfctl
--- cddl/lib__L ---

make[4]: stopped making "all" in /usr/src/cddl/lib
--- lib__L ---

make[3]: stopped making "_generic_libs" in /usr/src
--- cddl/lib__L ---

make[3]: stopped making "_generic_libs" in /usr/src

make[2]: stopped making "libraries" in /usr/src
      274.67 real      1381.42 user       120.15 sys

make[1]: stopped making "buildworld" in /usr/src

make: stopped making "buildworld" in /usr/src

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