Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105046

Linker failures when building with -DFEATURE_openssl_linked=ON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.5.0
    • 6.4
    • Network: SSL
    • None
    • Linux/X11
    • 086a71d82 (tqtc/lts-6.2), 5d7ea8de1 (6.4), 190e5af11 (dev)

    Description

      Configuring with

        -developer-build -no-optimize-debug -ccache -submodules qtbase,qtdeclarative,qt5compat -- -DFEATURE_openssl_linked=ON -Wno-dev --log-level=NOTICE
      

      I get errors when linking tst_qsslkey:

      Linking CXX executable qtbase/tests/auto/network/ssl/qsslkey/tst_qsslkey
      FAILED: qtbase/tests/auto/network/ssl/qsslkey/tst_qsslkey 
      : && /usr/lib/icecc/bin/c++ -g -Wl,--enable-new-dtags qtbase/tests/auto/network/ssl/qsslkey/CMakeFiles/tst_qsslkey.dir/tst_qsslkey_autogen/mocs_compilation.cpp.o qtbase/tests/auto/network/ssl/qsslkey/CMakeFiles/tst_qsslkey.dir/tst_qsslkey.cpp.o -o qtbase/tests/auto/network/ssl/qsslkey/tst_qsslkey  -Wl,-rpath,.../qtbase/lib  qtbase/lib/libQt6Test.so.6.5.0  qtbase/lib/libQt6Network.so.6.5.0  qtbase/lib/libQt6Core.so.6.5.0  -lpthread && :
      /usr/bin/ld: qtbase/tests/auto/network/ssl/qsslkey/CMakeFiles/tst_qsslkey.dir/tst_qsslkey.cpp.o: in function `(anonymous namespace)::q_BIO_new(bio_method_st const*)':
      .../qtbase/tests/auto/network/ssl/shared/qopenssl_symbols.h:315: undefined reference to `BIO_new'
      

      and similar for many other symbols (BIO_free, BIO_write, …).
      Initially reported on mailing list by thiago who also notes "they don't even try to link to the library."

      This is presumably fall-out from the transition to plugin-based SSL backends.

      There are also several deprecation warnings against tst_qsslkey.cpp's use of various symbols defined in qtbase/tests/auto/network/ssl//shared/qopenssl_symbols.h

      Attachments

        For Gerrit Dashboard: QTBUG-105046
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            Eddy Edward Welbourne
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes