|
From: Christian S. <sch...@li...> - 2025-11-12 12:14:48
|
On Tuesday, November 11, 2025 12:15:22 AM CET Philippe DIDIER wrote:
[...]
> But I failed to build LinuxSampler for the next coming version of my
> distribution using GCC15.2 :
> my system was not supposed to be UNIX98 compatible
> But indeed it is
>
> I simply have had to add this patch to add one line in configure.ac and
> it's OK now :
>
> --- /configure.ac 2025-11-07 14:35:24.000000000 +0100
> +++ /configure.ac 2025-11-09 19:12:47.608538979 +0100
> @@ -131,6 +131,7 @@
> #define _GNU_SOURCE 1
> #endif
> #include <features.h>
> +#include <stdlib.h>
> void main(void) {
> #if _XOPEN_SOURCE >= 500
> exit(0); /* UNIX98 compatible */
Thanks for letting us know!
Could you provide more details? I assume you are building on Windows, right?
What are the exact compile errors you get?
That Unix98 check is fairly old. So the question is whether we should change
the check here, or something in our sources. Because on Windows you get more
and more POSIX APIs. Back then we simply considered its either UNIX(98) or
Windows.
For instance, chances are that stdlib.h is simply doing #undef _GNU_SOURCE
there, in that case this #include would just fight the symptom.
/Christian
|