Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • GnuTLS GnuTLS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gnutls
  • GnuTLSGnuTLS
  • Issues
  • #782
Closed
Open
Created Jun 05, 2019 by Jeffrey Walton@noloader

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:

GnuTLS 3.6.8

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/.

How reproducible:

It is consistently reproducible.

Testing on Solaris 11.3 reveals CFLAGS needs -D_XOPEN_SOURCE=600 -std=gnu99 to avoid some compile errors due to alloca. I believe it is due to the inclusion of Gnulib.

Don't allow -D_XOPEN_SOURCE=600 to cross-pollinate into CXXFLAGS, like by way of CPPFLAGS. -D_XOPEN_SOURCE=600 breaks some C++ features due to the way Solaris enforces standard versions.

Assignee
Assign to
Time tracking