Bug 100592 - Can't build QtWebKitWidgetsd5.dll with MinGW-builds GCC 4.7.2
Summary: Can't build QtWebKitWidgetsd5.dll with MinGW-builds GCC 4.7.2
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 06:45 PDT by Jonathan Liu
Modified: 2013-04-14 01:11 PDT (History)
3 users (show)

See Also:


Attachments
Compile errors (13.12 KB, text/plain)
2012-10-27 06:45 PDT, Jonathan Liu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Liu 2012-10-27 06:45:51 PDT
Created attachment 171090 [details]
Compile errors

Building QtWebKit as part of Qt 5 fails when trying to link QtWebKitWidgetsd5.dll: undefined reference to JSC::JSCell::classInfo() const.

Compiler: MinGW-builds GCC 4.7.2 64-bit
Configuration: WebKit1 (no ANGLE)
Build Instructions: http://qt-project.org/wiki/MinGW-64-bit#03f79f4f892018f670751240946380e3
Comment 1 Jonathan Liu 2012-10-27 06:49:54 PDT
QtWebKitWidgets5.dll compiles fine so the problem is only when doing a debug build of the library.
Comment 2 Jonathan Liu 2012-10-27 22:08:25 PDT
Seems the problem may be related to http://trac.webkit.org/changeset/130303
Comment 3 Simon Hausmann 2012-10-31 08:42:13 PDT
Reported also in Qt Jira: https://bugreports.qt-project.org/browse/QTBUG-27764
Comment 4 Kai Koehne 2012-11-21 06:54:58 PST
I can reproduce this with MinGW-builds 4.7.2 gcc 32 bit, so it's not a 64 bit issue.
Comment 5 Kai Koehne 2012-11-21 08:20:41 PST
JSC::JSCell::classInfo() is defined as an inline method (outside of class declaration) in JSDestructibleObject.h . I guess the compiler gets confused about this ...
Comment 6 Kai Koehne 2012-11-22 04:04:03 PST
Alright, I was able to fix this locally by merging the content of JSDestructibleObject.h (which defines JSCell::classInfo()) into JSObject.h . However JSDestructibleObject.h was removed in webkit/trunk anyway (commit 75dbf611bc), so I have hopes that the next qtwebkit update fixes this, too.
Comment 7 Simon Hausmann 2012-11-26 06:51:38 PST
Kai, can you confirm that current qtwebkit in qt5.git fixes this issue?
Comment 8 Kai Koehne 2012-11-28 01:29:18 PST
No, can't confirm. It's just shadowed by yet another one: https://bugs.webkit.org/show_bug.cgi?id=103491
Comment 9 Simon Hausmann 2012-11-29 05:51:27 PST
Removing from the Qt 5.0.0 blockers as we're not going to have mingw binaries it seems.
Comment 10 Jonathan Liu 2013-04-14 01:11:31 PDT
It is working now.