From owner-freebsd-current@freebsd.org Fri Mar 4 06:55:33 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10D3B9D93EE for ; Fri, 4 Mar 2016 06:55:33 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD68F1063 for ; Fri, 4 Mar 2016 06:55:31 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for freebsd-current@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1abje0-000J9z-GF>; Fri, 04 Mar 2016 07:55:24 +0100 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) for freebsd-current@freebsd.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (envelope-from ) id <1abje0-001RW9-4H>; Fri, 04 Mar 2016 07:55:24 +0100 Date: Fri, 4 Mar 2016 07:55:16 +0100 From: "O. Hartmann" To: freebsd-current Subject: kernel build failure in if_lmc when bpf(4) disabled! Message-ID: <20160304075516.362bd276@freyja.zeit4.iv.bundesimmobilien.de> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 06:55:33 -0000 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