[Bug 288678] net/libpfctl: compilation error on 15-CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Aug 2025 13:16:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288678
Bug ID: 288678
Summary: net/libpfctl: compilation error on 15-CURRENT
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: kp@freebsd.org
Reporter: trashcan@ellael.org
Assignee: kp@freebsd.org
Flags: maintainer-feedback?(kp@freebsd.org)
Created attachment 262720
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262720&action=edit
Fix missing libpfctl-9efd215411bb.tar.gz to please portlint
Hi,
This is 15.0-CURRENT (n279325). I am getting the following compilation error
using pouriere (with 'MAKE_JOBS_UNSAFE=yes'):
=======================<phase: build >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Building for libpfctl-0.15
make: /usr/share/mk/bsd.libnames.mk:231: warning: Converting out-of-tree build
LIBADDs into LDADD. This is not fully supported.
Warning: Object directory not changed from original
/wrkdirs/usr/ports/net/libpfctl/work/libpfctl
cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fpic -MD
-MF.depend.libpfctl.o -MTlibpfctl.o -std=gnu17 -Wno-format-zero-length
-nobuiltininc -idirafter /usr/lib/clang/19/include -fstack-protector-strong
-Qunused-arguments -c libpfctl.c -o libpfctl.o
libpfctl.c:3032:12: error: use of undeclared identifier 'PF_SN_NAF'
3032 | { .type = PF_SN_NAF, .off = _OUT(naf), .cb = snl_attr_get_uint8
},
| ^
libpfctl.c:3036:1: error: invalid application of 'sizeof' to an incomplete type
'struct snl_attr_parser[]'
3036 | SNL_DECLARE_PARSER(srcnode_parser, struct genlmsghdr, fp_srcnode,
ap_srcnode);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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 = nitems(_np),
\
| ^~~~~~~~~~~
/usr/include/sys/_param.h:18:26: note: expanded from macro 'nitems'
18 | #define nitems(x) (sizeof((x)) / sizeof((x)[0]))
| ^~~~~
2 errors generated.
*** Error code 1
Stop.
make: stopped making "all" in /wrkdirs/usr/ports/net/libpfctl/work/libpfctl
*** Error code 1
Stop.
make: stopped making "build" in /usr/ports/net/libpfctl
=>> Cleaning up wrkdir
===> Cleaning for libpfctl-0.15
build of net/libpfctl | libpfctl-0.15 ended at 2025-08-05T15:06:36+02:00
build time: 00:00:12
!!! build failure encountered !!!
Any hint is highly appreciated
P.S. I added a patch for portlint's complaint:
FATAL: /usr/ports/default/net/libpfctl/distinfo: has no SIZE record for
libpfctl-9efd215411bb.tar.gz.
--
You are receiving this mail because:
You are the assignee for the bug.