After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688534 - gdk 3.6.2 does not build with mesa 9.0.1
gdk 3.6.2 does not build with mesa 9.0.1
Status: RESOLVED DUPLICATE of bug 686885
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-11-17 14:01 UTC by Funda Wang
Modified: 2013-01-28 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Funda Wang 2012-11-17 14:01:40 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
Comment 1 Rob Bradford 2013-01-23 15:38:40 UTC
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 ***
Comment 2 Quentin "Sardem FF7" Glidic 2013-01-23 16:11:04 UTC
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.
Comment 3 Rob Bradford 2013-01-28 12:32:41 UTC
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.