Bug 180440 - [regression] build failure error: conflicting declaration ‘typedef struct _GdkWindow GdkWindow
Summary: [regression] build failure error: conflicting declaration ‘typedef struct _Gd...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 13:02 PST by David Ronis
Modified: 2017-12-05 13:02 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Ronis 2017-12-05 13:02:25 PST
I'm trying to build webkitgtk 2.18.3 on a slackware linux box using gcc 7,2.0.   I have gtk+-3 (3.18.9) installed.  I'm also using the old garnome build system.  The build dies with:

[ 98%] Building CXX object Source/WebKit/CMakeFiles/WebKitPluginProcess2.dir/PluginProcess/unix/PluginProcessMainUnix.cpp.o
In file included from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdk.h:32,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gtk/gtk.h:30,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/PluginProcess/unix/PluginProcessMainUnix.cpp:41:
/opt/garnome-3.26.1/include/gtk-3.0/gdk/gdktypes.h:93:39: error: conflicting declaration ‘typedef cairo_rectangle_int_t GdkRectangle’
 typedef cairo_rectangle_int_t         GdkRectangle;
                                       ^~~~~~~~~~~~
In file included from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/Platform.h:1025:0,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/WebKit2Prefix.h:31,
                 from <command-line>:0:
//home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/glib/GTypedefs.h:101:30: note: previous declaration as ‘typedef struct _GdkRectangle \
GdkRectangle’
 typedef struct _GdkRectangle GdkRectangle;
                              ^~~~~~~~~~~~
In file included from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdk.h:32,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gtk/gtk.h:30,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/PluginProcess/unix/PluginProcessMainUnix.cpp:41:
/opt/garnome-3.26.1/include/gtk-3.0/gdk/gdktypes.h:143:39: error: conflicting declaration ‘typedef struct _GdkWindow GdkWindow’
 typedef struct _GdkWindow             GdkWindow;
                                       ^~~~~~~~~
In file included from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/Platform.h:1025:0,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/WebKit2Prefix.h:31,
                 from <command-line>:0:
/home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/glib/GTypedefs.h:102:29: note: previous declaration as ‘typedef struct _GdkDrawable G\
dkWindow’
 typedef struct _GdkDrawable GdkWindow;
                             ^~~~~~~~~
In file included from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkdisplay.h:31:0,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gdk/gdk.h:32,
                 from /opt/garnome-3.26.1/include/gtk-3.0/gtk/gtk.h:30,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/PluginProcess/unix/PluginProcessMainUnix.cpp:41:
/opt/garnome-3.26.1/include/gtk-3.0/gdk/gdkevents.h:625:16: error: field ‘area’ has incomplete type ‘GdkRectangle {aka _GdkRectangle}’
   GdkRectangle area;
                ^~~~
In file included from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/Platform.h:1025:0,
                 from /home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WebKit/WebKit2Prefix.h:31,
                 from <command-line>:0:
/home/ronis/Project/notar/GNOME/garnome/platform/webkitgtk+/work/main.d/webkitgtk-2.18.3/Source/WTF/wtf/glib/GTypedefs.h:101:16: note: forward declaration of ‘GdkRectangle {aka struct _GdkR\
ectangle}’
 typedef struct _GdkRectangle GdkRectangle;
                ^~~~~~~~~~~~~
Source/WebKit/CMakeFiles/WebKitPluginProcess2.dir/build.make:674: recipe for target 'Source/WebKit/CMakeFiles/WebKitPluginProcess2.dir/PluginProcess/unix/PluginProcessMainUnix.cpp.o' failed
make[3]: *** [Source/WebKit/CMakeFiles/WebKitPluginProcess2.dir/PluginProcess/unix/PluginProcessMainUnix.cpp.o] Error 1