GNOME Bugzilla – Bug 721299
Conflict between GL and GLES headers
Last modified: 2014-04-08 06:55:34 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); ^
I remember that :) Turned out to be a Mesa/Khronos problem that's since been fixed. worksforme on Mesa 10.0.1
Confirmed, broken mesa headers.
*** Bug 725524 has been marked as a duplicate of this bug. ***
*** Bug 727749 has been marked as a duplicate of this bug. ***