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
i tried compiling inside ubuntu 22.04 and got this, i've already installed libssl-dev etc and lsquic and boringssl and consulted with chatgpt4.
how to resolve?
WITH_QUIC=1 WITH_BORINGSSL=1 make
make -C uSockets
make[1]: Entering directory '/usr/local/src/uWebSockets/uSockets'
rm -f .o
cc -flto -Iboringssl/include -pthread -DLIBUS_USE_OPENSSL -DLIBUS_USE_QUIC -pthread -std=c11 -Isrc -Ilsquic/include -O3 -c src/.c src/eventing/.c src/crypto/.c src/io_uring/*.c
src/crypto/openssl.c: In function 'create_ssl_context_from_options':
src/crypto/openssl.c:499:13: warning: 'PEM_read_DHparams' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
499 | dh_2048 = PEM_read_DHparams(paramfile, NULL, NULL, NULL);
| ^~~~~~~
In file included from /usr/include/openssl/ssl.h:36,
from src/crypto/openssl.c:34:
/usr/include/openssl/pem.h:469:1: note: declared here
469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
| ^~~~~~~~~~~~~~~~~~~
src/crypto/openssl.c:512:9: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
512 | DH_free(dh_2048);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/ssl.h:31,
from src/crypto/openssl.c:34:
/usr/include/openssl/dh.h:204:28: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH dh);
| ^~~~~~~
g++ -std=c++17 -flto -O3 -c src/crypto/.cpp
lib.exe /out:uSockets.a *.o || ar rvs uSockets.a .o
/bin/sh: 1: lib.exe: not found
r - bsd.o
r - context.o
r - epoll_kqueue.o
r - gcd.o
r - io_context.o
r - io_loop.o
r - io_socket.o
r - libuv.o
r - loop.o
r - openssl.o
r - quic.o
r - sni_tree.o
r - socket.o
r - udp.o
make[1]: Leaving directory '/usr/local/src/uWebSockets/uSockets'
cc build.c -o build
./build examples
--> g++ -march=native -O3 -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -std=c++20 -Isrc -IuSockets/src -flto -DLIBUS_USE_QUIC examples/HelloWorldThreaded.cpp uSockets/.o -lz -pthread -lz -lm uSockets/lsquic/src/liblsquic/liblsquic.a -pthread uSockets/boringssl/build/ssl/libssl.a uSockets/boringssl/build/crypto/libcrypto.a -o HelloWorldThreaded
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
/usr/bin/ld: /tmp/cc7PDuxo.ltrans1.ltrans.o: in function us_create_socket_context.isra.0': <artificial>:(.text+0x1e6c): undefined reference to SSL_CTX_ctrl'
/usr/bin/ld: :(.text+0x1e80): undefined reference to SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x1e94): undefined reference to SSL_CTX_ctrl'
/usr/bin/ld: :(.text+0x1fb3): undefined reference to SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x20a0): undefined reference to SSL_CTX_callback_ctrl'
/usr/bin/ld: :(.text+0x20b7): undefined reference to SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x2110): undefined reference to SSL_CTX_ctrl'
collect2: error: ld returned 1 exit status
make: *** [GNUmakefile:7: examples] Error 255
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i tried compiling inside ubuntu 22.04 and got this, i've already installed libssl-dev etc and lsquic and boringssl and consulted with chatgpt4.
how to resolve?
WITH_QUIC=1 WITH_BORINGSSL=1 make
make -C uSockets
make[1]: Entering directory '/usr/local/src/uWebSockets/uSockets'
rm -f .o
cc -flto -Iboringssl/include -pthread -DLIBUS_USE_OPENSSL -DLIBUS_USE_QUIC -pthread -std=c11 -Isrc -Ilsquic/include -O3 -c src/.c src/eventing/.c src/crypto/.c src/io_uring/*.c
src/crypto/openssl.c: In function 'create_ssl_context_from_options':
src/crypto/openssl.c:499:13: warning: 'PEM_read_DHparams' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
499 | dh_2048 = PEM_read_DHparams(paramfile, NULL, NULL, NULL);
| ^~~~~~~
In file included from /usr/include/openssl/ssl.h:36,
from src/crypto/openssl.c:34:
/usr/include/openssl/pem.h:469:1: note: declared here
469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
| ^~~~~~~~~~~~~~~~~~~
src/crypto/openssl.c:512:9: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
512 | DH_free(dh_2048);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/ssl.h:31,
from src/crypto/openssl.c:34:
/usr/include/openssl/dh.h:204:28: note: declared here
204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH dh);
| ^~~~~~~
g++ -std=c++17 -flto -O3 -c src/crypto/.cpp
lib.exe /out:uSockets.a *.o || ar rvs uSockets.a .o
/bin/sh: 1: lib.exe: not found
r - bsd.o
r - context.o
r - epoll_kqueue.o
r - gcd.o
r - io_context.o
r - io_loop.o
r - io_socket.o
r - libuv.o
r - loop.o
r - openssl.o
r - quic.o
r - sni_tree.o
r - socket.o
r - udp.o
make[1]: Leaving directory '/usr/local/src/uWebSockets/uSockets'
cc build.c -o build
./build examples
--> g++ -march=native -O3 -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -std=c++20 -Isrc -IuSockets/src -flto -DLIBUS_USE_QUIC examples/HelloWorldThreaded.cpp uSockets/.o -lz -pthread -lz -lm uSockets/lsquic/src/liblsquic/liblsquic.a -pthread uSockets/boringssl/build/ssl/libssl.a uSockets/boringssl/build/crypto/libcrypto.a -o HelloWorldThreaded
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
/usr/bin/ld: /tmp/cc7PDuxo.ltrans1.ltrans.o: in function
us_create_socket_context.isra.0': <artificial>:(.text+0x1e6c): undefined reference to
SSL_CTX_ctrl'/usr/bin/ld: :(.text+0x1e80): undefined reference to
SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x1e94): undefined reference to
SSL_CTX_ctrl'/usr/bin/ld: :(.text+0x1fb3): undefined reference to
SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x20a0): undefined reference to
SSL_CTX_callback_ctrl'/usr/bin/ld: :(.text+0x20b7): undefined reference to
SSL_CTX_ctrl' /usr/bin/ld: <artificial>:(.text+0x2110): undefined reference to
SSL_CTX_ctrl'collect2: error: ld returned 1 exit status
make: *** [GNUmakefile:7: examples] Error 255
Beta Was this translation helpful? Give feedback.
All reactions