Date: Wed, 8 Feb 2023 12:49:46 +0800 From: Zhenlei Huang <zlei@FreeBSD.org> To: Gary Jennejohn <garyj@gmx.de> Cc: freebsd-current@freebsd.org Subject: Re: kernel compile fails if device bpf is not enabled Message-ID: <4FF5CEED-A667-455A-8BFC-960B50E8D93D@FreeBSD.org> In-Reply-To: <20230207100812.76d206d4@ernst.home>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hi Gary, Thanks for the report! Post the fix to Phabricator https://reviews.freebsd.org/D38432 <https://reviews.freebsd.org/D38432> . Best regards, Zhenlei > On Feb 7, 2023, at 5:08 PM, Gary Jennejohn <garyj@gmx.de> wrote: > > I just saw this error today because I didn't have device bpf enabled in > my kernel configuration file: > > -------------------------------------------------------------- >>>> stage 3.1: building everything > -------------------------------------------------------------- > 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) > --- 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. > > -- > Gary Jennejohn > [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi Gary,</div><div class=""><br class=""></div>Thanks for the report! Post the fix to Phabricator <a href="https://reviews.freebsd.org/D38432" class="">https://reviews.freebsd.org/D38432</a> .<div class=""><br class=""></div><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best regards,</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Zhenlei</div><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 7, 2023, at 5:08 PM, Gary Jennejohn <<a href="mailto:garyj@gmx.de" class="">garyj@gmx.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I just saw this error today because I didn't have device bpf enabled in<br class="">my kernel configuration file:<br class=""><br class="">--------------------------------------------------------------<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">stage 3.1: building everything<br class=""></blockquote></blockquote></blockquote>--------------------------------------------------------------<br class="">linking kernel.full<br class="">ld: error: undefined symbol: bpf_mtap_if<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">referenced by if.c:4724 (/usr/src/sys/net/if.c:4724)<br class=""> if.o:(if_bpfmtap)<br class="">referenced by if_tuntap.c:1717 (/usr/src/sys/net/if_tuntap.c:1717)<br class=""> if_tuntap.o:(tunread)<br class="">referenced by if_vlan.c:1292 (/usr/src/sys/net/if_vlan.c:1292)<br class=""> if_vlan.o:(vlan_transmit)<br class=""></blockquote></blockquote></blockquote><br class="">ld: error: undefined symbol: bpf_mtap2_if<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">referenced by if_gif.c:323 (/usr/src/sys/net/if_gif.c:323)<br class=""> if_gif.o:(gif_transmit)<br class="">referenced by if_tuntap.c:1816 (/usr/src/sys/net/if_tuntap.c:1816)<br class=""> if_tuntap.o:(tunwrite)<br class=""></blockquote></blockquote></blockquote>--- kernel.full ---<br class="">*** [kernel.full] Error code 1<br class=""><br class="">This happens because a dummy bpf_mtap_if() (called a NOP stub in bpf.c)<br class="">isn't being defined if bpf is not enabled.<br class=""><br class="">--<br class="">Gary Jennejohn<br class=""><br class=""></div></div></blockquote></div><br class=""><div class=""> <div><br class=""></div> </div> <br class=""></div></body></html>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF5CEED-A667-455A-8BFC-960B50E8D93D>
