We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4846

Summary: Fixed build with mesa 19.2.1
Product: SDL Reporter: Alistair <alistair>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: alistair, sylvain.becker
Version: HG 2.1   
Hardware: x86   
OS: Linux   
Attachments: Patch to fix build issue

Description Alistair 2019-10-24 20:46:24 UTC
Created attachment 4018 [details]
Patch to fix build issue

Fix the following two build failures when building for x86 with mesa 19.2.1

In file included from /include/SDL_opengles.h:33,
                 from /src/video/SDL_video.c:41:
/usr/include/GLES/gl.h:63:25: error: conflicting types for 'GLsizeiptr'
  63 | typedef khronos_ssize_t GLsizeiptr;
     |                         ^~~~~~~~~~
In file included from /include/SDL_opengl.h:2105,
                from /src/video/SDL_video.c:37:
/include/SDL_opengl_glext.h:472:19: note: previous declaration of 'GLsizeiptr' was here
 472 | typedef ptrdiff_t GLsizeiptr;
     |                   ^~~~~~~~~~


In file included from /include/SDL_opengles.h:33,
                from /src/video/SDL_video.c:41:
/usr/include/GLES/gl.h:64:26: error: conflicting types for 'GLintptr'
  64 | typedef khronos_intptr_t GLintptr;
     |                          ^~~~~~~~
In file included from /include/SDL_opengl.h:2105,
                from /src/video/SDL_video.c:37:
/include/SDL_opengl_glext.h:473:19: note: previous declaration of 'GLintptr' was here
 473 | typedef ptrdiff_t GLintptr;
     |                   ^~~~~~~~
Comment 1 Sylvain 2019-10-25 13:35:10 UTC
Isn't this fixed by this one ?

Fixed bug 4797 - SDL fails to compile with Mesa Master (thanks Michael Olbrich!)
https://hg.libsdl.org/SDL/rev/369b01006eb2
Comment 2 Alistair 2019-10-25 21:54:51 UTC
Ah yes it is. This build failure is for the release, not the latest. This is no longer an issue.
Comment 3 Alistair 2019-10-25 21:55:30 UTC
Already fixed