Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2016 07:55:16 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   kernel build failure in if_lmc when bpf(4) disabled!
Message-ID:  <20160304075516.362bd276@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | raw e-mail | index | archive | help
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 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160304075516.362bd276>