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 WITHOUT_MODULES="lmc" or WITHOU_MODULES="if_lmc" 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 --- modules-all --- /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 1Received on Fri Mar 04 2016 - 05:55:33 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC