Results 1 to 3 of 3

Thread: Compiling Qt/KDE Applications raise linking error to ssl

  1. #1

    Default Compiling Qt/KDE Applications raise linking error to ssl

    On openSUSE Tumbleweed I try to compile kde telepathy from the git source. I installed all necessary devel-packages for the compilation, also for openssl. But during the compilation an linking error to ssl is raised. For example during compilation of KDE Telepathy Common Internals:

    Code:
    [63/172] Linking CXX executable tools/debugger/ktp-debugger
    FAILED: tools/debugger/ktp-debugger 
    : && /usr/bin/c++   -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -g  -Wl,--enable-new-dtags tools/debugger/CMakeFiles/ktp-debugger.dir/main-window.cpp.o tools/debugger/CMakeFiles/ktp-debugger.dir/debug-message-view.cpp.o tools/debugger/CMakeFiles/ktp-debugger.dir/main.cpp.o tools/debugger/CMakeFiles/ktp-debugger.dir/ktp-debugger_automoc.cpp.o  -o tools/debugger/ktp-debugger  -rdynamic /usr/lib64/libtelepathy-qt5.so.0.0.9.6.1 /usr/lib64/libKF5TextEditor.so.5.22.0 /usr/lib64/libKF5Parts.so.5.22.0 /usr/lib64/libKF5XmlGui.so.5.22.0 /usr/lib64/libKF5KIOWidgets.so.5.22.0 /usr/lib64/libKF5KIOCore.so.5.22.0 /usr/lib64/libQt5Network.so.5.6.0 /usr/lib64/libKF5JobWidgets.so.5.22.0 /usr/lib64/libKF5TextWidgets.so.5.22.0 /usr/lib64/libKF5IconThemes.so.5.22.0 /usr/lib64/libKF5ConfigWidgets.so.5.22.0 /usr/lib64/libKF5Codecs.so.5.22.0 /usr/lib64/libKF5Auth.so.5.22.0 /usr/lib64/libQt5DBus.so.5.6.0 /usr/lib64/libKF5Service.so.5.22.0 /usr/lib64/libKF5I18n.so.5.22.0 /usr/lib64/libKF5CoreAddons.so.5.22.0 /usr/lib64/libKF5Completion.so.5.22.0 /usr/lib64/libKF5WidgetsAddons.so.5.22.0 /usr/lib64/libKF5ConfigGui.so.5.22.0 /usr/lib64/libQt5Xml.so.5.6.0 /usr/lib64/libKF5ConfigCore.so.5.22.0 /usr/lib64/libKF5SonnetUi.so.5.22.0 /usr/lib64/libQt5Widgets.so.5.6.0 /usr/lib64/libQt5Gui.so.5.6.0 /usr/lib64/libQt5Core.so.5.6.0 -Wl,-rpath,::::::::::::::::::::::::::::::::::::::::::: && :
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_add_client_CA'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get1_session'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_default_passwd_cb'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_current_cipher'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_verify_result'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_use_PrivateKey'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CIPHER_get_name'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_1_server_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_psk_client_callback'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_CTX_set_session_id_context'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_ex_data'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_ctrl'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_alert_desc_string_long'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_set_cipher_list'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_load_verify_locations'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_use_RSAPrivateKey'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_use_certificate'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_peek'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSLv23_client_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_read'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_1_client_method'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_get_shutdown'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_load_error_strings'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_connect'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSLv3_server_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_select_next_proto'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_server_method'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_get0_alpn_selected'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_free'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_new'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_session'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_accept_state'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_get_cert_store'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CIPHER_description'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_peer_certificate'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `d2i_SSL_SESSION'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_get_privatekey'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_CTX_set_client_CA_list'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_use_certificate_file'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get0_next_proto_negotiated'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_peer_cert_chain'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_ex_new_index'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_client_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_new'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_set_fd'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_2_client_method'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_msg_callback'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_use_certificate_chain_file'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_shutdown'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_session'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_error'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_ex_data'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_bio'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_set_connect_state'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_get_ciphers'
    /usr/lib64/libgit2.so.24: undefined reference to `SSLv23_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_use_PrivateKey_file'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_get_certificate'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_state_string_long'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `i2d_SSL_SESSION'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_pending'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_srp_username'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_ctrl'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_CTX_set_tmp_dh_callback'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_CTX_set_tmp_rsa_callback'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSLv3_client_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_version'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_set_verify_depth'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_library_init'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_srp_password'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_write'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_set_verify'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSLv23_server_method'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CIPHER_get_bits'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_load_client_CA_file'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_check_private_key'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
    /usr/lib64/libcurl.so.4: undefined reference to `SSL_CTX_set_alpn_protos'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_set_next_proto_select_cb'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `TLSv1_2_server_method'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_CTX_set_info_callback'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_add_dir_cert_subjects_to_stack'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_SESSION_free'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_free'
    /usr/lib64/libldap-2.4.so.2: undefined reference to `SSL_alert_type_string_long'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_clear'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_CTX_set_default_verify_paths'
    /usr/lib64/libQt5Network.so.5.6.0: undefined reference to `SSL_accept'
    collect2: error: ld returned 1 exit status
    [63/172] Linking CXX shared library KTp/libKTpCommonInternals.so.16.07.70
    ninja: build stopped: subcommand failed.
    *** Fehler: Beendigungscode 1 ***
    There are undefined references to some ssl functions within the qt libraries. Did I miss some packages, which need to be installed?

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,814

    Default Re: Compiling Qt/KDE Applications raise linking error to ssl

    Do you have the devel packages for SSL installed

  3. #3

    Default Re: Compiling Qt/KDE Applications raise linking error to ssl

    I installed "libopenssl-devel".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •