[gnutls-devel] GnuTLS | Build failure on Solaris 11.3 (#1109)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Nov 1 16:43:39 CET 2020



Milhouse Vanhouten created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1109



## Description of problem:
Issues with defining _POSIX_C_SOURCE on Solaris

Edit ./gnutls-3.6.15/tests/pkcs11/pkcs11-mock.h

And remove this line:
#define _POSIX_C_SOURCE 200809

## Version of gnutls used:
gnutls-3.6.15

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Solaris 11.3

## How reproducible:
  CC       pkcs11/pkcs11-mock.lo
In file included from /opt/gcc-10.2.0-sparc64/lib/gcc/sparc64-sun-solaris2.11/10.2.0/include-fixed/stdio.h:24,
                 from pkcs11/pkcs11-mock.h:24,
                 from pkcs11/pkcs11-mock.c:22:
/opt/gcc-10.2.0-sparc64/lib/gcc/sparc64-sun-solaris2.11/10.2.0/include-fixed/sys/feature_tests.h:363:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications   and pre-2001 POSIX applications"
  363 | #error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
      |  ^~~~~
gmake[3]: *** [Makefile:8093: pkcs11/pkcs11-mock.lo] Error 1
gmake[3]: Leaving directory '/opt/pkgbuild/objects/security/gnutls/work/gnutls-3.6.15/tests'
gmake[2]: *** [Makefile:8476: all-recursive] Error 1
gmake[2]: Leaving directory '/opt/pkgbuild/objects/security/gnutls/work/gnutls-3.6.15/tests'
gmake[1]: *** [Makefile:1764: all-recursive] Error 1
gmake[1]: Leaving directory '/opt/pkgbuild/objects/security/gnutls/work/gnutls-3.6.15'
gmake: *** [Makefile:1689: all] Error 2
*** Error code 2

Stop.
bmake[2]: stopped in /opt/pkgbuild/pkgsrc/security/gnutls
*** Error code 1

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1109
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/20201101/ab87f217/attachment.html>


More information about the Gnutls-devel mailing list