Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.6.2
-
None
-
Microsoft Windows 7, Microsoft Visual Studio 2008 Professional, OpenSSL 0.9.8L static
Description
We configured Qt with the following command:
configure.exe -platform win32-msvc2008 -debug-and-release -nomake demos -nomake examples -no-qt3support -openssl-linked -qt-sql-sqlite -qt-zlib -qt-libpng -qt-libmng -qt-libjpeg -I path_to_openssl_include_dir -L path_to_openssl_lib_dir -l WSOCK32 -l ADVAPI32 -l GDI32 -l USER32 -prefix path_to_install_dir
which cause LNK2019 linker error while linking QtNetwork library. For example:
qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol _OPENSSL_add_all_algorithms_conf referenced in function "void __cdecl q_OPENSSL_add_all_algorithms_conf(void)" (?q_OPENSSL_add_all_algorithms_conf@@YAXXZ)
There are strange options passed to compiler and linker:
cl -c -FIqt_pch.h -Yuqt_pch.h -Fptmp\obj\debug_shared\QtNetworkd_pch.pch -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\include" -I"d:\Temp\openssl\include" -I"OPENSSL_LIBS" -I"=" -I"-lssleay32" -I"-llibeay32" -I"..\..\include\QtNetwork" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"d:\Temp\build\qt-4.6.2\mkspecs\win32-msvc2008" -Fotmp\obj\debug_shared\ @C:\Users\test\AppData\Local\Temp\nmC8D.tmpqrc_network.cpp
link /LIBPATH:"d:\Temp\build\qt-4.6.2.build\lib" /LIBPATH:"d:\Temp\build\qt-4.6.2.build\lib" /NOLOGO /BASE:0x64000000 /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\QtNetworkd.intermediate.manifest" /VERSION:4.62 /OUT:..\..\lib\QtNetworkd4.dll @C:\Users\test\AppData\Local\Temp\nmD58.tmp Creating library ..\..\lib\QtNetworkd4.lib and object ..\..\lib\QtNetworkd4.exp