[Libwebsockets] Failure to compile lws + libuv on MAC

Andy Green andy at warmcat.com
Thu Jul 28 12:41:47 CEST 2016


On Thu, 2016-07-28 at 12:49 +0300, Meir Yanovich wrote:
> Hello 
> i try to compile lws + libuv on MAC but im getting compilation
> errors 
> the libuv compiled just fine : 
> meirs-Mac-mini:lib meiryanovich$ file libuv.1.dylib 
> libuv.1.dylib: Mach-O 64-bit dynamically linked shared library x86_64
> using cmake 3.1 
> OSX el capitan 10.11.4 (15E65)
> cc --version
> Apple LLVM version 7.3.0 (clang-703.0.31)
> Target: x86_64-apple-darwin15.4.0
> Thread model: posix
> The command i run with cmake :
> cmake .. -DLWS_WITH_LIBUV=ON 

I don't have any problem, this is with current master
2f6ef308160fb8ea7885b8a236c0307b61ce4eef

[agreen at build libwebsockets]$ mkdir build-t
[agreen at build libwebsockets]$ cd build-t
[agreen at build build-t]$ cmake .. -DLWS_WITH_LIBUV=ON
-- The C compiler identification is GNU 6.1.1
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_TOOLCHAIN_FILE=''
-- Found Git: /usr/bin/git  
Git commit hash: agreen at build-v2.0.0-118-g2f6ef3081
-- Performing Test LWS_HAVE_inline
-- Performing Test LWS_HAVE_inline - Success
-- Performing Test LWS_HAVE___inline__
-- Performing Test LWS_HAVE___inline__ - Success
-- Performing Test LWS_HAVE___inline
-- Performing Test LWS_HAVE___inline - Success
-- Looking for bzero
-- Looking for bzero - found
-- Looking for fork
-- Looking for fork - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for memset
-- Looking for memset - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for execvpe
-- Looking for execvpe - found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for _snprintf
-- Looking for _snprintf - not found
-- Looking for _vsnprintf
-- Looking for _vsnprintf - not found
-- Looking for getloadavg
-- Looking for getloadavg - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for in6addr.h
-- Looking for in6addr.h - not found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/prctl.h
-- Looking for sys/prctl.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test LWS_HAVE_VISIBILITY
-- Performing Test LWS_HAVE_VISIBILITY - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
zlib include dirs: /usr/include
zlib libraries: /usr/lib64/libz.so
Compiling with SSL support
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found
version "1.0.2h") 
OpenSSL include dir: /usr/include
OpenSSL libraries: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
-- Looking for openssl/ecdh.h
-- Looking for openssl/ecdh.h - found
libuv include dir: /usr/include
libuv libraries: /usr/lib64/libuv.so
-- Looking for SSL_CTX_set1_param
-- Looking for SSL_CTX_set1_param - found
-- Looking for X509_VERIFY_PARAM_set1_host
-- Looking for X509_VERIFY_PARAM_set1_host - found
Searching for OpenSSL executable and dlls
OpenSSL executable: /usr/bin/openssl
Generating SSL Certificates for the test-server...
SUCCESSFULLY generated SSL certificate
-- Looking for RPMTools... - found rpmuild is /usr/bin/rpmbuild
-- RPMTools:: Using RPM_ROOTDIR=/projects/libwebsockets/build-t/RPM
-- Simple copy spec file <libwebsockets.spec> -->
</projects/libwebsockets/build-t/RPM/SPECS/libwebsockets.spec>
---------------------------------------------------------------------
  Settings:  (For more help do cmake -LH <srcpath>)
