Summary: | =x11-drivers/ati-drivers-13.8_beta2 with mesa-9.2 - common/usr/include/GL/glATI.h:6009:25: error: conflicting types for ‘GLDEBUGPROCARB’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yichao Zhou <broken.zhou> |
Component: | [OLD] Library | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | heiko.baums, jekarlson, matthew, proxy-maint, vortexius, x11 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info |
Description
Yichao Zhou
2013-09-02 15:06:14 UTC
Conflict with mesa-9.2. Can you please attach the complete build log and comment with the output of `emerge --info`? Created attachment 357740 [details]
build.log
Created attachment 357742 [details]
emerge --info
i have this problem too. Attached build.log and emerge --info The issues stems from a recent change in the ARB_debug_output extension for OpenGL. According to the specification (available at: http://www.opengl.org/registry/specs/ARB/debug_output.txt ), there was a change on July 8th (v17) that changed a parameter to a callback from a void pointer to a const void pointer. Mesa 9.2 has incorporated this change, however AMD's driver has not. Thus, the includes files have different definitions for the callback, and gcc complains. Locally, I removed the AMD specific header (glATI.h) from being included in the fgl_glxgears.c file, and this seemed to fix the issue without causing any further errors, however it leaves glATI.h with the incorrect definition. Thus, I'm not sure how Gentoo would prefer this issue to be solved. I'd be happy to prepare a patch if you let me know which you prefer: 1) Patch fgl_glxgears.c to not include glATI.h, since it doesn't appear to be necessary (at least with mesa 9.2). This only leaves glATI.h to have the incompatible definition. 2) Patch glATI.h to have the same definition. This will break with older versions of mesa though, since mesa 9.1 had the older (and at the time correct) definition. (In reply to Matthew Dawson from comment #6) > The issues stems from a recent change in the ARB_debug_output extension for > OpenGL. According to the specification (available at: > http://www.opengl.org/registry/specs/ARB/debug_output.txt ), there was a > change on July 8th (v17) that changed a parameter to a callback from a void > pointer to a const void pointer. Mesa 9.2 has incorporated this change, > however AMD's driver has not. Thus, the includes files have different > definitions for the callback, and gcc complains. > > Locally, I removed the AMD specific header (glATI.h) from being included in > the fgl_glxgears.c file, and this seemed to fix the issue without causing > any further errors, however it leaves glATI.h with the incorrect definition. > Thus, I'm not sure how Gentoo would prefer this issue to be solved. I'd be > happy to prepare a patch if you let me know which you prefer: > 1) Patch fgl_glxgears.c to not include glATI.h, since it doesn't appear to > be necessary (at least with mesa 9.2). This only leaves glATI.h to have the > incompatible definition. > 2) Patch glATI.h to have the same definition. This will break with older > versions of mesa though, since mesa 9.1 had the older (and at the time > correct) definition. Thanks, implemented 1 in x11 overlay. I tested it also without mesa, seems to work just fine. Fixed in CVS. |