Solaris build requires -D_XOPEN_SOURCE=600 -std=gnu99
Description of problem:
GnuTLS 3.6.8 fails to compile on Solaris i86pc.
Version of gnutls used:
Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
GnuTLS from 3.6.8 source tarball. Fetched from https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/.
It is consistently reproducible.
Testing on Solaris 11.3 reveals
-D_XOPEN_SOURCE=600 -std=gnu99 to avoid some compile errors due to
alloca. I believe it is due to the inclusion of Gnulib.
-D_XOPEN_SOURCE=600 to cross-pollinate into
CXXFLAGS, like by way of
-D_XOPEN_SOURCE=600 breaks some C++ features due to the way Solaris enforces standard versions.