Bug 55050

Summary: [Qt] MinGW build fails to link
Product: WebKit Reporter: Andras Becsi <abecsi>
Component: Tools / TestsAssignee: Andras Becsi <abecsi>
Severity: Blocker CC: jturcotte, laszlo.gombos, ossy
Priority: P1 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Bug Depends on:    
Bug Blocks: 50251    
Description Flags
proposed patch
proposed patch
build log for linking none

Description Andras Becsi 2011-02-23 08:35:32 PST
After the recent build system changes the MinGW linking fails with undefined reference errors. Apparently the compiler does not like the current library order.
Comment 1 Andras Becsi 2011-02-23 08:41:39 PST
This documentation says:

"Most current linkers will search all libraries, regardless of order, but since some do not do this it is best to follow the convention of ordering libraries from left to right."

The problem win-gcc has is that the webcore and jscore libraries are after the windows libraries in the build command line, so there are unresolved symbols.
Comment 2 Andras Becsi 2011-02-23 08:57:08 PST
Created attachment 83488 [details]
proposed patch

I don't set r?, so Laszlo can check whether it works on Symbian, Ossy already shut down our Windows bots.
Comment 3 Andras Becsi 2011-02-23 09:20:46 PST
Created attachment 83490 [details]
proposed patch

Fix the final linking order to be webkit2 webcore jscore.
Comment 4 Laszlo Gombos 2011-02-23 20:56:32 PST
(In reply to comment #3)
> Created an attachment (id=83490) [details]
> proposed patch
> Fix the final linking order to be webkit2 webcore jscore.

No regression on Symbian build from this patch. Patch looks good to me, please put it up for review.
Comment 5 Andras Becsi 2011-02-24 02:06:46 PST
Comment on attachment 83490 [details]
proposed patch

Thanks, Laszlo, for checking.
Comment 6 Laszlo Gombos 2011-02-24 04:49:35 PST
Comment on attachment 83490 [details]
proposed patch

Looks good to me, r+.
Comment 7 Andras Becsi 2011-02-24 05:57:05 PST
Landed in http://trac.webkit.org/changeset/79548.
Closing bug.
Comment 8 Andras Becsi 2011-02-24 05:57:33 PST
Comment on attachment 83490 [details]
proposed patch

Clearing flags.
Comment 9 Csaba Osztrogon√°c 2011-03-23 09:07:41 PDT
Reopen, because it still fails with MinGW on Windows. (But works with cross-MinGW on Linux - with same MinGW version)
Comment 10 Csaba Osztrogon√°c 2011-03-23 09:09:12 PDT
Created attachment 86626 [details]
build log for linking
Comment 11 Laszlo Gombos 2011-03-23 19:22:26 PDT
I prefer to close this as DUP as the other bug was opened earlier for MingW on Windows (even though that bug has a higher bug id). There is also some good progress on resolving this on the other bug.

*** This bug has been marked as a duplicate of bug 56723 ***