Date: Tue, 7 Feb 2023 09:08:12 +0000 From: Gary Jennejohn <garyj@gmx.de> To: freebsd-current@freebsd.org Subject: kernel compile fails if device bpf is not enabled Message-ID: <20230207100812.76d206d4@ernst.home>
next in thread | raw e-mail | index | archive | help
I just saw this error today because I didn't have device bpf enabled in my kernel configuration file: =2D------------------------------------------------------------- >>> stage 3.1: building everything =2D------------------------------------------------------------- linking kernel.full ld: error: undefined symbol: bpf_mtap_if >>> referenced by if.c:4724 (/usr/src/sys/net/if.c:4724) >>> if.o:(if_bpfmtap) >>> referenced by if_tuntap.c:1717 (/usr/src/sys/net/if_tuntap.c:1717) >>> if_tuntap.o:(tunread) >>> referenced by if_vlan.c:1292 (/usr/src/sys/net/if_vlan.c:1292) >>> if_vlan.o:(vlan_transmit) ld: error: undefined symbol: bpf_mtap2_if >>> referenced by if_gif.c:323 (/usr/src/sys/net/if_gif.c:323) >>> if_gif.o:(gif_transmit) >>> referenced by if_tuntap.c:1816 (/usr/src/sys/net/if_tuntap.c:1816) >>> if_tuntap.o:(tunwrite) =2D-- kernel.full --- *** [kernel.full] Error code 1 This happens because a dummy bpf_mtap_if() (called a NOP stub in bpf.c) isn't being defined if bpf is not enabled. =2D- Gary Jennejohn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230207100812.76d206d4>