---------------------------------------------------------------------
 LWS_WITH_STATIC = ON
 LWS_WITH_SHARED = ON
 LWS_WITH_SSL = ON (SSL Support)
 LWS_SSL_CLIENT_USE_OS_CA_CERTS = 1
 LWS_USE_WOLFSSL = OFF (wolfSSL/CyaSSL replacement for OpenSSL)
 LWS_WITHOUT_BUILTIN_SHA1 = OFF
 LWS_WITHOUT_BUILTIN_GETIFADDRS = OFF
 LWS_WITHOUT_CLIENT = OFF
 LWS_WITHOUT_SERVER = OFF
 LWS_LINK_TESTAPPS_DYNAMIC = OFF
 LWS_WITHOUT_TESTAPPS = OFF
 LWS_WITHOUT_TEST_SERVER = OFF
 LWS_WITHOUT_TEST_SERVER_EXTPOLL = OFF
 LWS_WITHOUT_TEST_PING = OFF
 LWS_WITHOUT_TEST_ECHO = OFF
 LWS_WITHOUT_TEST_CLIENT = OFF
 LWS_WITHOUT_TEST_FRAGGLE = OFF
 LWS_WITHOUT_EXTENSIONS = OFF
 LWS_WITH_LATENCY = OFF
 LWS_WITHOUT_DAEMONIZE = ON
 LWS_USE_LIBEV = 
 LWS_USE_LIBUV = 1
 LWS_IPV6 = OFF
 LWS_UNIX_SOCK = OFF
 LWS_WITH_HTTP2 = OFF
 LWS_MBED3 = OFF
 LWS_SSL_SERVER_WITH_ECDH_CERT = OFF
 LWS_MAX_SMP = 32
 LWS_WITH_CGI = OFF
 LWS_HAVE_OPENSSL_ECDH_H = 1
 LWS_HAVE_SSL_CTX_set1_param = 1
 LWS_WITH_HTTP_PROXY = OFF
 LIBHUBBUB_LIBRARIES = 
 PLUGINS = 
 LWS_WITH_ACCESS_LOG = OFF
 LWS_WITH_SERVER_STATUS = OFF
 LWS_WITH_LEJP = OFF
 LWS_WITH_LEJP_CONF = OFF
 LWS_WITH_SMTP = OFF
 LWS_WITH_GENERIC_SESSIONS = OFF
