[Mesa-users] Mesa latest git compilation issue: mtypes.h:3842:4: error: unknown type name 'GLDEBUGPROC'

Brian Paul brianp at vmware.com
Sat Mar 22 11:12:06 PDT 2014


On 03/22/2014 12:02 PM, Dâniel Fraga wrote:
> On Tue, 4 Mar 2014 21:45:06 -0300
> Dâniel Fraga <fragabr at gmail.com> wrote:
>
>> 	I'm trying to compile the latest Mesa git
>> (5f23a2d9c2df7e7b860246be37b495e7fbea76ca) and I get these errors:
>>
>> make[6]: Entering directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa/drivers/dri/common'
>>    CC       utils.lo
>> In file included from ../../../../../src/mesa/main/errors.h:47:0,
>>                   from ../../../../../src/mesa/main/imports.h:41,
>>                   from ../../../../../src/mesa/main/macros.h:34,
>>                   from utils.c:35:
>> ../../../../../src/mesa/main/mtypes.h:3842:4: error: unknown type name 'GLDEBUGPROC'
>>      GLDEBUGPROC Callback;
>>      ^
>> In file included from ../../../../../src/mesa/main/imports.h:41:0,
>>                   from ../../../../../src/mesa/main/macros.h:34,
>>                   from utils.c:35:
>> ../../../../../src/mesa/main/errors.h:121:28: error: unknown type name 'GLDEBUGPROC'
>>   _mesa_DebugMessageCallback(GLDEBUGPROC callback,
>
> 	Nobody?
>

I'm not seeing that.

Line 3824 of mtypes.h reads:

    struct gl_debug_namespace 
Namespaces[MAX_DEBUG_GROUP_STACK_DEPTH][MESA_DEBUG_SOURCE_COUNT][MESA_DEBUG_TYPE_COUNT];

I don't see GLDEBUGPROC there.  It is present on line 3837 though.

It's defined in glext.h:

$ git grep GLDEBUGPROC
include/GL/glext.h:typedef void (APIENTRY  *GLDEBUGPROC)(GLenum 
source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar 
*message,const void *userParam);
include/GL/glext.h:typedef void (APIENTRYP 
PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void 
*userParam);
include/GL/glext.h:GLAPI void APIENTRY glDebugMessageCallback 
(GLDEBUGPROC callback, const void *userParam);
include/GL/glext.h:typedef void (APIENTRY  *GLDEBUGPROCARB)(GLenum 
source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar 
*message,const void *userParam);
include/GL/glext.h:typedef void (APIENTRYP 
PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void 
*userParam);
include/GL/glext.h:GLAPI void APIENTRY glDebugMessageCallbackARB 
(GLDEBUGPROCARB callback, const void *userParam);
include/GL/glext.h:typedef void (APIENTRY  *GLDEBUGPROCAMD)(GLuint 
id,GLenum category,GLenum severity,GLsizei length,const GLchar 
*message,void *userParam);
include/GL/glext.h:typedef void (APIENTRYP 
PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void 
*userParam);
include/GL/glext.h:GLAPI void APIENTRY glDebugMessageCallbackAMD 
(GLDEBUGPROCAMD callback, void *userParam);
include/GLES2/gl2ext.h:typedef void (GL_APIENTRY 
*GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum 
severity,GLsizei length,const GLchar *message,const void *userParam);
include/GLES2/gl2ext.h:typedef void (GL_APIENTRYP 
PFNGLDEBUGMESSAGECALLBACKKHRPROC) (GLDEBUGPROCKHR callback, const void 
*userParam);
include/GLES2/gl2ext.h:GL_APICALL void GL_APIENTRY 
glDebugMessageCallbackKHR (GLDEBUGPROCKHR callback, const void *userParam);
src/mapi/glapi/gen/ARB_debug_output.xml:        <param name="callback" 
type="GLDEBUGPROCARB"/>
src/mapi/glapi/gen/KHR_debug.xml:    <param name="callback" 
type="GLDEBUGPROC"/>
src/mesa/main/errors.c:_mesa_DebugMessageCallback(GLDEBUGPROC callback, 
const void *userParam)
src/mesa/main/errors.h:_mesa_DebugMessageCallback(GLDEBUGPROC callback,
src/mesa/main/mtypes.h:   GLDEBUGPROC Callback;

Can you run 'git grep' in your tree to compare?

I'd try a git pull to get the latest code.  5f23a2d9c2df7e is from March 
4th or so.

-Brian



More information about the mesa-users mailing list