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 - Fixed build with mesa 19.2.1
Summary: Fixed build with mesa 19.2.1
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-24 20:46 UTC by Alistair
Modified: 2019-10-25 21:55 UTC (History)
2 users (show)

See Also:


Attachments
Patch to fix build issue (1.90 KB, patch)
2019-10-24 20:46 UTC, Alistair
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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