[gnutls-devel] GnuTLS | Solaris build requires -D_XOPEN_SOURCE=600 -std=gnu99 (#782)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Oct 5 23:00:03 CEST 2024




Alan Coopersmith commented: https://gitlab.com/gnutls/gnutls/-/issues/782#note_2144348466


EOL of Solaris is not planned until 2037, despite past press reports.

Use of alloca on Solaris requires including the `<alloca.h>` header to get the critical `#define alloca(x) __builtin_alloca(x)` bit to make the compiler generate the stack-allocation code.  Nettle itself handles this via autoconf m4 trickery to insert the include of `<alloca.h>` into `config.h`: https://gitlab.com/gnutls/nettle/-/blob/nettle_3.10_release_20240616/aclocal.m4#L184-216

In gnutls-3.8.4, the configure scripts on Solaris end up with an `alloca.h` header in `gl/alloca.h` that is generated by gnulib scripts.

Adding an '#include <alloca.h>' to `lib/nettle/int/nettle-internal.h` solves this problem for me.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/782#note_2144348466
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20241005/76b0d535/attachment-0001.html>


More information about the Gnutls-devel mailing list