Date: Fri, 04 Mar 2016 06:18:13 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207692] dev/lmc/if_lmc: module build error with bpf(4) disabled (DEV_BPF) Message-ID: <bug-207692-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207692 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: ohartman@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 -nostd= inc -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=3Dkernel -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__=3D__freebsd_kpr= intf__ -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=3Diso9899: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 !=3D 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 =3D=3D 0) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207692-8>