Bug 76485 - mtypes.h:3842:4: error: unknown type name 'GLDEBUGPROC'
Summary: mtypes.h:3842:4: error: unknown type name 'GLDEBUGPROC'
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-22 18:06 UTC by Dâniel Fraga
Modified: 2014-03-22 19:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Dâniel Fraga 2014-03-22 18:06:38 UTC
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?
Comment 1 Dâniel Fraga 2014-03-22 19:23:05 UTC
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.