Details
Description
Have Qt 6.8.0 source on linux on arm64 in /home/qt/src-6.8.0, configure:
cmake -DOpenGL_GL_PREFERENCE=LEGACY -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE -DQT_BUILD_EXAMPLES=FALSE -DCMAKE_BUILD_TYPE=Release -DINPUT_libjpeg=qt -DINPUT_libpng=qt -DINPUT_pcre=qt -DINPUT_harfbuzz=qt -DINPUT_libudev=no -DINPUT_bundled_xcb_xinput=yes -G Ninja /home/qt/RTA/src-6.8.0 -DCMAKE_INSTALL_PREFIX:PATH=/home/qt/RTA/src-6.8.0/qtbase
finishes fine, build: cmake --build . --parallel -> fails:
[10193/12561] 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/g++ -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_DEBUG -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/qt/RTA/src-6.8.0/qtopcua/src/opcua/OpcUa_autogen/include -I/home/qt/RTA/src-6.8.0/qtbase/include -I/home/qt/RTA/src-6.8.0/qtbase/include/QtOpcUa -I/home/qt/RTA/src-6.8.0/qtopcua/src/opcua -I/home/qt/RTA/src-6.8.0/qtbase/include/QtOpcUa/6.8.0 -I/home/qt/RTA/src-6.8.0/qtbase/include/QtOpcUa/6.8.0/QtOpcUa -I/home/qt/RTA/src-6.8.0/qtbase/include/QtCore -I/home/qt/RTA/src-6.8.0/qtbase/mkspecs/linux-g++ -I/home/qt/RTA/src-6.8.0/qtbase/include/QtNetwork -I/home/qt/RTA/src-6.8.0/qtbase/src/corelib -I/home/qt/RTA/src-6.8.0/qtbase/include/QtCore/6.8.0 -I/home/qt/RTA/src-6.8.0/qtbase/include/QtCore/6.8.0/QtCore -I/home/qt/RTA/src-6.8.0/qtbase/src/network -I/home/qt/RTA/src-6.8.0/qtbase/include/QtNetwork/6.8.0 -I/home/qt/RTA/src-6.8.0/qtbase/include/QtNetwork/6.8.0/QtNetwork -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fconstexpr-ops-limit=40000000 -Wsuggest-override -std=c++17 -Winvalid-pch -include /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/CMakeFiles/OpcUa.dir/cmake_pch.hxx -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/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp In file included from /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:5: /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp: In member function ‘QByteArray QOpcUaX509CertificateSigningRequestPrivate::createSelfSignedCertificate(const QOpcUaKeyPair&, int)’: /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:426:34: error: cannot convert ‘GENERAL_NAMES*’ {aka ‘stack_st_GENERAL_NAME*’} to ‘OPENSSL_STACK*’ {aka ‘stack_st*’} 426 | q_sk_GENERAL_NAME_push(akid->issuer, generalName); /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/openssl_symbols_p.h:433:60: note: in definition of macro ‘q_sk_GENERAL_NAME_push’ 433 | #define q_sk_GENERAL_NAME_push(st, val) q_OPENSSL_sk_push((st), (val)) | ^~ In file included from /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/openssl_symbols_p.h:211, from /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:5: /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qsslsocket_openssl11_symbols_p.h:60:57: note: initializing argument 1 of ‘void q_OPENSSL_sk_push(OPENSSL_STACK*, void*)’ 60 | Q_AUTOTEST_EXPORT void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data); | ~~~~~~~~~~~~~~~^~ In file included from /usr/include/openssl/crypto.h:23, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/openssl_symbols_p.h:23, from /home/qt/RTA/src-6.8.0/qtopcua/src/opcua/x509/qopcuax509certificatesigningrequest_openssl.cpp:5: /usr/include/openssl/x509v3.h:166:1: note: class type ‘GENERAL_NAMES’ {aka ‘stack_st_GENERAL_NAME’} is incomplete 166 | DEFINE_STACK_OF(GENERAL_NAME) | ^~~~~~~~~~~~~~~
Since coin is able to compile the opcua, this is probably some environment issue (or something), but I have used all my tricks and help needed, what is missing from the build env. This is toplevel build compared to building module by module in coin, but that shouldn't affect, right...?
This is RTA build test, which has never worked yet with 6.7.0 or 6.8.0 on linux on arm.
Attachments
Issue Links
- duplicates
-
QTBUG-122005 qtopcua is not building against OpenSSL-1.1.1
- Reported