[Libwebsockets] build from repo fails

Felipe Gasper felipe at felipegasper.com
Sun Jun 6 15:26:15 CEST 2021


	I’m trying to build from the upstream git, but I see this:

Scanning dependencies of target websockets_shared
[  1%] Building C object lib/CMakeFiles/websockets_shared.dir/plat/unix/unix-caps.c.o
In file included from /Users/felipe/code/libwebsockets/lib/plat/unix/unix-caps.c:28:
In file included from /Users/felipe/code/libwebsockets/lib/core/./private-lib-core.h:140:
In file included from /Users/felipe/code/libwebsockets/include/libwebsockets.h:643:
/Users/felipe/code/libwebsockets/include/libwebsockets/lws-genhash.h:85:18: error:
      field has incomplete type 'HMAC_CTX' (aka 'struct hmac_ctx_st')
        HMAC_CTX ctx;
/opt/local/include/openssl/ossl_typ.h:102:16: note: forward declaration of
      'struct hmac_ctx_st'
typedef struct hmac_ctx_st HMAC_CTX;
1 error generated.
make[2]: *** [lib/CMakeFiles/websockets_shared.dir/plat/unix/unix-caps.c.o] Error 1
make[1]: *** [lib/CMakeFiles/websockets_shared.dir/all] Error 2
make: *** [all] Error 2

My OpenSSL is OpenSSL 1.1.1k  (25 Mar 2021), and I’m on macOS Mojave.

	Is this something I could fix?


More information about the Libwebsockets mailing list