Trying to build paraview on Rocky 9.5, with OSMesa installed we get the following odd errors:
In file included from /home/paraview/src/VTK/ThirdParty/glew/vtkglew/src/glew.c(41):
/usr/include/GL/osmesa.h(125): error: expected a ";"
OSMesaCreateContext( GLenum format, OSMesaContext sharelist );
^
In file included from /home/paraview/src/VTK/ThirdParty/glew/vtkglew/src/glew.c(41):
/usr/include/GL/osmesa.h(138): error: expected a ";"
OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits,
In file included from /home/paraview/src/VTK/ThirdParty/glew/vtkglew/src/glew.c(41):
/usr/include/GL/osmesa.h(176): error: declaration is incompatible with "OSMesaContext APIENTRY" (declared at line 124)
GLAPI void APIENTRY
^
Any idea why is this happening?