Build errors on MacOSX 10.9 and XCode 6

Nov 11, 2014 at 11:05 AM
Edited Nov 11, 2014 at 11:05 AM
Hi all,

i have problems with the installation on my Mac.

After following these installation instructions:
https://casablanca.codeplex.com/wikipage?title=Setup%20and%20Build%20on%20iOS&version=16

i got several errors when building casablanca in the last step.
...
the following build commands failed:
    CompileC /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Rele/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/src/../include -I/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/src/pch -I/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/../Build_iOS/openssl/include -I/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/DerivedSources/armv7 -I/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/Binaries/Release -fvisibility=hidden -fvisibility-inlines-hidden -stdlib=libc++ -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration -std=c++11 -fno-strict-aliasing -Wall -Wextra -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wno-overloaded-ase-iphoneos/cpprest.build/Objects-normal/armv7s/ws_client.o src/websockets/client/ws_client.cpp normal armv7s c++ com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_msg.o src/http/common/http_msg.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compivirtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-reorder -Werror -pedantic -MMD -MT dependencies -MF /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_msg_listen.d --serialize-diagnostics /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_msg_listen.dia -c /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/src/http/listener/http_msg_listen.cpp -o /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_msg_listen.o

ler
    CompileC /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_linux_server.o src/http/listener/http_linux_server.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_listener.o src/http/listener/http_listener.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Build_iOS/build.ios/build.arm/src/casablanca.build/Release-iphoneos/cpprest.build/Objects-normal/armv7/http_msg_listen.o src/http/listener/http_msg_listen.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(5 failures)
make[2]: *** [CMakeFiles/arm] Error 65
make[1]: *** [CMakeFiles/arm.dir/all] Error 2
make: *** [all] Error 2
could somebody help me out?

Cheers
Coordinator
Nov 11, 2014 at 4:33 PM
Hi FreakyFlu,

What are the actual errors you are getting? The output portions you pasted doesn't actually contain any information about the errors.

Thanks,
Steve
Nov 11, 2014 at 5:02 PM
Edited Nov 11, 2014 at 5:03 PM
I think these must be the errors. Sorry i am new to cpp.
n file included from /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/frame.hpp:35:
/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/common/network.hpp:53:17: error: expected ')'
inline uint64_t htonll(uint64_t src) {

...
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/arm/endian.h:75:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)

...
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_endian.h:130:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.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 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/arm/endian.h:75:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)

...
In file included from /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/message_buffer/message.hpp:32:
/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/frame.hpp:270:30: error: unexpected parenthesis after '::'
        temp64.i = lib::net::htonll(payload_size);
...
In file included from /Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/message_buffer/message.hpp:32:
/Users/dennismenke/Work/workspace/sdk/cpp/casablanca/Release/libs/websocketpp/websocketpp/frame.hpp:588:22: error: unexpected parenthesis after '::'
    return lib::net::ntohll(temp64.i);

...
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_endian.h:130:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
5 errors generated.
Coordinator
Nov 11, 2014 at 5:25 PM
Hi,

I believe you're having the same problem as https://casablanca.codeplex.com/workitem/310

roschuma
Nov 12, 2014 at 7:22 AM
Hi Roschuma,

building with the development branch made it for me!

Thanks