By continuing to browse this website or by clicking on the X, you consent to the use of cookies that enable us to collect site-visit statistics and offer you videos, share buttons, personalized ads, and a chat feature. Learn more and set cookie preferences X

FR EN ES PT
Browse forums 
Ankama Trackers
Score : 870

linux: libQtNetwork.so.4 and OpenSSL version 1.1 problem

By aeriea - MEMBER - September 13, 2018, 19:50:16

libQtNetwork.so.4 shipped with the Wakfu installer dynamically links `libssl.*`
Unfortunately it was compiled against OpenSSL 1.0 and crashes if `libssl.*` query results in loading of OpenSSL 1.1.

I. Symptoms
Installer crashes, ~/.local/share/data/Ankama/Wakfu/logs/transition*.log contains

[13/09 19:21:25.819]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve CRYPTO_num_locks
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve CRYPTO_set_id_callback
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve CRYPTO_set_locking_callback
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve sk_free
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve sk_num
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve sk_pop_free
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve sk_value
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve SSL_library_init
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve SSL_load_error_strings
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve SSLv23_client_method
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve SSLv23_server_method
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve X509_STORE_CTX_get_chain
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot resolve SSLeay
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function CRYPTO_num_locks
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function SSL_library_init
[13/09 19:21:25.820]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function SSLv23_client_method
[13/09 19:21:25.821]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function sk_num
.071]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function SSLv23_client_method
[13/09 19:21:10.071]{T000}WARNING           !!!! Qt Library !!!! L0   : QSslSocket: cannot call unresolved function sk_num


II. Workaround

1. install OpenSSL 1.0

fedora:
dnf install compat-openssl10

debian/ubuntu/mint:
apt-get install libssl1.0-dev


2. create a symlink in ./Wakfu/transition directory pointing to OpenSSL 1.0 library

libs in my system:

/usr/lib64/libssl3.so
/usr/lib64/libssl.a
/usr/lib64/libssl.so -> libssl.so.1.1.0h
/usr/lib64/libssl.so.10 -> libssl.so.1.0.2o
/usr/lib64/libssl.so.1.0.2o
/usr/lib64/libssl.so.1.1 -> libssl.so.1.1.0h
/usr/lib64/libssl.so.1.1.0h

therefore:

ln -s /usr/lib64/libssl.so.10 ~/Wakfu/transition/libssl.so

1 0
Respond to this thread