From nobody Thu Feb 12 14:28:08 2026 X-Original-To: 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 4fBd2275j3z6RjG1 for ; Thu, 12 Feb 2026 14:28:10 +0000 (UTC) (envelope-from markj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fBd226LRsz3sP6; Thu, 12 Feb 2026 14:28:10 +0000 (UTC) (envelope-from markj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770906490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EjWZ9cQly3nxAAQM+/wiEa/zu1Yi19TtndGdWbYg2dE=; b=RQbQelRg6SnmZwcGv0qr32JdFWMdNaNcReELVmn4ujNfijVdd19DlB/ldq3C7qOHLQiJor /SmK//N34gfaFCPZUk2AFTOwrhGN7bFAsDWxyH4K1Lnxs7bS6PiRGCXQU/2psQ1m2/zsCF Xs58O4gtyMISJnNkwZiclsgowdJlwq6jWstg43KsNYl23L8eTEk3YtNXOGTyTvFOSD2PIn nrBvzLDMaBSJ2zs+yE3hv13f0RoCTRMEWH3Ttd9N1vmXes2+aB1ex8tLD3qiSHDbJr5Dwg SXdKLAXa72qtHrZjpac8VohMpaapB/YBme8nPbtAFlKkQaxDe+CEJVOD5KdFPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770906490; a=rsa-sha256; cv=none; b=HZcuz9Or1ki69prAZ1zbS7ISRWCCBFiD/lSiWuFQ+x9Chkafjqm/B1CZOu3OuHQyiymmop 6kze0DAoKbcqcCwJnjUUkn8OVfsLAB81XnptPVF00p0WjqEuqiqUwUkHMKJB6scRpD1jyz f3vEgaaWMSSu3WbECUtogH4kw7bBlENe10TQXn/vy6aiBgC/TmYcC8i3RDfK57qppRBifa +UAn4DMVVmrY2Me5FCs8XEaUzlmJRz1mzLcnhsvrpYRs7DBObHG2WS4nVGHXijJF7WDREm zgUKpsYwhrVRhKag592qEaOV8Bvrwv1vI+06G+9cKH7I9tqODWw//cOzTcFo3g== 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=1770906490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EjWZ9cQly3nxAAQM+/wiEa/zu1Yi19TtndGdWbYg2dE=; b=CbvZrsgsCf+Gkvi4JQuSEcaHA6YiysKxOIovS4oU9a7waM0YJm33AbrIYmDMYqCmH6CQjd c8Jh0FLPn6Em8nUI0/vfVQPZLaemka6XTTd4WQ3st++P7FGscPMEmFMgMHqsbO5lhNr4Au GJ89NO1YAjcEMdYgLNrswOKuV7K0zbaKmiWbVYPbR27Zu+91fkiUZClGovpoGEyNYQlFSy 8pqONXgsPC/vg83csWpVTiY5PyWt/Rh76nno5AcmaZHzWAZA2DiFtCdZ0S5dRAMORRCYuH aNtWiQbl7AHy6pYRVKYz8/jaZn8d1KhmafuPNiaz1qnGhvbK09mDY1kpWVxN/g== Received: from nuc (192-0-220-237.cpe.teksavvy.com [192.0.220.237]) (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) (Authenticated sender: markj) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fBd224BHJzqFR; Thu, 12 Feb 2026 14:28:10 +0000 (UTC) (envelope-from markj@freebsd.org) Date: Thu, 12 Feb 2026 09:28:08 -0500 From: Mark Johnston To: Ian FREISLICH Cc: FreeBSD Current Subject: Re: Buildkernel failure (error: declaration of 'struct socket' will not be visible outside of this function) Message-ID: References: <742828d8-926a-4564-8f22-8cda1169f7cd@gmail.com> 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-Disposition: inline In-Reply-To: <742828d8-926a-4564-8f22-8cda1169f7cd@gmail.com> On Wed, Feb 11, 2026 at 03:25:26PM -0500, Ian FREISLICH wrote: > Hi > > In file included from /usr/src/sys/netpfil/pf/pfsync_nv.c:38: > /usr/src/sys/netinet6/ip6_var.h:380:28: error: declaration of 'struct > socket' will not be visible outside of this function [-Werror,-Wvisibility] > 380 | int icmp6_ctloutput(struct socket *, struct sockopt *sopt); > | ^ > /usr/src/sys/netinet6/ip6_var.h:409:26: error: declaration of 'struct > socket' will not be visible outside of this function [-Werror,-Wvisibility] > 409 | int ip6_ctloutput(struct socket *, struct sockopt *); > | ^ > /usr/src/sys/netinet6/ip6_var.h:410:30: error: declaration of 'struct > socket' will not be visible outside of this function [-Werror,-Wvisibility] > 410 | int ip6_raw_ctloutput(struct socket *, struct sockopt *); > | ^ > /usr/src/sys/netinet6/ip6_var.h:429:27: error: declaration of 'struct > socket' will not be visible outside of this function [-Werror,-Wvisibility] > 429 | int rip6_ctloutput(struct socket *, struct sockopt *); > | ^ > /usr/src/sys/netinet6/ip6_var.h:430:24: error: declaration of 'struct > socket' will not be visible outside of this function [-Werror,-Wvisibility] > 430 | int rip6_usrreq(struct socket *, > | ^ > 5 errors generated. I think you're using a custom kernel config, please share it when reporting build failures. In any case, I think commit be393b6f0497f374c679c31e746705515eb9a554 will fix the problem.