I'm trying to compile Mesa (latest GIT) and I always get the following error: 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:3837: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:106:28: error: unknown type name 'GLDEBUGPROC' _mesa_DebugMessageCallback(GLDEBUGPROC callback, ^ In file included from utils.c:40:0: dri_util.h:183:9: error: unknown type name '__DRIimageLoaderExtension' __DRIimageLoaderExtension *loader; ^ dri_util.h:298:1: error: unknown type name '__DRIimageDriverExtension' extern const __DRIimageDriverExtension driImageDriverExtension; ^ utils.c: In function 'driQueryRendererIntegerCommon': utils.c:501:9: error: '__DRI2_RENDERER_VERSION' undeclared (first use in this function) case __DRI2_RENDERER_VERSION: { ^ utils.c:501:9: note: each undeclared identifier is reported only once for each function it appears in utils.c:523:9: error: '__DRI2_RENDERER_OPENGL_CORE_PROFILE_VERSION' undeclared (first use in this function) case __DRI2_RENDERER_OPENGL_CORE_PROFILE_VERSION: ^ utils.c:527:9: error: '__DRI2_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION' undeclared (first use in this function) case __DRI2_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION: ^ utils.c:531:9: error: '__DRI2_RENDERER_OPENGL_ES_PROFILE_VERSION' undeclared (first use in this function) case __DRI2_RENDERER_OPENGL_ES_PROFILE_VERSION: ^ utils.c:535:9: error: '__DRI2_RENDERER_OPENGL_ES2_PROFILE_VERSION' undeclared (first use in this function) case __DRI2_RENDERER_OPENGL_ES2_PROFILE_VERSION: ^ Makefile:658: recipe for target 'utils.lo' failed make[6]: *** [utils.lo] Error 1 make[6]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa/drivers/dri/common' Makefile:705: recipe for target 'all-recursive' failed make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa/drivers/dri/common' Makefile:717: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa/drivers/dri' Makefile:3935: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa' Makefile:1393: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src/mesa' Makefile:528: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/usr/local/src/git/modular/x/mesa/mesa/src' Makefile:579: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 ****************************************************** Any hints?
This seems to be caused by Mesa searching for system header files instead of using the ones Mesa provides.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.