[Libwebsockets] [libwebsockets] WIn 7 - Visual Studio 2010 - 32 bits - Build failed (#41)

"Andy Green (林安廸)" andy at warmcat.com
Sat Feb 15 09:42:21 CET 2014


On 22/01/14 23:26, the mail apparently from Adrien Carbonne included:
> Hello,
>
> CMake generated a VS2010 solution for me, however it does not build fine:
> (I just kept the errors, not the warnings)
>
> |1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
> 2>------ Build started: Project: ZLIB, Configuration: Release Win32 ------
> 3>------ Skipped Build: Project: dist, Configuration: Release Win32 ------
> 4>------ Build started: Project: websockets, Configuration: Release Win32 ------
> 5>------ Build started: Project: websockets_shared, Configuration: Release Win32 ------
> 4>..\lib\libwebsockets.c(2107): error C2065: 'SIGUSR2' : undeclared identifier
> 4>..\lib\libwebsockets.c(2109): error C2065: 'sigset_t' : undeclared identifier
> 4>..\lib\libwebsockets.c(2109): error C2146: syntax error : missing ';' before identifier 'mask'
> 4>..\lib\libwebsockets.c(2109): error C2065: 'mask' : undeclared identifier
> 4>..\lib\libwebsockets.c(2110): error C2065: 'mask' : undeclared identifier
> 4>..\lib\libwebsockets.c(2111): error C2065: 'mask' : undeclared identifier
> 4>..\lib\libwebsockets.c(2111): error C2065: 'SIGUSR2' : undeclared identifier
> 4>..\lib\libwebsockets.c(2113): error C2065: 'SIG_BLOCK' : undeclared identifier
> 4>..\lib\libwebsockets.c(2113): error C2065: 'mask' : undeclared identifier
> 5>..\lib\libwebsockets.c(2107): error C2065: 'SIGUSR2' : undeclared identifier
> 5>..\lib\libwebsockets.c(2109): error C2065: 'sigset_t' : undeclared identifier
> 5>..\lib\libwebsockets.c(2109): error C2146: syntax error : missing ';' before identifier 'mask'
> 5>..\lib\libwebsockets.c(2109): error C2065: 'mask' : undeclared identifier
> 5>..\lib\libwebsockets.c(2110): error C2065: 'mask' : undeclared identifier
> 5>..\lib\libwebsockets.c(2111): warning C4013: 'sigaddset' undefined; assuming extern returning int
> 5>..\lib\libwebsockets.c(2111): error C2065: 'mask' : undeclared identifier
> 5>..\lib\libwebsockets.c(2111): error C2065: 'SIGUSR2' : undeclared identifier
> 5>..\lib\libwebsockets.c(2113): error C2065: 'SIG_BLOCK' : undeclared identifier
> 5>..\lib\libwebsockets.c(2113): error C2065: 'mask' : undeclared identifier
> |
>
> What do I do wrong? I'm not very familiar with SIGUSR2 for instance...
> isn't it unix-only?

It seems recent updates might fix this.

I only build on Linux, Windows is entirely contributed (and suffers 
usually small breakage regularly because of that).

-Andy

>> Reply to this email directly or view it on GitHub
> <https://github.com/warmcat/libwebsockets/issues/41>.
>




More information about the Libwebsockets mailing list