From owner-freebsd-bugs@freebsd.org Fri Mar 4 06:18:13 2016 Return-Path: Delivered-To: freebsd-bugs@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 73E7E9DA55F for ; Fri, 4 Mar 2016 06:18:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 59391A14 for ; Fri, 4 Mar 2016 06:18:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u246IDcM012833 for ; Fri, 4 Mar 2016 06:18:13 GMT (envelope-from bugzilla-noreply@freebsd.org) 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) Date: Fri, 04 Mar 2016 06:18:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartman@zedat.fu-berlin.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 06:18:13 -0000 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.=