Page MenuHomePhabricator

GLintptr conflicts with GL headers from new Mesa on armv7 and i686
Closed, ResolvedPublic

Description

When I tried building EFL 1.21.1 on Fedora Rawhide that contains the latest mesa-18.3.0-1.fc30, it failed due some conflicts with GL headers on i686 and armv7, see bellow. This sounds like a 32-bit issue.

In file included from ../src/modules/evas/engines/gl_common/evas_gl_core.h:4,
                 from ../src/modules/evas/engines/gl_common/evas_gl_core_private.h:4,
                 from modules/evas/engines/gl_generic/evas_engine.c:2:
../src/lib/evas/Evas_GL.h:4276:19: error: conflicting types for 'GLintptr'
 typedef ptrdiff_t GLintptr;     // Changed khronos_intptr_t
                   ^~~~~~~~
In file included from /usr/include/GL/gl.h:2055,
                 from ../src/modules/evas/engines/gl_common/evas_gl_common.h:39,
                 from ../src/modules/evas/engines/gl_common/evas_gl_private.h:3,
                 from ../src/modules/evas/engines/gl_common/evas_gl_core_private.h:3,
                 from modules/evas/engines/gl_generic/evas_engine.c:2:
/usr/include/GL/glext.h:469:26: note: previous declaration of 'GLintptr' was here
 typedef khronos_intptr_t GLintptr;
                          ^~~~~~~~
In file included from ../src/modules/evas/engines/gl_common/evas_gl_core.h:4,
                 from ../src/modules/evas/engines/gl_common/evas_gl_core_private.h:4,
                 from modules/evas/engines/gl_generic/evas_engine.c:2:
../src/lib/evas/Evas_GL.h:4277:19: error: conflicting types for 'GLsizeiptr'
 typedef ptrdiff_t GLsizeiptr;   // Changed khronos_ssize_t
                   ^~~~~~~~~~
In file included from /usr/include/GL/gl.h:2055,
                 from ../src/modules/evas/engines/gl_common/evas_gl_common.h:39,
                 from ../src/modules/evas/engines/gl_common/evas_gl_private.h:3,
                 from ../src/modules/evas/engines/gl_common/evas_gl_core_private.h:3,
                 from modules/evas/engines/gl_generic/evas_engine.c:2:
/usr/include/GL/glext.h:468:25: note: previous declaration of 'GLsizeiptr' was here
 typedef khronos_ssize_t GLsizeiptr;
                         ^~~~~~~~~~

Please see https://koji.fedoraproject.org/koji/taskinfo?taskID=31386682 for full build logs, eg. https://kojipkgs.fedoraproject.org//work/tasks/6687/31386687/build.log