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

Compile error with recent glibc

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.3, 1.3.0
    • Component/s: None
    • Labels:
    • Sprint:
      Mesosphere Sprint 54
    • Story Points:
      1

      Description

      ../../mesos/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp:152:13: error: In the GNU C Library, "major" is defined
       by <sys/sysmacros.h>. For historical compatibility, it is
       currently defined by <sys/types.h> as well, but we plan to
       remove this soon. To use "major", include <sys/sysmacros.h>
       directly. If you did not intend to use a system-defined macro
       "major", you should undefine it after including <sys/types.h>. [-Werror]
         entry.selector.major = major(device.get());
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      Observed on recent Arch Linux, GCC 6.3.1, glibc 2.25-1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                neilc Neil Conway
                Reporter:
                neilc Neil Conway
                Shepherd:
                Anand Mazumdar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: