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

qtopcua is not building against OpenSSL-1.1.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • OpcUA
    • None

    Description

      I configure today's HEAD of qt5-dev for cross-compilation. qtopcua apparently finds openssl and configures fine. But later in the build I get:

      [17884/20011] Building CXX object qtopcua/src/opcua/CMakeFiles/OpcUa.dir/x509/qopcuax509certificatesigningrequest_openssl.cpp.o
      FAILED: qtopcua/src/opcua/CMakeFiles/OpcUa.dir/x509/qopcuax509certificatesigningrequest_openssl.cpp.o 
      /usr/bin/clang++-17 --sysroot=/home/builder/sysroots/RPiOS_11_arm64 -DOpcUa_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_OPCUA_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtopcua/src/opcua/OpcUa_autogen/include -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtOpcUa -I/home/builder/qt5-git/qtopcua/src/opcua -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtopcua/src/opcua -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtOpcUa/6.8.0 -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtOpcUa/6.8.0/QtOpcUa -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtCore -I/home/builder/qt5-git/qtbase/mkspecs/linux-clang -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtNetwork -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/src/corelib -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtCore/6.8.0 -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtCore/6.8.0/QtCore -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/src/network -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtNetwork/6.8.0 -I/home/builder/build-qt6-RPiOS_11_arm64-debug/qtbase/include/QtNetwork/6.8.0/QtNetwork -O1 -target aarch64-linux-gnu  --sysroot /home/builder/sysroots/RPiOS_11_arm64 -g -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fconstexpr-steps=2000000 -MD -MT qtopcua/src/opcua/CMakeFiles/OpcUa.dir/x509/qopcuax509certificatesigningrequest_openssl.cpp.o -MF qtopcua/src/opcua/CMakeFiles/OpcUa.dir/x509/qopcuax509certificatesigningrequest_openssl.cpp.o.d -o qtopcua/src/opcua/CMakeFiles/OpcUa.dir/x509/qopcuax509certificatesigningrequest_openssl.cpp.o -c /home/builder/qt5-git/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp
      /home/builder/qt5-git/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:426:5: error: no matching function for call to 'q_OPENSSL_sk_push'
        426 |     q_sk_GENERAL_NAME_push(akid->issuer, generalName);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/builder/qt5-git/qtopcua/src/opcua/x509/openssl_symbols_p.h:433:41: note: expanded from macro 'q_sk_GENERAL_NAME_push'
        433 | #define q_sk_GENERAL_NAME_push(st, val) q_OPENSSL_sk_push((st), (val))
            |                                         ^~~~~~~~~~~~~~~~~
      /home/builder/qt5-git/qtopcua/src/opcua/x509/qsslsocket_openssl11_symbols_p.h:60:24: note: candidate function not viable: cannot convert argument of incomplete type 'GENERAL_NAMES *' (aka 'stack_st_GENERAL_NAME *') to 'OPENSSL_STACK *' (aka 'stack_st *') for 1st argument
         60 | Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
            |                        ^                 ~~~~~~~~~~~~~~~~~
      1 error generated.
      

      Is this because of incompatibility with OpenSSL 1.1.1w of Raspberry Pi OS?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              fmeerkoetter Frank Meerkötter
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes