https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207692
Bug ID: 207692 Summary: dev/lmc/if_lmc: module build error with bpf(4) disabled (DEV_BPF) Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ohart...@zedat.fu-berlin.de If in kernel config file device bpf(4) is disabled for security reasons as suggested by security(7): # device bpf the following error prevents from kernel being compiled successfully: [...] cc -c -O3 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /empty/obj/ALG_amd64-CUR/empty/src/ALG/CURRENT/sys/ALG/opt_global.h -I. -I/empty/src/ALG/CURRENT/sys -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/empty/obj/ALG_amd64-CUR/empty/src/ALG/CURRENT/sys/ALG -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 /empty/src/ALG/CURRENT/sys/amd64/amd64/genassym.c --- all_subdir_lmc --- /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:131:6: error: 'DEV_BPF' is not defined, evaluates to 0 [-Werror,-Wundef] # if NBPFILTER ^ /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:94:20: note: expanded from macro 'NBPFILTER' # define NBPFILTER DEV_BPF ^ In file included from /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:135: /empty/src/ALG/CURRENT/sys/dev/lmc/if_lmc.h:1156:7: error: 'DEV_BPF' is not defined, evaluates to 0 [-Werror,-Wundef] # if (NBPFILTER != 0) ^ /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:94:20: note: expanded from macro 'NBPFILTER' # define NBPFILTER DEV_BPF ^ In file included from /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:135: /empty/src/ALG/CURRENT/sys/dev/lmc/if_lmc.h:1166:6: error: 'DEV_BPF' is not defined, evaluates to 0 [-Werror,-Wundef] #if (NBPFILTER == 0) -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"