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.