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

Build Failure on Mac OSX with undefined link

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.0
    • 0.20.0
    • build
    • None
    • Mac OSX

    Description

      Building from master after the latest commits. There is a linking error end with this output:
      ./mesos-tests
      Source directory: /Users/kensipe/projects/mesos/mesos
      Build directory: /Users/kensipe/projects/mesos/mesos/build
      dyld: lazy symbol binding failed: Symbol not found: _ZN7cgroups9hierarchyERKNSt3_112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
      Referenced from: /Users/kensipe/projects/mesos/mesos/build/src/.libs/libmesos-0.20.0.dylib
      Expected in: flat namespace

      dyld: Symbol not found: _ZN7cgroups9hierarchyERKNSt3_112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
      Referenced from: /Users/kensipe/projects/mesos/mesos/build/src/.libs/libmesos-0.20.0.dylib
      Expected in: flat namespace

      make[3]: *** [check-local] Trace/BPT trap: 5
      make[2]: *** [check-am] Error 2
      make[1]: *** [check] Error 2

      debugging shows:
      echo "_ZN7cgroups9hierarchyERKNSt3_112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE"|c++filt
      cgroups::hierarchy(std::_1::basic_string<char, std::1::char_traits<char>, std::_1::allocator<char> > const&)

      and nm indicates that it is undefined:
      nm /Users/kensipe/projects/mesos/mesos/build/src/.libs/libmesos-0.20.0.dylib|grep _ZN7cgroups9hierarchyERKNSt3_112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
      U _ZN7cgroups9hierarchyERKNSt3_112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE

      It appears that there is a #ifdef __linux directive missing around some cgroup code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kensipe Ken Sipe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: