Bug 219725 - modules/lmc: buildkernel fails when BPF is not allowed
Summary: modules/lmc: buildkernel fails when BPF is not allowed
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-02 11:21 UTC by O. Hartmann
Modified: 2018-05-20 18:41 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2017-06-02 11:21:59 UTC
In case the kernel config doesn't contain

options BPF

the module if_lmc fails to build as shown below.


[...]
/pool/sources/11.0-RELEASE/src/sys/modules/lmc/../../dev/lmc/if_lmc.c:4357:33: error: use of undeclared identifier 'DEV_BPF'
   ALTQ_PRESENT ? "ALTQ " : "", NBPFILTER ? "BPF " : "",
                                ^
/pool/sources/11.0-RELEASE/src/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

make[5]: stopped in /pool/sources/11.0-RELEASE/src/sys/modules/lmc
--- all_subdir_linux_common ---
--- linux_util.o ---
--- all_subdir_lmc ---
1 error
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 18:41:34 UTC
# 20180501: retire lmc