Bug 63919 - WebKitGtk+ fails to build on win32 against GTK3
Summary: WebKitGtk+ fails to build on win32 against GTK3
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 16:07 PDT by Greg Hellings
Modified: 2012-03-08 11:15 PST (History)
4 users (show)

See Also:


Attachments
Don't use gtk_socket_new (696 bytes, patch)
2011-07-29 04:50 PDT, Mikkel Kruse Johnsen
no flags Details | Formatted Diff | Diff
Updated patch with changelog entry (1.26 KB, patch)
2012-03-08 10:02 PST, tuxator
no flags Details | Formatted Diff | Diff
Updated patch with changelog entry (1.24 KB, patch)
2012-03-08 10:21 PST, tuxator
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Hellings 2011-07-04 16:07:32 PDT
I am attempting to build webkit-1.4.2 against GTK3 cross-compiling from Fedora Core 15 with the mingw32 toolchain.  After fixing a bug with the gtk3 missing gdk/win32 headers, I am attempting to compile webkitgtk against gtk3.  Compile fails with the following message:

  CXX    Source/WebCore/plugins/gtk/libwebkitgtk_3_0_la-PluginViewGtk.lo
Source/WebCore/plugins/gtk/PluginViewGtk.cpp: In member function 'bool WebCore::PluginView::platformStart()':
Source/WebCore/plugins/gtk/PluginViewGtk.cpp:834:42: error: 'gtk_socket_new' was not declared in this scope

GtkSocket is not available with the gdk/win32 backend, only with X11.
Comment 1 Mikkel Kruse Johnsen 2011-07-29 04:50:54 PDT
Created attachment 102346 [details]
Don't use gtk_socket_new

Don't use gtk_socket_new if using GDK_WINDOWING_WIN32 and GTK3, since GtkSocket is X11 only in Gtk3

Not sure it will work, but it compiles.
Comment 2 Kalev Lember 2011-08-31 01:14:51 PDT
If you want to get the patch included, should format it with svn-create-patch as described in http://www.webkit.org/coding/contributing.html and raise the review? flag.
Comment 3 Gustavo Noronha (kov) 2012-03-06 04:44:15 PST
Comment on attachment 102346 [details]
Don't use gtk_socket_new

View in context: https://bugs.webkit.org/attachment.cgi?id=102346&action=review

> webkit-1.4.2/Source/WebCore/plugins/gtk/PluginViewGtk.cpp:830
> +#if defined(GDK_WINDOWING_WIN32) && !defined(GTK_API_VERSION_2)
> +        setPlatformWidget(0);

This should be #if PLATFORM(WINDOWS) instead of GDK_WINDOWING_WIN32, I think.

1.4.2 is very old, but this patch seems to be still necessary. It needs to be fixed to build on master, and have a ChangeLog entry like kalev mentioned.
Comment 4 tuxator 2012-03-08 10:02:18 PST
Created attachment 130835 [details]
Updated patch with changelog entry
Comment 5 WebKit Review Bot 2012-03-08 10:04:20 PST
Attachment 130835 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/ChangeLog:11:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 tuxator 2012-03-08 10:21:06 PST
Created attachment 130841 [details]
Updated patch with changelog entry
Comment 7 WebKit Review Bot 2012-03-08 11:15:23 PST
Comment on attachment 130841 [details]
Updated patch with changelog entry

Clearing flags on attachment: 130841

Committed r110178: <http://trac.webkit.org/changeset/110178>
Comment 8 WebKit Review Bot 2012-03-08 11:15:28 PST
All reviewed patches have been landed.  Closing bug.