From nobody Fri Mar 14 09:45:33 2025 X-Original-To: bugs@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 4ZDfcZ0bQLz5qtPd for ; Fri, 14 Mar 2025 09:45:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDfcY75D9z3qqd for ; Fri, 14 Mar 2025 09:45:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741945534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s3Vif2l0B3XcwV/0QVAq+WAo79+BpuQ0/HJdUK0b6Rk=; b=xrBkHNvavhw54rEl2+IWnnb3XbWgy0JAuycT1Bgjx9/YUrFRDg9SvatrsoaBBl1/84mn6Z Leyosn5fTBA6q2WeObJ3P2eru6mxW2BOYcQkg2FzkatQggriO/Df8KeumJdpvEt+TVOZbE 6b0gchMWaBXDO1csDB4Pk8myIfczLPNf85Tub6mWO5r+JyJB51TDcPF8NwF37daZzdQURc RnKGcTzGQUEy9ZTbhAYUW0tcTE79dPOMwGMZlDiHPO4lREdX60Dc13b3n9BjX6/5f+5oj+ Spj8VS4ekb+1V1I3o+VesjiDILn+033JQgmGUxnywSHoDbiXBbHsiU7ywakU2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741945534; a=rsa-sha256; cv=none; b=LKkmcADOOVPTvDDvpqxu+FW8o7gQO/VqiHwEXluyvDbPXwKPqFzejirWNP/f6r2X+DISPI rHkpWgIMek2ReSqIIp5Twy+mycerVFg+GRaTHMaZcxnT9vLV0tFYR2FyS4t9bZrpjezMEM Ti26a68nsvZvtjyutkCOHFRH5ryPfYhvvMOPX/RQ9qmwdqFGeaUyM4IKBJWSlhUyBjnoRq i2qLvbrADsk6bztqVKE5Z+tEgislAiU4P8kVQzdVc0egRPZbyKBNLmwXvEPzwX39XN6290 0HORRMwc0z7kWldvO3mWAK12Lj1Pn/+xpLYRU33aRnG7HdutAtednEaXQQjz6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741945534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s3Vif2l0B3XcwV/0QVAq+WAo79+BpuQ0/HJdUK0b6Rk=; b=MWuVdjWUjgRnbhhJCOr51kVhlTU4TsF5BZRJJ0rpLGM4a/7LgDaCnMzVNoR+qdLt5NS9Bz lePMNw/CpmNnC4fwlXDMttI7rN4iG6m4L5GKkyggcuA7yBtf/YTVpmtPgdCG3IHnyJl2ux G6Wx5xPqqaNjWQCN2y6agvQ6u+9S/DLejGrVbwffs2h01bmvLVIh2EY2C7r+MqJ6nXH4RK Ocv6rhz3ug/J/cIaSznynxwBDHFqok5CI0TKb8p1bhrU2m4GepArdzTQLMcZpW+QCYa5sQ 3sCaN9UFidpURIyJhds3jdkRj+x4m8do4JqvJ6k7znf9kqiAV3ncXXZjzl+6mA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZDfcY6gvqzf54 for ; Fri, 14 Mar 2025 09:45:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52E9jXJA001756 for ; Fri, 14 Mar 2025 09:45:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52E9jXY4001753 for bugs@FreeBSD.org; Fri, 14 Mar 2025 09:45:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285395] Fail to build bpf_buffer.c without enabling DEV_BPF nor NETGRAPH_BPF Date: Fri, 14 Mar 2025 09:45:33 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nakayamakenjiro@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285395 Bug ID: 285395 Summary: Fail to build bpf_buffer.c without enabling DEV_BPF nor NETGRAPH_BPF Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nakayamakenjiro@gmail.com Created attachment 258655 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D258655&action= =3Dedit Pacth to add macro to exclude SYSCTL_INT for _net_bpf in bpf_buffer.c As per title, neither DEV_BPF nor NETGRAPH_BPF is enabled, bpf_buffer.c fai= ls to build due to lack of sysctl___net_bpf as: ``` lld: error: undefined symbol: sysctl___net_bpf >>> referenced by bpf_buffer.c >>> net/bpf_buffer.c.obj:(sysctl___net_bpf_bufsize) >>> referenced by bpf_buffer.c >>> net/bpf_buffer.c.obj:(sysctl___net_bpf_maxbufsize) ``` The cause of the issue is that `SYSCTL_NODE(_net, ..., bpf,...)` in bpf.c is inside a macro: ``` #if defined(DEV_BPF) || defined(NETGRAPH_BPF) ... (omitted) ... SYSCTL_NODE(_net, OID_AUTO, bpf, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "bpf sysctl"); ``` This patch introduces a modification that moves the relevant part of bpf_buffer.c inside the macro. --=20 You are receiving this mail because: You are the assignee for the bug.=