---------------------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /projects/libwebsockets/build-t
[agreen at build build-t]$ make
Scanning dependencies of target websockets
[  1%] Building C object CMakeFiles/websockets.dir/lib/base64-
decode.c.o
[  2%] Building C object CMakeFiles/websockets.dir/lib/handshake.c.o
[  3%] Building C object
CMakeFiles/websockets.dir/lib/libwebsockets.c.o
[  4%] Building C object CMakeFiles/websockets.dir/lib/service.c.o
[  5%] Building C object CMakeFiles/websockets.dir/lib/pollfd.c.o
[  6%] Building C object CMakeFiles/websockets.dir/lib/output.c.o
[  8%] Building C object CMakeFiles/websockets.dir/lib/parsers.c.o
[  9%] Building C object CMakeFiles/websockets.dir/lib/context.c.o
[ 10%] Building C object CMakeFiles/websockets.dir/lib/alloc.c.o
[ 11%] Building C object CMakeFiles/websockets.dir/lib/header.c.o
[ 12%] Building C object CMakeFiles/websockets.dir/lib/client.c.o
[ 13%] Building C object CMakeFiles/websockets.dir/lib/client-
handshake.c.o
[ 15%] Building C object CMakeFiles/websockets.dir/lib/client-
parser.c.o
[ 16%] Building C object CMakeFiles/websockets.dir/lib/ssl.c.o
[ 17%] Building C object CMakeFiles/websockets.dir/lib/ssl-server.c.o
[ 18%] Building C object CMakeFiles/websockets.dir/lib/ssl-client.c.o
[ 19%] Building C object CMakeFiles/websockets.dir/lib/sha-1.c.o
[ 20%] Building C object CMakeFiles/websockets.dir/lib/lws-plat-
unix.c.o
[ 22%] Building C object CMakeFiles/websockets.dir/lib/server.c.o
[ 23%] Building C object CMakeFiles/websockets.dir/lib/server-
handshake.c.o
[ 24%] Building C object CMakeFiles/websockets.dir/lib/extension.c.o
[ 25%] Building C object CMakeFiles/websockets.dir/lib/extension-
permessage-deflate.c.o
[ 26%] Building C object CMakeFiles/websockets.dir/lib/libuv.c.o
[ 27%] Linking C static library lib/libwebsockets.a
[ 27%] Built target websockets
Scanning dependencies of target test-fuzxy
[ 29%] Building C object CMakeFiles/test-fuzxy.dir/test-
server/fuzxy.c.o
[ 30%] Linking C executable bin/libwebsockets-test-fuzxy
[ 30%] Built target test-fuzxy
Scanning dependencies of target test-server
[ 31%] Building C object CMakeFiles/test-server.dir/test-server/test-
server.c.o
[ 32%] Building C object CMakeFiles/test-server.dir/test-server/test-
server-http.c.o
[ 33%] Building C object CMakeFiles/test-server.dir/test-server/test-
server-dumb-increment.c.o
[ 34%] Building C object CMakeFiles/test-server.dir/test-server/test-
server-mirror.c.o
[ 36%] Building C object CMakeFiles/test-server.dir/test-server/test-
server-status.c.o
[ 37%] Building C object CMakeFiles/test-server.dir/test-server/test-
server-echogen.c.o
[ 38%] Linking C executable bin/libwebsockets-test-server
[ 38%] Built target test-server
Scanning dependencies of target websockets_shared
[ 39%] Building C object CMakeFiles/websockets_shared.dir/lib/base64-
decode.c.o
[ 40%] Building C object
CMakeFiles/websockets_shared.dir/lib/handshake.c.o
[ 41%] Building C object
CMakeFiles/websockets_shared.dir/lib/libwebsockets.c.o
[ 43%] Building C object
CMakeFiles/websockets_shared.dir/lib/service.c.o
[ 44%] Building C object
CMakeFiles/websockets_shared.dir/lib/pollfd.c.o
[ 45%] Building C object
CMakeFiles/websockets_shared.dir/lib/output.c.o
[ 46%] Building C object
CMakeFiles/websockets_shared.dir/lib/parsers.c.o
[ 47%] Building C object
CMakeFiles/websockets_shared.dir/lib/context.c.o
[ 48%] Building C object CMakeFiles/websockets_shared.dir/lib/alloc.c.o
[ 50%] Building C object
CMakeFiles/websockets_shared.dir/lib/header.c.o
[ 51%] Building C object
CMakeFiles/websockets_shared.dir/lib/client.c.o
[ 52%] Building C object CMakeFiles/websockets_shared.dir/lib/client-
handshake.c.o
[ 53%] Building C object CMakeFiles/websockets_shared.dir/lib/client-
parser.c.o
[ 54%] Building C object CMakeFiles/websockets_shared.dir/lib/ssl.c.o
[ 55%] Building C object CMakeFiles/websockets_shared.dir/lib/ssl-
server.c.o
[ 56%] Building C object CMakeFiles/websockets_shared.dir/lib/ssl-
client.c.o
[ 58%] Building C object CMakeFiles/websockets_shared.dir/lib/sha-1.c.o
[ 59%] Building C object CMakeFiles/websockets_shared.dir/lib/lws-plat-
unix.c.o
[ 60%] Building C object
CMakeFiles/websockets_shared.dir/lib/server.c.o
[ 61%] Building C object CMakeFiles/websockets_shared.dir/lib/server-
handshake.c.o
[ 62%] Building C object
CMakeFiles/websockets_shared.dir/lib/extension.c.o
[ 63%] Building C object
CMakeFiles/websockets_shared.dir/lib/extension-permessage-deflate.c.o
[ 65%] Building C object CMakeFiles/websockets_shared.dir/lib/libuv.c.o
[ 66%] Linking C shared library lib/libwebsockets.so
[ 66%] Built target websockets_shared
Scanning dependencies of target test-fraggle
[ 67%] Building C object CMakeFiles/test-fraggle.dir/test-server/test-
fraggle.c.o
[ 68%] Linking C executable bin/libwebsockets-test-fraggle
[ 68%] Built target test-fraggle
Scanning dependencies of target test-server-libuv
[ 69%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-libuv.c.o
[ 70%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-http.c.o
[ 72%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-dumb-increment.c.o
[ 73%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-mirror.c.o
[ 74%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-status.c.o
[ 75%] Building C object CMakeFiles/test-server-libuv.dir/test-
server/test-server-echogen.c.o
[ 76%] Linking C executable bin/libwebsockets-test-server-libuv
[ 76%] Built target test-server-libuv
Scanning dependencies of target test-echo
[ 77%] Building C object CMakeFiles/test-echo.dir/test-server/test-
echo.c.o
[ 79%] Linking C executable bin/libwebsockets-test-echo
[ 79%] Built target test-echo
Scanning dependencies of target test-server-extpoll
[ 80%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server.c.o
[ 81%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server-http.c.o
[ 82%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server-dumb-increment.c.o
[ 83%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server-mirror.c.o
[ 84%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server-status.c.o
[ 86%] Building C object CMakeFiles/test-server-extpoll.dir/test-
server/test-server-echogen.c.o
[ 87%] Linking C executable bin/libwebsockets-test-server-extpoll
[ 87%] Built target test-server-extpoll
Scanning dependencies of target test-ping
[ 88%] Building C object CMakeFiles/test-ping.dir/test-server/test-
ping.c.o
[ 89%] Linking C executable bin/libwebsockets-test-ping
[ 89%] Built target test-ping
Scanning dependencies of target test-server-pthreads
[ 90%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-pthreads.c.o
[ 91%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-http.c.o
[ 93%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-dumb-increment.c.o
[ 94%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-mirror.c.o
[ 95%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-status.c.o
[ 96%] Building C object CMakeFiles/test-server-pthreads.dir/test-
server/test-server-echogen.c.o
[ 97%] Linking C executable bin/libwebsockets-test-server-pthreads
[ 97%] Built target test-server-pthreads
Scanning dependencies of target test-client
[ 98%] Building C object CMakeFiles/test-client.dir/test-server/test-
client.c.o
[100%] Linking C executable bin/libwebsockets-test-client
[100%] Built target test-client

Travis + Appveyor also build libuv variants and they have no problem
either with it, eg

https://travis-ci.org/warmcat/libwebsockets/builds/146828885

Particularly this build is current master, built on a mac, with libuv

https://travis-ci.org/warmcat/libwebsockets/jobs/146828887

and he's OK.


> -DLWS_LIBUV_LIBRARIES="/Users/meiryanovich/Documents/ws_game_server/l
> ibs/libuv/lib"
> -DLWS_LIBUV_INCLUDE_DIRS="/Users/meiryanovich/Documents/ws_game_serve
> r/libs/libuv/libuv-1.x/include" -DLIB_SUFFIX=64
> output :
> -- The C compiler identification is AppleClang 7.3.0.7030031
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- CMAKE_TOOLCHAIN_FILE=''
> -- Found Git: /usr/bin/git  
> fatal: Not a git repository (or any of the parent directories): .git
> Git commit hash: meiryanovich at meirs-Mac-mini.local-
> -- Performing Test LWS_HAVE_inline
> -- Performing Test LWS_HAVE_inline - Success
> -- Performing Test LWS_HAVE___inline__
> -- Performing Test LWS_HAVE___inline__ - Success
> -- Performing Test LWS_HAVE___inline
> -- Performing Test LWS_HAVE___inline - Success
> -- Looking for bzero
> -- Looking for bzero - found
> -- Looking for fork
> -- Looking for fork - found
> -- Looking for getenv
> -- Looking for getenv - found
> -- Looking for malloc
> -- Looking for malloc - found
> -- Looking for memset
> -- Looking for memset - found
> -- Looking for realloc
> -- Looking for realloc - found
> -- Looking for socket
> -- Looking for socket - found
> -- Looking for strerror
> -- Looking for strerror - found
> -- Looking for vfork
> -- Looking for vfork - found
> -- Looking for execvpe
> -- Looking for execvpe - not found
> -- Looking for getifaddrs
> -- Looking for getifaddrs - found
> -- Looking for snprintf
> -- Looking for snprintf - found
> -- Looking for _snprintf
> -- Looking for _snprintf - not found
> -- Looking for _vsnprintf
> -- Looking for _vsnprintf - not found
> -- Looking for getloadavg
> -- Looking for getloadavg - found
> -- Looking for dlfcn.h
> -- Looking for dlfcn.h - found
> -- Looking for fcntl.h
> -- Looking for fcntl.h - found
> -- Looking for in6addr.h
> -- Looking for in6addr.h - not found
> -- Looking for inttypes.h
> -- Looking for inttypes.h - found
> -- Looking for memory.h
> -- Looking for memory.h - found
> -- Looking for netinet/in.h
> -- Looking for netinet/in.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stdlib.h
> -- Looking for stdlib.h - found
> -- Looking for strings.h
> -- Looking for strings.h - found
> -- Looking for string.h
> -- Looking for string.h - found
> -- Looking for sys/prctl.h
> -- Looking for sys/prctl.h - not found
> -- Looking for sys/socket.h
> -- Looking for sys/socket.h - found
> -- Looking for sys/stat.h
> -- Looking for sys/stat.h - found
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for unistd.h
> -- Looking for unistd.h - found
> -- Looking for vfork.h
> -- Looking for vfork.h - not found
> -- Looking for zlib.h
> -- Looking for zlib.h - found
> -- Looking for 4 include files stdlib.h, ..., float.h
> -- Looking for 4 include files stdlib.h, ..., float.h - found
> -- Performing Test LWS_HAVE_VISIBILITY
> -- Performing Test LWS_HAVE_VISIBILITY - Success
> CMake Error at CMakeLists.txt:676 (if):
>   if given arguments:
> 
>     "UNIX" "||" "LWS_WITH_ESP8266"
> 
>   Unknown arguments specified
> 

Hum it's not creating an error here or at travis + appveyor.

1) Try a fresh build dir

2) CMake on Fedora is is 3.5.2, try updating your cmake.

3) Mailing list or github issue... pick one...

-Andy

> 
> 
> Error log :
> Determining if the function execvpe exists failed with the following
> output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec1280293769/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec1280293769.dir/build.make
> CMakeFiles/cmTryCompileExec1280293769.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec1280293769.dir/CheckFunctionExists.c.o
> /usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=execvpe
> -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec1280293769.dir/CheckFunctionExists.c.o  
> -c
> /usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/CheckFunctionExists
> .c
> Linking C executable cmTryCompileExec1280293769
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_link_script
> CMakeFiles/cmTryCompileExec1280293769.dir/link.txt --verbose=1
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=execvpe -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-
> headerpad_max_install_names
>  CMakeFiles/cmTryCompileExec1280293769.dir/CheckFunctionExists.c.o  -
> o cmTryCompileExec1280293769  
> Undefined symbols for architecture x86_64:
>   "_execvpe", referenced from:
>       _main in CheckFunctionExists.c.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[1]: *** [cmTryCompileExec1280293769] Error 1
> make: *** [cmTryCompileExec1280293769/fast] Error 2
> 
> 
> Determining if the function _snprintf exists failed with the
> following output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec149758955/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec149758955.dir/build.make
> CMakeFiles/cmTryCompileExec149758955.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec149758955.dir/CheckFunctionExists.c.o
> /usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_snprintf
> -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec149758955.dir/CheckFunctionExists.c.o   -c
> /usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/CheckFunctionExists
> .c
> Linking C executable cmTryCompileExec149758955
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_link_script
> CMakeFiles/cmTryCompileExec149758955.dir/link.txt --verbose=1
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_snprintf -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-
> headerpad_max_install_names
>  CMakeFiles/cmTryCompileExec149758955.dir/CheckFunctionExists.c.o  -o 
> cmTryCompileExec149758955  
> Undefined symbols for architecture x86_64:
>   "__snprintf", referenced from:
>       _main in CheckFunctionExists.c.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[1]: *** [cmTryCompileExec149758955] Error 1
> make: *** [cmTryCompileExec149758955/fast] Error 2
> 
> 
> Determining if the function _vsnprintf exists failed with the
> following output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec84506801/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec84506801.dir/build.make
> CMakeFiles/cmTryCompileExec84506801.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec84506801.dir/CheckFunctionExists.c.o
> /usr/bin/cc  -DKEYWORD=__inline -DCHECK_FUNCTION_EXISTS=_vsnprintf
> -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec84506801.dir/CheckFunctionExists.c.o   -c
> /usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/CheckFunctionExists
> .c
> Linking C executable cmTryCompileExec84506801
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_link_script
> CMakeFiles/cmTryCompileExec84506801.dir/link.txt --verbose=1
> /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=_vsnprintf -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-
> headerpad_max_install_names
>  CMakeFiles/cmTryCompileExec84506801.dir/CheckFunctionExists.c.o  -o
> cmTryCompileExec84506801  
> Undefined symbols for architecture x86_64:
>   "__vsnprintf", referenced from:
>       _main in CheckFunctionExists.c.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[1]: *** [cmTryCompileExec84506801] Error 1
> make: *** [cmTryCompileExec84506801/fast] Error 2
> 
> 
> Determining if the include file in6addr.h exists failed with the
> following output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec3126646753/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec3126646753.dir/build.make
> CMakeFiles/cmTryCompileExec3126646753.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec3126646753.dir/CheckIncludeFile.c.o
> /usr/bin/cc  -DKEYWORD=__inline -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec3126646753.dir/CheckIncludeFile.c.o   -c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10:
> fatal error: 'in6addr.h' file not found
> #include <in6addr.h>
>          ^
> 1 error generated.
> make[1]: ***
> [CMakeFiles/cmTryCompileExec3126646753.dir/CheckIncludeFile.c.o]
> Error 1
> make: *** [cmTryCompileExec3126646753/fast] Error 2
> 
> 
> Determining if the include file sys/prctl.h exists failed with the
> following output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec3534415985/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec3534415985.dir/build.make
> CMakeFiles/cmTryCompileExec3534415985.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec3534415985.dir/CheckIncludeFile.c.o
> /usr/bin/cc  -DKEYWORD=__inline -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec3534415985.dir/CheckIncludeFile.c.o   -c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10:
> fatal error: 'sys/prctl.h' file not found
> #include <sys/prctl.h>
>          ^
> 1 error generated.
> make[1]: ***
> [CMakeFiles/cmTryCompileExec3534415985.dir/CheckIncludeFile.c.o]
> Error 1
> make: *** [cmTryCompileExec3534415985/fast] Error 2
> 
> 
> Determining if the include file vfork.h exists failed with the
> following output:
> Change Dir:
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec2021582694/fast"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
> CMakeFiles/cmTryCompileExec2021582694.dir/build.make
> CMakeFiles/cmTryCompileExec2021582694.dir/build
> /usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_progress_report
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec2021582694.dir/CheckIncludeFile.c.o
> /usr/bin/cc  -DKEYWORD=__inline -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.11.sdk   -o
> CMakeFiles/cmTryCompileExec2021582694.dir/CheckIncludeFile.c.o   -c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
> /Users/meiryanovich/Documents/ws_game_server/libs/libwebsockets/libwe
> bsockets-master/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10:
> fatal error: 'vfork.h' file not found
> #include <vfork.h>
>          ^
> 1 error generated.
> make[1]: ***
> [CMakeFiles/cmTryCompileExec2021582694.dir/CheckIncludeFile.c.o]
> Error 1
> make: *** [cmTryCompileExec2021582694/fast] Error 2
> 
> 
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets



More information about the Libwebsockets mailing list