Page MenuHomeFreeBSD

pf: Fix NOINET and NOINET6 build.
ClosedPublic

Authored by des on Oct 2 2024, 3:58 PM.
Tags
None
Referenced Files
F103032984: D46877.diff
Wed, Nov 20, 1:50 AM
F102965285: D46877.diff
Tue, Nov 19, 7:06 AM
Unknown Object (File)
Sun, Nov 17, 11:42 AM
Unknown Object (File)
Thu, Nov 14, 3:45 AM
Unknown Object (File)
Thu, Nov 14, 3:44 AM
Unknown Object (File)
Thu, Nov 7, 9:55 PM
Unknown Object (File)
Thu, Nov 7, 9:43 PM
Unknown Object (File)
Tue, Nov 5, 8:56 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.