Qt Creator 4.2 not starting anymore on my Debian



  • Hi,

    i just upgraded to Qt 5.7.1 and QtCreator 4.2 and now i get these errors:

    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks                                                                                                                                
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback                                                                                                                          
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback                                                                                                                     
    qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings                                                                                                                                
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup                                                                                                                          
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init                                                                                                                             
    qt.network.ssl: QSslSocket: cannot resolve sk_new_null                                                                                                                                     
    qt.network.ssl: QSslSocket: cannot resolve sk_push                                                                                                                                         
    qt.network.ssl: QSslSocket: cannot resolve sk_free                                                                                                                                         
    qt.network.ssl: QSslSocket: cannot resolve sk_num                                                                                                                                          
    qt.network.ssl: QSslSocket: cannot resolve sk_pop_free                                                                                                                                     
    qt.network.ssl: QSslSocket: cannot resolve sk_value                                                                                                                                        
    qt.network.ssl: QSslSocket: cannot resolve SSL_library_init                                                                                                                                
    qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
    qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
    qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    qt.network.ssl: QSslSocket: cannot resolve SSLeay
    qt.network.ssl: QSslSocket: cannot resolve SSLeay_version
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_num_locks
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
    qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot call unresolved function sk_num
    
    

    Any ideas?

    i reinstall latest openssl and libssl-dev which did not solve the problem

    Greetings



  • @Nando Try running ldd on your qt creator binary, to see where it thinks the SSL libraries should be located. That should tell you if you have the right version or perhaps if you are just missing a symlink or something (which is the usual culprit).

    Output should be something like this:

    [megatron] /opt/Qt/Tools/QtCreator/bin > ldd qtcreator
            linux-vdso.so.1 (0x00007ffffb95c000)
            libExtensionSystem.so.4 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libExtensionSystem.so.4 (0x00007fb883e8b000)
            libAggregation.so.4 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libAggregation.so.4 (0x00007fb883c86000)
            libUtils.so.4 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libUtils.so.4 (0x00007fb8838d7000)
            libQt5Widgets.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5 (0x00007fb883088000)
            libQt5Gui.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5 (0x00007fb8828e0000)
            libQt5Concurrent.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Concurrent.so.5 (0x00007fb8826da000)
            libQt5Network.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Network.so.5 (0x00007fb88237c000)
            libQt5Core.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5 (0x00007fb881c61000)
            libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fb8819e9000)
            libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fb8817cc000)
            libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fb881444000)
            libm.so.6 => /usr/lib/libm.so.6 (0x00007fb881140000)
            libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fb880f29000)
            libc.so.6 => /usr/lib/libc.so.6 (0x00007fb880b8b000)
            libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fb880987000)
            libQt5Qml.so.5 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5 (0x00007fb88038e000)
            libz.so.1 => /usr/lib/libz.so.1 (0x00007fb880178000)
            librt.so.1 => /usr/lib/librt.so.1 (0x00007fb87ff70000)
            libicui18n.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicui18n.so.56 (0x00007fb87fad6000)
            libicuuc.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicuuc.so.56 (0x00007fb87f71e000)
            libicudata.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicudata.so.56 (0x00007fb87dd3b000)
            libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fb87db39000)
            libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fb87d826000)
            /lib64/ld-linux-x86-64.so.2 (0x00007fb8840cf000)
            libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007fb87d5f5000)
            libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fb87d2b6000)
            libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fb87d0a4000)
            libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007fb87cdce000)
            libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007fb87cb5b000)
            libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fb87c932000)
            libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fb87c72e000)
            libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fb87c528000)
    

    You may need to go a bit deeper and run ldd on the Qt5Network lib as well. That should tell you the problem though.



  • @ambershark
    Thank you, i already tried it...
    here my ldd of qtcreator:

    ldd qtcreator
            linux-vdso.so.1 (0x00007ffd2bff8000)
            libExtensionSystem.so.4 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/qtcreator/libExtensionSystem.so.4 (0x00007f4a14c89000)
            libAggregation.so.4 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/qtcreator/libAggregation.so.4 (0x00007f4a14a84000)
            libUtils.so.4 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/qtcreator/libUtils.so.4 (0x00007f4a146be000)
            libQt5Widgets.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Widgets.so.5 (0x00007f4a13e6e000)
            libQt5Gui.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Gui.so.5 (0x00007f4a136e0000)
            libQt5Concurrent.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Concurrent.so.5 (0x00007f4a134da000)
            libQt5Network.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Network.so.5 (0x00007f4a1317c000)
            libQt5Core.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libQt5Core.so.5 (0x00007f4a12a5e000)
            libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f4a126f1000)
            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4a124d4000)
            libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4a12151000)
            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4a11e4d000)
            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4a11c36000)
            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4a11898000)
            libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4a11694000)
            libQt5Qml.so.5 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/qtcreator/../Qt/lib/libQt5Qml.so.5 (0x00007f4a1109a000)
            libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4a10e80000)
            librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4a10c78000)
            libicui18n.so.56 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libicui18n.so.56 (0x00007f4a107de000)
            libicuuc.so.56 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libicuuc.so.56 (0x00007f4a10426000)
            libicudata.so.56 => /home/nando/Qt/Tools/QtCreator/bin/./../lib/Qt/lib/libicudata.so.56 (0x00007f4a0ea41000)
            libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f4a0e83f000)
            libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f4a0e52b000)
            /lib64/ld-linux-x86-64.so.2 (0x0000555d53559000)
            libnvidia-tls.so.375.20 => /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.375.20 (0x00007f4a0e327000)
            libnvidia-glcore.so.375.20 => /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.20 (0x00007f4a0c557000)
            libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f4a0c214000)
            libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f4a0c000000)
            libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f4a0bd8d000)
            libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f4a0bb65000)
            libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f4a0b961000)
            libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f4a0b75b000)
    
    

    and here of the Qt5Network (from qtcreator lib dir):

    ldd libQt5Network.so.5
            linux-vdso.so.1 (0x00007ffda7b3f000)
            libQt5Core.so.5 => /home/nando/Qt/Tools/QtCreator/lib/Qt/lib/./libQt5Core.so.5 (0x00007f1a2e8e1000)
            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1a2e696000)
            libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1a2e47c000)
            libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1a2e0fb000)
            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1a2ddf7000)
            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1a2dbde000)
            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1a2d840000)
            libicui18n.so.56 => /home/nando/Qt/Tools/QtCreator/lib/Qt/lib/./libicui18n.so.56 (0x00007f1a2d3a6000)
            libicuuc.so.56 => /home/nando/Qt/Tools/QtCreator/lib/Qt/lib/./libicuuc.so.56 (0x00007f1a2cfee000)
            libicudata.so.56 => /home/nando/Qt/Tools/QtCreator/lib/Qt/lib/./libicudata.so.56 (0x00007f1a2b60b000)
            libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1a2b407000)
            libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f1a2b203000)
            librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1a2affb000)
            libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f1a2ace7000)
            /lib64/ld-linux-x86-64.so.2 (0x0000556fc14df000)
            libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f1a2aa74000)
    
    

    Looks fine, but i still get:

    ./qtcreator.sh 
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
    qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init
    qt.network.ssl: QSslSocket: cannot resolve sk_new_null
    qt.network.ssl: QSslSocket: cannot resolve sk_push
    qt.network.ssl: QSslSocket: cannot resolve sk_free
    qt.network.ssl: QSslSocket: cannot resolve sk_num
    qt.network.ssl: QSslSocket: cannot resolve sk_pop_free
    qt.network.ssl: QSslSocket: cannot resolve sk_value
    qt.network.ssl: QSslSocket: cannot resolve SSL_library_init
    qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
    qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
    qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    qt.network.ssl: QSslSocket: cannot resolve SSLeay
    qt.network.ssl: QSslSocket: cannot resolve SSLeay_version
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_num_locks
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
    qt.network.ssl: QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
    qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot call unresolved function sk_num
    Segmentation fault
    
    

    really strange....

    i also purged and then reinstalled openssl and libssl-dev... withour sccuess....

    Greetings
    Nando



  • @Nando
    I now have a workaround: i use debian stretch 64bit.

    there are different ssl and crypt libs in /usr/lib/x86_64-linux-gnu

    libcrypto.so -> libcrypto.so.1.1
    libssl.so -> libssl.so.1.1
    

    i changed then links from version 1.1 to 1.0.2

    libcrypto.so -> libcrypto.so.1.0.2
    libssl.so -> libssl.so.1.0.2
    

    This seems to work now ....

    Greetings
    Nando


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.