← Back to team overview

compiz team mailing list archive

[Bug 1095915] Re: opengl plugin FTBFS with clang


Launchpad has imported 1 comments from the remote bug at

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at

On 2013-01-04T07:45:12+00:00 Sam Spilsbury wrote:

glShaderSource is defined in the GLES2 spec as so:

void glShaderSource(	GLuint shader,
 	GLsizei count,
 	const GLchar **string,
 	const GLint *length);

However trunk mesa (and 9.1.0) has a definition like this:

GL_APICALL void         GL_APIENTRY glShaderSource (GLuint shader,
GLsizei count, const GLchar* const* string, const GLint* length);

The difference being const GLchar **string, vs const GLchar* const*

That means that if you have a function pointer to glShaderSource using
the old definition, and assign the new function to it, it will fail to

(And I know that code using function pointers to core functionality is
insane, but it is better than using ifdefs to switch between using
function pointers where that functionality is extension-only, and real
function declarations where it is core functionality)

Reply at: https://bugs.launchpad.net/compiz/+bug/1095915/comments/1

** Changed in: mesa
       Status: Unknown => Confirmed

** Changed in: mesa
   Importance: Unknown => Medium

You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.

  opengl plugin FTBFS with clang

To manage notifications about this bug go to: