[stas@bsdvm ~/doom/odasrc/release]$ cmake -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is Clang 3.3.0 -- The CXX compiler identification is Clang 3.3.0 -- 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 -- Check for working CXX compiler: /usr/bin/CC -- Check for working CXX compiler: /usr/bin/CC -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Textscreen will be statically linked. -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL: /usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.so;-lpthread -- Found SDL_mixer: /usr/local/lib/libSDL_mixer.so (found version "1.2.12") -- Could NOT find PortMidi (missing: PORTMIDI_INCLUDE_DIR PORTMIDI_LIBRARIES) CMake Warning at client/CMakeLists.txt:71 (message): PortMidi not found, client will be built without PortMidi support. -- Found wxWidgets: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/stas/doom/odasrc/release [stas@bsdvm ~/doom/odasrc/release]$ make Scanning dependencies of target upnpc-static [ 0%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o [ 0%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/miniupnpc.c.o [ 1%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/minixml.c.o [ 1%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/minisoap.c.o /home/stas/doom/odasrc/libminiupnpc/minisoap.c:95:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned int, const char *, ...)' snprintf(portstr, sizeof(portstr), ":%hu", port); ^ /home/stas/doom/odasrc/libminiupnpc/minisoap.c:95:3: note: please include the header or explicitly provide a declaration for 'snprintf' 1 warning generated. [ 1%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/miniwget.c.o /home/stas/doom/odasrc/libminiupnpc/miniwget.c:145:13: warning: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned int)' if(0==strncasecmp(header_buf+linest... ^ /home/stas/doom/odasrc/libminiupnpc/miniwget.c:145:13: note: please include the header or explicitly provide a declaration for 'strncasecmp' /home/stas/doom/odasrc/libminiupnpc/miniwget.c:362:8: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned int, const char *, ...)' len = snprintf(buf, sizeof(buf), ^ /home/stas/doom/odasrc/libminiupnpc/miniwget.c:362:8: note: please include the header or explicitly provide a declaration for 'snprintf' 2 warnings generated. [ 2%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/upnpc.c.o /home/stas/doom/odasrc/libminiupnpc/upnpc.c:130:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned int, const char *, ...)' snprintf(index, 6, "%d", i); ^ /home/stas/doom/odasrc/libminiupnpc/upnpc.c:130:3: note: please include the header or explicitly provide a declaration for 'snprintf' 1 warning generated. [ 2%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/upnpcommands.c.o /home/stas/doom/odasrc/libminiupnpc/upnpcommands.c:18:32: warning: implicit declaration of function 'strtoull' is invalid in C99 [-Wimplicit-function-declaration] return s ? ((UNSIGNED_INTEGER)STRTOUI(s, NULL, 0)) : 0; ^ /home/stas/doom/odasrc/libminiupnpc/miniupnpctypes.h:12:17: note: expanded from macro 'STRTOUI' #define STRTOUI strtoull ^ 1 warning generated. [ 3%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/upnpreplyparse.c.o [ 3%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/upnperrors.c.o [ 3%] Building C object libminiupnpc/CMakeFiles/upnpc-static.dir/connecthostport.c.o /home/stas/doom/odasrc/libminiupnpc/connecthostport.c:147:2: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned int, const char *, ...)' snprintf(port_str, sizeof(port_str), "%hu", port); ^ /home/stas/doom/odasrc/libminiupnpc/connecthostport.c:147:2: note: please include the header or explicitly provide a declaration for 'snprintf' /home/stas/doom/odasrc/libminiupnpc/connecthostport.c:183:9: error: incomplete definition of type 'struct sockaddr_in6' addr6->sin6_scope_id = scope_id; ~~~~~^ /home/stas/doom/odasrc/libminiupnpc/connecthostport.c:182:11: note: forward declaration of 'struct sockaddr_in6' struct sockaddr_in6 * addr6 = (struct sockaddr_in6 *)p->ai_addr; ^ 1 warning and 1 error generated. *** Error code 1 Stop. make[2]: stopped in /usr/home/stas/doom/odasrc/release *** Error code 1 Stop. make[1]: stopped in /usr/home/stas/doom/odasrc/release *** Error code 1 Stop. make: stopped in /usr/home/stas/doom/odasrc/release