Bug 813064 - MinGW Qt application doesn't linked with openssl at runtime
Summary: MinGW Qt application doesn't linked with openssl at runtime
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw32-qt
Version: 15
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Erik van Pienbroek
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2012-04-16 19:28 UTC by Ivan Romanov
Modified: 2012-05-11 10:32 UTC (History)
5 users (show)

Fixed In Version: mingw32-qt-4.8.1-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-05-11 10:22:27 UTC
Type: Bug

Attachments (Terms of Use)
mingw qt ssl test case (2.86 KB, application/x-bzip)
2012-04-16 19:28 UTC, Ivan Romanov
no flags Details

Description Ivan Romanov 2012-04-16 19:28:21 UTC
Created attachment 577807 [details]
mingw qt ssl test case


I can't load any https in my qt application compiled with MinGW Qt. I've learned this problem and have wrotten sample app to test it. See in attachment.

First compile for Linux 

cp release/mingw-qt-ssl-testcase.exe to_your_windows_folder
also put in your windows folder libcrypto-10.dll  libgcc_s_sjlj-1.dll  libpng14-14.dll  libssl-10.dll  libstdc++-6.dll  QtCore4.dll  QtGui4.dll  QtNetwork4.dll  zlib1.dll from /usr/i686-pc-mingw32/sys-root/mingw/bin.
and start mingw-qt-ssl-testcase.exe under your Windows.

I've rebuilt mingw32-qt package for myself with -openssl-linked instead of -openssl configure option. After this test app works with ssl ... but it can't get certificates.

Comment 1 Erik van Pienbroek 2012-04-19 14:48:48 UTC
Does http://koji.fedoraproject.org/koji/taskinfo?taskID=4005347 resolve the problem for you? (This package was built for Fedora 16)

Comment 2 Erik van Pienbroek 2012-04-19 15:35:46 UTC
A package for Fedora 15 is currently building: http://koji.fedoraproject.org/koji/taskinfo?taskID=4005785

Comment 3 Ivan Romanov 2012-04-19 17:12:54 UTC

Comment 4 Erik van Pienbroek 2012-04-19 17:25:15 UTC
Yeah, it turned out an additional patch was needed for Fedora 15. A new one is being uploaded now to the koji builders

Comment 5 Erik van Pienbroek 2012-04-19 19:38:19 UTC
Here's one for Fedora 15: http://koji.fedoraproject.org/koji/taskinfo?taskID=4006135

Comment 6 Ivan Romanov 2012-04-20 05:31:45 UTC
$ sudo rpm -Uvh mingw32-qt-4.8.1-1.fc15.noarch.rpm
[sudo] password for taurus: 
error: Failed dependencies:
	mingw32-qt-qmake = 4.8.1 is needed by mingw32-qt-4.8.1-1.fc15.noarch

Comment 7 Erik van Pienbroek 2012-04-20 11:12:13 UTC
Here's the corresponding mingw32-qt-qmake package: http://koji.fedoraproject.org/koji/taskinfo?taskID=4008567

Comment 8 Ivan Romanov 2012-04-20 11:36:17 UTC
[taurus@lix mingw-qt-ssl-testcase]$ mingw32-qmake-qt4 
[taurus@lix mingw-qt-ssl-testcase]$ make
make -f Makefile.Release
make[1]: Entering directory `/home/taurus/Downloads/mingw-qt-ssl-testcase'
i686-pc-mingw32-g++ -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -mms-bitfields -O2 -fexceptions -mthreads -Wall -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NO_DYNAMIC_CAST -I'/usr/i686-pc-mingw32/sys-root/mingw/include/QtCore' -I'/usr/i686-pc-mingw32/sys-root/mingw/include/QtNetwork' -I'/usr/i686-pc-mingw32/sys-root/mingw/include/QtGui' -I'/usr/i686-pc-mingw32/sys-root/mingw/include' -I'/usr/i686-pc-mingw32/sys-root/mingw/include/ActiveQt' -I'release' -I'.' -I'/usr/lib/qt4/mkspecs/win32-g++-cross' -o release/moc_mainwindow.o release/moc_mainwindow.cpp
release/moc_mainwindow.cpp:14:2: error: #error "This file was generated using the moc from 4.7.4. It"
release/moc_mainwindow.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."
release/moc_mainwindow.cpp:16:2: error: #error "(The moc has changed too much.)"
make[1]: *** [release/moc_mainwindow.o] Error 1
make[1]: Leaving directory `/home/taurus/Downloads/mingw-qt-ssl-testcase'
make: *** [release] Error 2

Comment 9 Erik van Pienbroek 2012-04-20 12:13:47 UTC
I was already afraid of this..Qt 4.8.1 is too new for Fedora 15 (which bundles a native copy of Qt 4.7.4). This specific problem has already been resolved in Fedora 17, but can't be backported to older Fedora versions. I'll try to backport the SSL patch to Qt 4.7.4, but this will probably take another couple of hours

Comment 10 Ivan Romanov 2012-04-20 12:50:23 UTC

Comment 11 Erik van Pienbroek 2012-04-30 12:58:21 UTC
My apologies for the delay.
Here are suitable packages for Fedora 15:
mingw32-qt: http://koji.fedoraproject.org/koji/taskinfo?taskID=4034303
mingw32-qt-qmake: You can use the one in the Fedora 15 updates repository

You may need to perform a 'yum downgrade mingw32-qt mingw32-qt-qmake' first

Comment 12 Ivan Romanov 2012-05-01 15:01:30 UTC
Nice! It works.

Comment 13 Erik van Pienbroek 2012-05-01 15:03:47 UTC
I'll push updated packages to Fedora 15 and 16 (in Fedora 17 and rawhide this issue was already resolved)

Comment 14 Fedora Update System 2012-05-01 17:07:44 UTC
mingw32-qt-4.7.4-2.fc15 has been submitted as an update for Fedora 15.

Comment 15 Fedora Update System 2012-05-01 17:19:30 UTC
mingw32-qt-4.8.1-1.fc16,mingw32-qt-qmake-4.8.1-1.fc16 has been submitted as an update for Fedora 16.

Comment 16 Fedora Update System 2012-05-03 07:24:56 UTC
Package mingw32-qt-4.8.1-1.fc16, mingw32-qt-qmake-4.8.1-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mingw32-qt-4.8.1-1.fc16 mingw32-qt-qmake-4.8.1-1.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 17 Fedora Update System 2012-05-11 10:22:27 UTC
mingw32-qt-4.7.4-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2012-05-11 10:32:58 UTC
mingw32-qt-4.8.1-1.fc16, mingw32-qt-qmake-4.8.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.