You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build fails with Ubuntu 24.04 based system, some problem (too old) with the websocket library.
[ 80%] Linking C static library lib/libevent.a
[ 80%] Built target event
[ 80%] Building C object lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/lib/core/alloc.c.o
[ 81%] Building C object lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/lib/core/context.c.o
[ 81%] Building C object lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/lib/core/dummy-callback.c.o
[ 81%] Building C object lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/lib/core/libwebsockets.c.o
/home/runner/work/edge-proxy/edge-proxy/mbed-edge/lib/libwebsockets/libwebsockets/lib/core/libwebsockets.c:3149:1: error: conflicting types for ‘lws_tokenize’ due to enum/integer mismatch; have ‘int(struct lws_tokenize *)’ [-Werror=enum-int-mismatch]
3149 | lws_tokenize(struct lws_tokenize *ts)
| ^~~~~~~~~~~~
In file included from /home/runner/work/edge-proxy/edge-proxy/mbed-edge/lib/libwebsockets/libwebsockets/include/libwebsockets.h:418,
from /home/runner/work/edge-proxy/edge-proxy/mbed-edge/lib/libwebsockets/libwebsockets/lib/core/private.h:135,
from /home/runner/work/edge-proxy/edge-proxy/mbed-edge/lib/libwebsockets/libwebsockets/lib/core/libwebsockets.c:22:
/home/runner/work/edge-proxy/edge-proxy/mbed-edge/lib/libwebsockets/libwebsockets/include/libwebsockets/lws-tokenize.h:123:1: note: previous declaration of ‘lws_tokenize’ with type ‘lws_tokenize_elem(struct lws_tokenize *)’
123 | lws_tokenize(struct lws_tokenize *ts);
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/build.make:121: lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/lib/core/libwebsockets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1686: lib/libwebsockets/libwebsockets/CMakeFiles/websockets.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
The text was updated successfully, but these errors were encountered:
Build fails with Ubuntu 24.04 based system, some problem (too old) with the websocket library.
The text was updated successfully, but these errors were encountered: