[ https://issues.apache.org/jira/browse/MESOS-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085663#comment-14085663 ]
Niklas Quarfot Nielsen commented on MESOS-1670: ----------------------------------------------- Seems like commit 0bf53b48d22571311c55c699799f99f375c601d6 introduced the cgroups dependency - but shouldn't docker sources only be added to the linux build anyway? > Build Failure on Mac OSX with undefined link > --------------------------------------------- > > Key: MESOS-1670 > URL: https://issues.apache.org/jira/browse/MESOS-1670 > Project: Mesos > Issue Type: Bug > Components: build > Affects Versions: 0.20.0 > Environment: Mac OSX > Reporter: Ken Sipe > > 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. -- This message was sent by Atlassian JIRA (v6.2#6252)