Bug 63919

Summary: WebKitGtk+ fails to build on win32 against GTK3
Product: WebKit Reporter: Greg Hellings <greg.hellings>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: erik-webkit, gustavo, kalevlember, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Don't use gtk_socket_new
none
Updated patch with changelog entry
none
Updated patch with changelog entry none

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.