[ https://issues.apache.org/jira/browse/MESOS-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till Toenshoff closed MESOS-1990. --------------------------------- Resolution: Duplicate You will have to apply https://reviews.apache.org/r/26571 manually to build mesos 0.20 on yosemite. > Unable to build on OS X Yosemite > -------------------------------- > > Key: MESOS-1990 > URL: https://issues.apache.org/jira/browse/MESOS-1990 > Project: Mesos > Issue Type: Bug > Components: build > Affects Versions: 0.20.0 > Reporter: Gabriel Ki > > ./include/recordio.h from zookeeper has conflict. Also reported in > ZOOKEEPER-2049. > I got the following errors when I build: > {noformat} > In file included from src/zookeeper.c:27: > In file included from ./include/zookeeper.h:34: > ./include/recordio.h:76:9: error: expected ')' > int64_t htonll(int64_t v); > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/_OSByteOrder.h:78:30: > note: expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x)) > ^ > ./include/recordio.h:76:9: note: to match this '(' > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/_OSByteOrder.h:78:5: > note: expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x)) > ^ > In file included from src/zookeeper.c:27: > In file included from ./include/zookeeper.h:34: > ./include/recordio.h:76:9: error: conflicting types for '__builtin_constant_p' > int64_t htonll(int64_t v); > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x)) > ^ > ./include/recordio.h:76:9: note: '__builtin_constant_p' is a builtin with > type 'int ()' > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x)) > ^ > 2 errors generated. > {noformat} > My compiler: > {quote} > $ g++ --version > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1 > Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) > Target: x86_64-apple-darwin14.0.0 > Thread model: posix > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)