Building a custom kernel fails when bpf(4) is disabled as suggested in
security(7) due to the error shown below.

I also tried to define in make.conf 


assuming I could avoid building the culprit module/device, but it did not work
as expected!

I need to disable bpf(4). What is to do to avoid building this failing module? 

cc  -c -O2 -pipe -fno-strict-aliasing   -nostdinc  -I.
-I/empty/src/ALG/CURRENT/sys -I/empty/src/ALG/CURRENT/sys/contrib/libfdt
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-unknown-pragmas
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality -Wno-error-unused-function
-Wno-error-pointer-sign -Wno-error-shift-negative-value  -mno-aes -mno-avx
-std=iso9899:1999 -Werror  /empty/src/ALG/CURRENT/sys/x86/acpica/madt.c ---
--- /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:4357:33:
error: use of undeclared identifier 'DEV_BPF' ALTQ_PRESENT ? "ALTQ " : "",
NBPFILTER ? "BPF " : "",
^ /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:94:20: note:
expanded from macro 'NBPFILTER' # define NBPFILTER DEV_BPF ^ 4 errors
generated. *** [if_lmc.o] Error code 1
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to