Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ubuntu 24.04 compilation failing #113

Open
JanneKiiskila opened this issue Feb 7, 2025 · 0 comments
Open

Ubuntu 24.04 compilation failing #113

JanneKiiskila opened this issue Feb 7, 2025 · 0 comments

Comments

@JanneKiiskila
Copy link
Collaborator

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant