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 721299 - Conflict between GL and GLES headers
Conflict between GL and GLES headers
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
git master
Other Mac OS
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 725524 727749 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-01-01 11:23 UTC by Sebastian Dröge (slomo)
Modified: 2014-04-08 06:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2014-01-01 11:23:51 UTC
When compiling gst-plugins-gl with GL and GLES support, it currently fails like this on Debian/unstable. It worked not so long ago:

  CC       libgstgl_x11_la-gstglwindow_x11.lo
In file included from /usr/include/GL/gl.h:2085:0,
                 from ../../../../gst-libs/gst/gl/gstglapi.h:44,
                 from ../../../../gst-libs/gst/gl/gstgl_fwd.h:26,
                 from ../../../../gst-libs/gst/gl/gl.h:24,
                 from gstglwindow_x11.h:27,
                 from x11_event_source.h:25,
                 from gstglwindow_x11.c:31:
/usr/include/GL/glext.h:2169:26: error: conflicting types for 'GLDEBUGPROC'
 typedef void (APIENTRY  *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
                          ^
In file included from ../../../../gst-libs/gst/gl/gstglapi.h:31:0,
                 from ../../../../gst-libs/gst/gl/gstgl_fwd.h:26,
                 from ../../../../gst-libs/gst/gl/gl.h:24,
                 from gstglwindow_x11.h:27,
                 from x11_event_source.h:25,
                 from gstglwindow_x11.c:31:
/usr/include/GLES2/gl2ext.h:186:28: note: previous declaration of 'GLDEBUGPROC' was here
 typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
                            ^
In file included from /usr/include/GL/gl.h:2085:0,
                 from ../../../../gst-libs/gst/gl/gstglapi.h:44,
                 from ../../../../gst-libs/gst/gl/gstgl_fwd.h:26,
                 from ../../../../gst-libs/gst/gl/gl.h:24,
                 from gstglwindow_x11.h:27,
                 from x11_event_source.h:25,
                 from gstglwindow_x11.c:31:
/usr/include/GL/glext.h:2463:25: error: conflicting types for 'PFNGLDEBUGMESSAGECALLBACKPROC'
 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
                         ^
In file included from ../../../../gst-libs/gst/gl/gstglapi.h:31:0,
                 from ../../../../gst-libs/gst/gl/gstgl_fwd.h:26,
                 from ../../../../gst-libs/gst/gl/gl.h:24,
                 from gstglwindow_x11.h:27,
                 from x11_event_source.h:25,
                 from gstglwindow_x11.c:31:
/usr/include/GLES2/gl2ext.h:1083:28: note: previous declaration of 'PFNGLDEBUGMESSAGECALLBACKPROC' was here
 typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
                            ^
Comment 1 Matthew Waters (ystreet00) 2014-01-01 12:29:31 UTC
I remember that :)

Turned out to be a Mesa/Khronos problem that's since been fixed.

worksforme on Mesa 10.0.1
Comment 2 Sebastian Dröge (slomo) 2014-01-01 13:29:22 UTC
Confirmed, broken mesa headers.
Comment 3 Matthew Waters (ystreet00) 2014-03-03 07:26:16 UTC
*** Bug 725524 has been marked as a duplicate of this bug. ***
Comment 4 Matthew Waters (ystreet00) 2014-04-08 06:55:34 UTC
*** Bug 727749 has been marked as a duplicate of this bug. ***