From nobody Tue Feb 07 09:08:12 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9y3333Xtz3khQG for ; Tue, 7 Feb 2023 09:08:15 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9y3217Mbz4Gwc for ; Tue, 7 Feb 2023 09:08:14 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.de header.s=s31663417 header.b=a+VoYrhN; spf=pass (mx1.freebsd.org: domain of garyj@gmx.de designates 212.227.15.18 as permitted sender) smtp.mailfrom=garyj@gmx.de; dmarc=pass (policy=none) header.from=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1675760892; bh=BsD8BWUTAMpw4OzYOx2hnMIXdH11slBWi3SRLQF+rNk=; h=X-UI-Sender-Class:Date:From:To:Subject:Reply-To; b=a+VoYrhNtA/cEUAj13nJpwT9LbEXENurJQ2b2gsNKV8KZYKjawgWBJRL1OSylZvPG Z1BNoryf/CyipnQtChfqoScWNW1q22ysqYYhb1zrJ6NdtO/K5JTF+sgb87vhSsanq9 BdqkwsFFyy9xfOyzoXIflDz0kOvjqdhjBYpUUeqc4TNpWJ+DmTbqynDaTiDIU61081 vMhrh7dUnNVRFdja7DqSSGtu6TRqdzFVR/Mem97FOvM4onfQtytcVRlKif7EF1KROu KT5W+pmK1BfSL81EKV8lPZNHj7EJWETrPnJSheqAZkWBBig+iOqeoTNc9Y1pAXYIjF ekvjW+OCGMSWw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([217.226.49.211]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M4s4r-1pQ92R1jxH-0020YT for ; Tue, 07 Feb 2023 10:08:12 +0100 Date: Tue, 7 Feb 2023 09:08:12 +0000 From: Gary Jennejohn To: freebsd-current@freebsd.org Subject: kernel compile fails if device bpf is not enabled Message-ID: <20230207100812.76d206d4@ernst.home> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:cHZQXRrLCSeQ+UdWuekb7N99IJZa5iDxPpYjKuJFuHvNIIRR190 ArFBBg2/cW/fpcFwBv26GGc2Q67PPMpAkf4uXcaO8u6hea+RfUHTVB1bUG6pg2WmgILseiZ jeo4n/+2XxNWSa74LgeF1NjBjYR3Mt5NQsW0PILtOEm5fCr/GCPMNPiXhUg5YzMBkWYO08a t4T6f+DB9shJsKFbhp01Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:CZtEZeSzus0=;0x557CjG97S+CdhWiFmmsP3I4Ic vn3iTXHJnbvHpxKDZqjgDtKcVLq+nzlN7Ue+DZqNSj7hFQoFxWA76Cy7GtGr/QVs9CRBs2Yr3 FEaSg/LmqwjCeREGEtlwNXxOyToPOlPe7JEagtT4Tf/vSPsVlFloeGccUCe7mJz/BhED6ZgMC F3Jdk3ewxO1wEtQatZrSOjobpCkxUQY9KkcqI1hqRu9jT4f6uBCuS5V47rwvJ5y5ZMu2sPvrK Rbk3BQVHe3LAnr6IMl+Gx6LI9z5i6R7rfm8bb6u1KAnP2evcPu5HWqAOXjmFrwSbeyOYomUV0 rkLa/WemdqYEkPyzcn07rE3QvSDDDv7lDXUnFuGPcbxODG1+JWcbh0r+p8AprlV0r09k6lbBJ 5A662RHSP3D2BNiNKUC735EW1q/0pNp9ZnwWb+WAXAeZFC7u2LqzGREHkOHetvqQTubABB0gK XAL+W0yI7B5VbT2yykfQlPm79IWO3kffZDmPFcV6QaExJx7UhzDCT+Iqh24CEvVPf8+40UkAp 1QsL14TSFaEwqDLWoLa9SJf6JyNfEH8E5B9a3H10y1m0EAl6UI2HhKD4/G5OA9i6vNkdp9zHL gZ9Z3tYka/qf0HceigVjljhmD2XVnhz19Ov5U1M0AWpMxpYK+Y69nonlZlmib0XAWoSytLT1A iCh9DaSbvhj3fEild6tgoX7644I8K90VcmlBCfnjpwzv8LtABLLAeYQQvs5SXRePx9kfOpIp7 o5J0WForlKHYCvHKrGCDgcw+ZVz+97BQxAHacNWrie9vNvF6Vksn1S9XoFRF4XR8YvzmiRcIk AyftyxMCfqzUBplOzwHYUDxfwPjmBkMtB6/6T5fnPIr6w0ivvraxkbeaO0U2jhsQK1xKGTlDu r45EKDSrx5U5EHxar9FoTIlN2td6WomOcU8QeIQLquPuD4cp5IoYrMp3KcwzjgQjt+Zfy80CR gM68+oNZ/3W3Edp19yvlAQHuA5Q= X-Spamd-Result: default: False [-4.02 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; NEURAL_HAM_SHORT(-0.93)[-0.928]; DMARC_POLICY_ALLOW(-0.50)[gmx.de,none]; R_DKIM_ALLOW(-0.20)[gmx.de:s=s31663417]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_REPLYTO(0.00)[gmx.de]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.18:from]; RCPT_COUNT_ONE(0.00)[1]; HAS_REPLYTO(0.00)[garyj@gmx.de]; RCVD_COUNT_TWO(0.00)[2]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmx.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gmx.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.de]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4P9y3217Mbz4Gwc X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N 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