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

qtopcua build failure due to openssl related conversions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.0.0
    • Build System
    • None
    • Windows

    Description

      Error:

      C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe /TP -DOpcUa_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_OPCUA_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -Isrc\opcua\OpcUa_autogen\include -Iinclude -Iinclude\QtOpcUa -IG:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua -Isrc\opcua -Iinclude\QtOpcUa\6.0.0 -Iinclude\QtOpcUa\6.0.0\QtOpcUa -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtCore -IG:\vcpkg_test\qt6-base\installed\x64-windows\include -IG:\vcpkg_test\qt6-base\installed\x64-windows\mkspecs\win32-msvc -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtNetwork -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtCore\6.0.0 -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtCore\6.0.0\QtCore -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtNetwork\6.0.0 -IG:\vcpkg_test\qt6-base\installed\x64-windows\include\QtNetwork\6.0.0\QtNetwork /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /RTC1 -MDd /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -std:c++17 /showIncludes /Fosrc\opcua\CMakeFiles\OpcUa.dir\x509\openssl_symbols.cpp.obj /Fdsrc\opcua\CMakeFiles\OpcUa.dir\ /FS -c G:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua\x509\openssl_symbols.cpp
      G:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua\x509\openssl_symbols.cpp(276): error C2664: 'int BN_set_word(BIGNUM *,unsigned __int64)': cannot convert argument 1 from 'const BIGNUM *' to 'BIGNUM *'
      G:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua\x509\openssl_symbols.cpp(276): note: Conversion loses qualifiers
      G:\vcpkg_test\qt6-base\installed\x64-windows\include\openssl/bn.h(271): note: see declaration of 'BN_set_word'
      G:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua\x509\openssl_symbols.cpp(342): error C2664: 'int PEM_write_bio_PKCS8PrivateKey(BIO *,EVP_PKEY *,const EVP_CIPHER *,char *,int,pem_password_cb (__cdecl *),void *)': cannot convert argument 4 from 'unsigned char *' to 'char *'
      G:\vcpkg_test\qt6-base\buildtrees\qtopcua\src\v6.0.0-f2144be0d8.clean\src\opcua\x509\openssl_symbols.cpp(342): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
      G:\vcpkg_test\qt6-base\installed\x64-windows\include\openssl/pem.h(329): note: see declaration of 'PEM_write_bio_PKCS8PrivateKey'

      Used OpenSSL version: 1.1.1h supplied via vcpkg

       

      Configure summary:
      
      Qt Opcua:
       Open62541 .............................. yes
       Unified Automation C++ SDK ............. no
       Support for namespace 0 NodeId names ... yes
       Namespace 0 NodeIds generator .......... no
       Open62541 security support ............. yes
       Support for global discovery server .... yes
      

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              neumann-a Alexander Neumann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes