From nobody Thu Feb 12 15:22:36 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 4fBfDz490Cz6RnwH for ; Thu, 12 Feb 2026 15:22:43 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fBfDz0qh4z42Nh for ; Thu, 12 Feb 2026 15:22:43 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-796d0395828so15731537b3.2 for ; Thu, 12 Feb 2026 07:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770909757; x=1771514557; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iOKzR5Qp4zkiuREV+5DAS/W/xb1UEEqvr2/u+CbPcJ4=; b=i0ef60rno1aTQw2NJJrKu9gIb+hqur4qpJYEtj9AVnOEpSDz9Uqqu46Pzqsbl82hSa xNm2y1iNg9TqDcDTinWKLh+fPk9Nz+2QbHJKzqfqE5cTqC5CLwcgQku3FIjjx9P5o5cT 8711YmGmSOns+Crr5Xz+tSteqSBmzNdfLGMRfZz2ZnZ9HY4OJAh7lcYBIUQUjrZvpbLk QQKUr/x1g5pxD3kleMjzOGV4h6saQHEVlkV3SawXLHRr/1QwX7PW9oP8C0NQ4GioHCvi EBZbPMp2d0HxeVcM1kahfHp++/wkENwtp2xshoqZq8PcFlgbTKANNqOAxCE2SrCflt0X qskg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770909757; x=1771514557; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iOKzR5Qp4zkiuREV+5DAS/W/xb1UEEqvr2/u+CbPcJ4=; b=J+nJSD998gI0h6sxYuKri2DkSSC0yu2qv5hKuoQ5DdWpCvoUGnCJ54JfQ/mAErdGMo STXjEOnwY87pHm3GJFcQdsiukSzMJAsQNP+7DKEtqhscOzNY6cpxrXWSUIgqoBkYWkXY wP0XLTi5g2av3LNy7zKJYHNvzouiyEIS0YRnsXcy5A7mxImpq7M/1+rWyfuhda6yJtQo tV8PqX6RiUPn+Pt0VDXwisqravJqZNo9Nm10E8mA1x40ln5YVxsEkJ5xq4RQmVPfuIIT tK0XPF/vxpeC/hUQimjru/E0x/Wv66zpUr/R4OFA6cr4hPYgpALtD7VtdXMoeizmT8pr +SZQ== X-Gm-Message-State: AOJu0YzDe7/2ozIP6OrYUHv27qU7uXAP4DEx7sq51Ck8fMgNfEV0NyxG 9jnYb/7lergld4Jo701aaQ5szAOgoizpNPdSpqQT2D1MO545tO5KJvt7W8Q83Q== X-Gm-Gg: AZuq6aKdgBuYJ+QhgCSztZXo4XhUZhFnLIAG/q/dN903GWk7P+Aykv/FFuk5CKJxQQq OTGuYsSDVgUwd9LsSyGGyq2SGub3PMyAJGWG1fnZavP6Nh01vR8cEpuh4+zFSIf+SsyDIy2GKTT h1gobFGCXhOA9xnS6H3pJKXHKkIv26j4jQqAT6reCp52f+w9zLqj98BevzPfL0oJsbMGq4Zdsh9 PvIOoVqVWJX94FW2UgRae6VJ04UN8/EfkYcsFaVXvRbCLP5BPHge8d+zbqms5hiaNmYJSlDtJDB /pehEa296YJeG/+gI9h1DP+kvq6FUFHzYfsSG4+kRhW2P2GInYAql7Di9EmScVylZm3UUBYWLTc uOzMLSvCc8s23+65ZBtSoRGE6JHO3eWeelhBXnAPO8u9/TmchqxLjwWCm9Tf3C9gF9k8dPFcPCu NA9KJppwr/33Oo8b8pT2kpyKow3Qjn557pzJIZ9WH/9xXr4hpRCW4Fze6T+y84flnGiTeLo9df5 huKKQ== X-Received: by 2002:a05:690c:e372:b0:796:2fde:5dd4 with SMTP id 00721157ae682-797931b4d29mr16469287b3.48.1770909757269; Thu, 12 Feb 2026 07:22:37 -0800 (PST) Received: from ?IPV6:2600:1700:18f0:6812:129a:8666:ef01:3293? ([2600:1700:18f0:6812:129a:8666:ef01:3293]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7966c23f1bdsm48124427b3.28.2026.02.12.07.22.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Feb 2026 07:22:36 -0800 (PST) Message-ID: <4bbe4798-867d-4a08-8fb2-4c0b0b4b9f13@gmail.com> Date: Thu, 12 Feb 2026 10:22:36 -0500 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 User-Agent: Thunderbird Daily Subject: Re: Buildkernel failure (error: declaration of 'struct socket' will not be visible outside of this function) To: Mark Johnston Cc: FreeBSD Current References: <742828d8-926a-4564-8f22-8cda1169f7cd@gmail.com> Content-Language: en-US From: Ian FREISLICH In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4fBfDz0qh4z42Nh X-Spamd-Bar: ---- 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? Ian