GNOME Bugzilla – Bug 688534
gdk 3.6.2 does not build with mesa 9.0.1
Last modified: 2013-01-28 12:32:41 UTC
When building gdk 3.6.2 with mesa 9.0.1, it failed at: CCLD libgdk-3.la wayland/.libs/libgdk-wayland.a(gdkwindow-wayland.o): In function `gdk_wayland_create_cairo_surface': /home/iurt/rpmbuild/BUILD/gtk+-3.6.2/gdk/wayland/gdkwindow-wayland.c:405: undefined reference to `wl_egl_pixmap_create' /home/iurt/rpmbuild/BUILD/gtk+-3.6.2/gdk/wayland/gdkwindow-wayland.c:433: undefined reference to `wl_egl_pixmap_create_buffer' collect2: error: ld returned 1 exit status Because the relative API has been dropped from mesa: http://cgit.freedesktop.org/mesa/mesa/commit/?h=9.0&id=2a81037439afb04d4170f674646cdae59619707d
Hi Funda, thanks for filing this bug report. This issue is a duplicate of #686885. The code that uses this has now been removed from GTK+ so GTK master now compiles against that mesa release. I do not think I will backport this to 3.6 - so please pass --disable-wayland-cairo-gl to allow you to compile this version of GTK. *** This bug has been marked as a duplicate of bug 686885 ***
Passing --disable-wayland-cairo-gl does not have the expected effect. The AC_ARG_ENABLE autoconf macro is used wrongly here http://git.gnome.org/browse/gtk+/tree/configure.ac?id=3.7.6#n325 this should be: AC_ARG_ENABLE(wayland-cairo-gl, AS_HELP_STRING([--enable-wayland-cairo-gl], [enable the use of Cairo GL in the Wayland backend]),, [enable_wayland_cairo_gl=yes]) (Or =no to have it disabled by default, which is the current behaviour.) But there is no way to force-disable this feature in current releases, you must just omit this configure switch.
Well spotted: commit 4846d3cf355075fd59f2d7c8019f188df7dd75cc Author: Rob Bradford <rob@linux.intel.com> Date: Mon Jan 28 12:29:34 2013 +0000 wayland: Fix configure flag around cairo egl support The intention was for this to default to off. However just using this option (whether to enable or disable it) would turn it on. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=688534 Thanks to Quentin Glidic for spotting this issue.