Re: Cross compiling Kernel with all options enabled and compiler wrapper

Jörg Sonnenberger <[email protected]> Wed, 20 Aug 2025 12:30:32 +0200
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On 8/20/25 9:47 AM, Nando Schenk wrote:
> /home/nando/Documents/Schule/Maturitaetsarbeit/neu/netbsd-src-ftp/src/ 
> tools/texinfo/../../external/gpl2/texinfo/dist/lib/system.h:127:12: 
> error: conflicting types for 'strncasecmp'; have 'int(void)'
>    127 | extern int strncasecmp ();
>        |            ^~~~~~~~~~~
> /usr/include/strings.h:120:12: note: previous declaration of 
> 'strncasecmp' with type 'int(const char *, const char *, long unsigned 
> int)'
>    120 | extern int strncasecmp (const char *__s1, const char *__s2, 
> size_t __n)
>        |            ^~~~~~~~~~~

That sounds like the combination of a long-term issue with visibility on 
Linux and newer GCC defaulting to break old code. Explicitly using 
-std=gnu99 in HOST_CFLAGS might help.

Joerg