Page MenuHomeFreeBSD

pf: Fix NOINET and NOINET6 build.
ClosedPublic

Authored by des on Oct 2 2024, 3:58 PM.
Tags
None
Referenced Files
F110486955: D46877.diff
Wed, Feb 19, 2:55 AM
Unknown Object (File)
Fri, Feb 14, 8:09 AM
Unknown Object (File)
Sun, Jan 26, 8:26 PM
Unknown Object (File)
Sun, Jan 26, 6:18 PM
Unknown Object (File)
Sun, Jan 26, 6:06 PM
Unknown Object (File)
Thu, Jan 23, 6:45 PM
Unknown Object (File)
Jan 11 2025, 12:39 AM
Unknown Object (File)
Jan 10 2025, 7:58 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59689
Build 56575: arc lint + arc unit

Event Timeline

des requested review of this revision.Oct 2 2024, 3:58 PM

I can't reproduce the build failure, but this is fine.

This revision is now accepted and ready to land.Oct 2 2024, 4:01 PM

Both LINT-NOINET and LINT-NOINET6 build for me. I wonder what's different about your env...
But it's fine.

Ah yes, you need to also not have ALTQ enabled, and in fact this patch is too simple because the module also fails to build with NOINET.

% cat sys/amd64/conf/PFNO6 ; make buildkernel KERNCONF=PFNO6 MODULES_OVERRIDE=pf -j12 >& PFNO6.log ; echo $? ; grep error: PFNO6.log
include MINIMAL
ident PFNO6
device pf
nooption INET6
2
/usr/src/main/sys/netpfil/pf/pf.c:8858:19: error: unused variable 'h6' [-Werror,-Wunused-variable]
/usr/src/main/sys/netpfil/pf/pf.c:8858:19: error: unused variable 'h6' [-Werror,-Wunused-variable]
% cat sys/amd64/conf/PFNO4 ; make buildkernel KERNCONF=PFNO4 MODULES_OVERRIDE=pf -j12 >& PFNO4.log ; echo $? ; grep error: PFNO4.log
include MINIMAL
ident PFNO4
device pf
nooption INET
2
/usr/src/main/sys/netpfil/pf/pf.c:8857:14: error: unused variable 'h' [-Werror,-Wunused-variable]
des retitled this revision from pf: Fix NOINET6 build. to pf: Fix NOINET and NOINET6 build..Oct 2 2024, 5:39 PM
This revision now requires review to proceed.Oct 2 2024, 5:40 PM
This revision is now accepted and ready to land.Oct 2 2024, 5:42 PM
This revision was automatically updated to reflect the committed changes.