From nobody Thu Feb 12 15:49:42 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 4fBfr86334z6RrMS for ; Thu, 12 Feb 2026 15:49:44 +0000 (UTC) (envelope-from markj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4fBfr85Qkwz45b2; Thu, 12 Feb 2026 15:49:44 +0000 (UTC) (envelope-from markj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770911384; 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=KNOcue3Es60osufDcNqJJuD8WDNnDSoEKOlftXRmQMo=; b=OXmbLLmHd6aqgPjzVIffWlR/wiAR882M/5iRUmyyF1+36j5ZMNmFT1SG9qHcAz+Zk/YvIc aGm8NqSKbstVkE6mVa5wT+kM8zkfT787G08+uJj2acYl21ewAFDabLsCPVbU+SeN6kXSY6 8d6cALlE1yyLLA3Scej2KmjqgVapOjheFW1yGiTp45AZTa1DFoab9SsUOqqM5JduWGQ3fx 0HJscd+vwHjXEEPsPsiUvMcnTPSj/e4lwwb5t2F1wjECreyK67tdslo1ZZinae/+ejg7WD U4Vi9euQfYlV1oB6hgxfOETvKLMno4iBghqXH2pDTkJ8Vw/f/LDXR0zMbc3tvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770911384; a=rsa-sha256; cv=none; b=QIGATL8o4Z9bhnEliCgoAkOK7MaZBfSQiCbZXJqtxok3NlaGwrkI73fSytQzLWO8jd5BvU I+BoCS7dbazYgJCX6uzNEGo+9TzU8BNuwTqATZCWlYh+0oDG0SiZml1uiL3pphZBzPxrZc T29yVXeksanXRI0HioDWkLY1dDhM2wlJt17fwLvxZ85W0s6q1xgdJRYNtoCqwGP3b8HU0w +YNX7buHK4p1v2vaFoPmNDX0N9EQLREiKxVINKTV3o09BZR/dWkXLk6K3gYWDl1rlLVjnr eeHvNhcjT0ShDwJBvSc+J3GT+u8uHdohP/2aLj9WK/u9SXLe1zEzLAP+LQLxiA== 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=1770911384; 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=KNOcue3Es60osufDcNqJJuD8WDNnDSoEKOlftXRmQMo=; b=XMk09cM/fHdaIEwn+Ivsx5oMj6zzObtlrDbWq6PUAskYUeOiAviMgWzCT6JqfK8twV+INc 7LQmZ3Im/7nlZd3cW8hioH7X3G1v+3UPcK2BWhe/Mt+iKQBXmn2+mNFZ0H+jGbaZlP3yPo 32W8MySJgO2ppxn/GtYUqDsto4syRE6syZ2HJ4B8odbASr79oTmOFl1/dbBLmdHdSHCItW rAktihcVDLxixFdwf5t5NID96o9signEElpOYqre2bpIDE8jACFlQVKymDLeP3YxMyBtOT aErGXydSlrNxVeDzafcvFjYZ4XD3GTgtoqZC0M1AqFp/Ot5a9BP7elln89PHBw== 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 4fBfr83TvlzrY3; Thu, 12 Feb 2026 15:49:44 +0000 (UTC) (envelope-from markj@freebsd.org) Date: Thu, 12 Feb 2026 10:49:42 -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> <4bbe4798-867d-4a08-8fb2-4c0b0b4b9f13@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: <4bbe4798-867d-4a08-8fb2-4c0b0b4b9f13@gmail.com> On Thu, Feb 12, 2026 at 10:22:36AM -0500, Ian FREISLICH wrote: > On 2/12/26 09:28, Mark Johnston wrote: > > 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. > > That fixes the problem. Out of interest what option would have included the > struct socket definition? I suspect it's "options VIMAGE".