Re: sys/compat/linux/linux_emul.h:58:49: error: declaration of, 'struct image_args' will not be visible . . .

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 17 Aug 2026 02:59:04 UTC
On 8/16/26 14:29, Michael Tuexen wrote:
> 
> 
>> On 16. Aug 2026, at 22:23, Mark Millard <marklmi@yahoo.com> wrote:
>>
>> Is the Discord kernel channel monitored for the likes of the following
>> report there (not my report)? :
>>
>> QUOTE
>> Failing since yesterday on arm64:
>> ```
>> sys/compat/linux/linux_emul.h:58:49: error: declaration of
>> 'struct image_args' will not be visible outside of this function
>> [-Werror,-Wvisibility]
>>   58 | int     linux_common_execve(struct thread *, struct image_args*);
>>      |                                                     ^
>> 1 error generated.
>> ```
>> END QUOTE
> Hi Mark,
> 
> I reported it already to Devin. The culprit is
> https://cgit.FreeBSD.org/src/commit/?id=bdb561843e865eaa5bbdc5394ed9d9c91136240c

Good.

But I was asking more to figure out if referencing/quoting such Discord
examples on some FreeBSD related list list was appropriate going
forward. If Discord's FreeBSD Kernel channel is well monitored, it would
be redundant to repost or reference; if not monitored, then it might be
reasonable to repost such a notice that was not obviously part of an
ongoing exchange with appropriate folks involved already.

There could be other Discord channels for which a similar question could
apply.
> 
> 
> The following patch
> diff --git a/sys/arm64/linux/linux_emul_md.c b/sys/arm64/linux/linux_emul_md.c
> index 9dd507ad4f49..e55d3b712056 100644
> --- a/sys/arm64/linux/linux_emul_md.c
> +++ b/sys/arm64/linux/linux_emul_md.c
> @@ -7,6 +7,7 @@
> #include <sys/param.h>
> #include <sys/systm.h>
> #include <sys/proc.h>
> +#include <sys/imgact.h>
>   #include <compat/linux/linux_emul.h>
> #include <compat/linux/linux_mmap.h>
> 
> fixes it for me.
> 
> Best regards
> Michael
>> -- 
>> ===
>> Mark Millard
>> marklmi at yahoo.com
>>
>>
> 
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com