[Libwebsockets] packaging help

Jaco Kroon jaco at uls.co.za
Thu Nov 7 10:54:56 CET 2019


Hi Andy,

I've been tasked with version bumping the Gentoo install, and trying to
package 3.2.0.  I'm getting compile errors that seem to be internal to
libwebsockets.  Could be a misunderstanding of how things work.

You've posted some comments on the Gentoo bug tracker regarding
libwebsockets, and upstream stuff.  This seems to complicate things for
me at the moment.

My biggest issue right at the moment is this:

: && /usr/bin/cc -Wall -Wsign-compare -Wuninitialized -Werror
-fvisibility=hidden -Wundef  -Wtype-limits -Wignored-qualifiers  
-pthread  -rdynamic
CMakeFiles/test-server.dir/test-apps/test-server.c.o  -o
bin/libwebsockets-test-server  -Wl,-rpath,/tmp/libwebsockets-3.2.0/lib:
lib/libwebsockets.so.15 -lz -lssl -lcrypto -lev -lm && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E make_directory
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/libwebsockets-test-server.key.pem
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/libwebsockets-test-server.pem
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/favicon.ico
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/leaf.jpg
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/candide.zip
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/libwebsockets.org-logo.svg
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/http2.png
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/wss-over-h2.png
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/lws-common.js
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/test.html
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/test.css
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server && cd
/tmp/libwebsockets-3.2.0 && /usr/bin/cmake -E copy
/tmp/libwebsockets-3.2.0/test-apps/test.js
/tmp/libwebsockets-3.2.0/bin/../share/libwebsockets-test-server
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_error_to_string'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_parser_push'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_get_wildcard'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_parser_pop'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_construct'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_parse'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libwebsockets.so.15: undefined reference to `lejp_destruct'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

The original cmake configuration command was this:

cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLWS_IPV6=ON
-DLWS_LINK_TESTAPPS_DYNAMIC=ON -DLWS_WITH_HTTP2=ON -DLWS_WITH_STATIC=OFF
-DLWS_HAVE_LIBCAP=OFF -DLWS_WITH_LIBEV=ON -DLWS_WITH_LIBEVENT=OFF
-DLWS_WITH_LIBUV=OFF -DLWS_WITH_PEER_LIMITS=OFF -DLWS_WITH_SSL=ON
-DLWS_WITHOUT_CLIENT=ON -DLWS_WITHOUT_TEST_CLIENT=ON -DLWS_WITH_CGI=OFF
-DLWS_WITH_HTTP_PROXY=OFF -DLWS_WITH_ACCESS_LOG=OFF
-DLWS_WITH_SERVER_STATUS=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-DLWS_WITH_LEJP=OFF -DLWS_WITH_GENERIC_SESSIONS=OFF
-DLWS_WITH_SQLITE3=OFF -DLWS_WITH_SMTP=OFF -DLWS_WITH_SOCKS5=OFF
-DLWS_WITH_ZIP_FOPS=ON -DCMAKE_BUILD_TYPE=Gentoo

(Which I retrieved from the gentoo build logs, and just dropped most of
the path specs that builds in /var/tmp/portage ...

Would you be able (and willing) to assist please?


Kind Regards,
Jaco Kroon






More information about the Libwebsockets mailing list