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

QSSLSocket_OpenSSL_Symbols: Error LNK2019: unresolved external symbol(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.8.0 Beta
    • 5.8.0 Alpha, 5.8
    • Network: SSL
    • None
    • 65d5bfc63d04bb1a0719183501c918b7a3d44cfe,aec9cebf8c1ef4b9d497f76337d7af0b8b5f8d46,f71aa48138e939ccb687ffab6afca734b1b13973

    Description

      When using the Parameter

      -openssl-linked
      

      the Compilation stops with Error 2:

      cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fp.pch\release\Qt5Gui_pch.pch -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -D_HAS_EXCEPTIONS=0 -MP -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DQT_NO_USING_NAMESPACE -DQT_ENABLE_HARFBUZZ_NG -DENABLE_PIXMAN_DRAWHELPERS -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -DNDEBUG -D_WINDLL -IC:\qt5srcgitdev\qt5\qtbase\src\gui -I. -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\libpng -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\harfbuzz-ng\include -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\zlib -I..\..\include -I..\..\include\QtGui -I..\..\include\QtANGLE -I..\..\include\QtGui\5.8.0 -I..\..\include\QtGui\5.8.0\QtGui -Itmp -I..\..\include\QtCore\5.8.0 -I..\..\include\QtCore\5.8.0\QtCore -I..\..\include\QtCore -I.moc\release -IC:\opensslx86\include -IC:\icurlsx86\include -IC:\qt5srcgitdev\qt5\qtbase\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\TEMP\moc_qopenglengineshadermanager_p.obj.7580.125641.jom
      moc_qopenglengineshadermanager_p.cpp
      
      cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fp.pch\release\Qt5Gui_pch.pch -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -D_HAS_EXCEPTIONS=0 -MP -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DQT_NO_USING_NAMESPACE -DQT_ENABLE_HARFBUZZ_NG -DENABLE_PIXMAN_DRAWHELPERS -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -DNDEBUG -D_WINDLL -IC:\qt5srcgitdev\qt5\qtbase\src\gui -I. -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\libpng -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\harfbuzz-ng\include -IC:\qt5srcgitdev\qt5\qtbase\src\3rdparty\zlib -I..\..\include -I..\..\include\QtGui -I..\..\include\QtANGLE -I..\..\include\QtGui\5.8.0 -I..\..\include\QtGui\5.8.0\QtGui -Itmp -I..\..\include\QtCore\5.8.0 -I..\..\include\QtCore\5.8.0\QtCore -I..\..\include\QtCore -I.moc\release -IC:\opensslx86\include -IC:\icurlsx86\include -IC:\qt5srcgitdev\qt5\qtbase\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\TEMP\moc_qopengltimerquery.obj.7580.126235.jom
      moc_qopengltimerquery.cpp
      
      link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:..\..\lib\Qt5Gui.dll @C:\TEMP\Qt5Gui.dll.7580.127063.jom
      
      Creating library ..\..\lib\Qt5Gui.lib and object ..\..\lib\Qt5Gui.exp
      jom: C:\xsdf86dev\qtbase\Makefile [sub-src-make_first] Error 2
      jom: C:\xsdf86dev\Makefile [module-qtbase-make_first] Error 2
      

      The Qt5Gui.* Files are created fine, then the Error occurs.
      Known to work with:

      SHA: 7efeb26a
      Change ID: I6e8c8e91b7e17efa93b24e8026fa3f340bd10e9d
      

      Qt Config Parameter:

      set CL=-d2SSAOptimizer- -MP
      set PATH=C:\qt5srcgitdev\qt5\gnuwin32\bin;c:\icurlsx86\bin;c:\icurlsx86\include;c:\icurlsx86\lib;c:\opensslx86\include;c:\opensslx86\lib;C:\Perlx86\perl\bin;C:\Pythonx86\;C:\Rubyx86\bin;%PATH%;C:\git\bin\
      
      c:\qt5srcgitdev\qt5\configure -make-tool jom -opensource -confirm-license -prefix c:\qt-build32dev -opengl dynamic -release -openssl-linked -I C:\opensslx86\include -L C:\opensslx86\lib -icu -I C:\icurlsx86\include -L C:\icurlsx86\lib -mp -nomake tests -nomake examples -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcharts -skip qtdatavis3d -skip qtgamepad -skip qtmacextras -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialport -skip qtserialbus -skip qtwayland -skip qtvirtualkeyboard -skip qtnetworkauth -skip qtspeech && jom
      

      Difference for x64:

      • Configured with "-debug-and-release"

      OpenSSL Build Info:

      Config Parameter:
      no-ssl3 no-idea no-mdc2 no-rc5
      Assembler Version: NASM 2.12.02 (native Binaries for x86 and x64)
      MSVC Version: 2015, Update 3, SDK 10.0.14393.0
      

      No compiler Error when enabling -openssl dynamically.

      Attachments

        1. compile.log
          1.11 MB
        2. .qmake.stash
          1.0 kB
        3. .qmake.super
          0.1 kB
        4. Makefile
          175 kB
        5. Makefile-src-network
          13 kB
        6. Makefile.Release-src-network
          1.34 MB
        7. compile.log
          1.26 MB
        8. config.log
          82 kB
        9. config.opt
          0.6 kB
        For Gerrit Dashboard: QTBUG-55530
        # Subject Branch Project Status CR V

        Activity

          People

            buddenha Oswald Buddenhagen
            meermusik Oliver Niebuhr
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes