This is line 125 in osmesa.h
where the error occurs:
GLAPI OSMesaContext GLAPIENTRY
OSMesaCreateContext( GLenum format, OSMesaContext sharelist );
So my guess is that either GLAPI
or GLAPIENTRY
are not defined. We can see that glew.c
already defines GLAPI
at line 40 before it includes osmesa.h
:
# define GLAPI extern
# include <GL/osmesa.h>
The error might go away if you add an empty definition for GLAPIENTRY
at this same place:
# define GLAPIENTRY
But that’s just a guess. I don’t have either an intel compiler or a redhat-9 system to test with. Another possibility is that the gl.h
on your system is providing incorrect definitions for GLAPI
or GLAPIENTRY
for the intel compiler.