Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6829

Mesos fails to compile when using FORTIFY_SOURCE without optimizations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • build, libprocess, security, stout
    • None

    Description

      Fome some versions of gcc/glibc a warning will be produced with FORTIFY_SOURCE is used without optimizations enabled (see here for related information https://sourceware.org/bugzilla/show_bug.cgi?id=13979). This only happens in some environments such as CentOS 7 and Arch Linux with GCC 6.2.

      Probably one of the reasons why it didn't get caught earlier by CI:

      "This #warning appears to be causing more grief than it is solving; for example, see this autoconf thread that complains that it is breaking configure scripts, and therefore Debian's decision to revert this patch in their build of glibc:

      https://lists.gnu.org/archive/html/autoconf/2013-05/msg00003.html
      http://anonscm.debian.org/viewvc/pkg-glibc/glibc-package/trunk/debian/patches/any/local-revert-bz13979.diff?revision=5553&view=markup"

      https://reviews.apache.org/r/54949/
      https://reviews.apache.org/r/54950/
      https://reviews.apache.org/r/54951/

      Attachments

        Activity

          People

            aaron.wood Aaron Wood
            aaron.wood Aaron Wood
            Michael Park Michael Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: