#12633 closed defect (fixed)

sdl2 2.0.10 fails to compile on 32 bits

Reported by: tnut Owned by: Douglas R. Reno
Priority: normal Milestone: 9.1
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

I had to add following patch for a success compilation on 32 bits system.

https://github.com/NuTyX/packages-i686/blob/rolling/gui/sdl/sdl-2.0.10-gl-fix-1.patch

This time google was very discret on this issue so hope this can help.

Thierry

Change History (4)

comment:1 by Douglas R. Reno, 22 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

As a heads up, I've booted up my 32-bit machine and gotten it going for this and the mutter problem. Please continue to report any other issues if you have them and I'll get around to them ASAP.

comment:2 by thomas, 22 months ago

What was the issue with SDL2?

I recently compiled a complete new LFS-9.0 on 32bit (at least a 32bit VM) including X, Xfce etc... I didn't had to patch something and compile log of SDL2 looks good so far.

comment:3 by Douglas R. Reno, 21 months ago

Confirmed.

  CC     build/SDL_video.lo
In file included from include/SDL_opengles.h:33,
                 from /sources/SDL2-2.0.10/SDL2-2.0.10/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 /sources/SDL2-2.0.10/SDL2-2.0.10/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 /sources/SDL2-2.0.10/SDL2-2.0.10/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 /sources/SDL2-2.0.10/SDL2-2.0.10/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;
      |                   ^~~~~~~~
make: *** [Makefile:551: build/SDL_video.lo] Error 1
259.0 Elasped Time - SDL2-2.0.10
renodr [ /sources ]$ 

comment:4 by Douglas R. Reno, 21 months ago

Resolution: fixed
Status: assignedclosed

Fixed at r22327 Patch added at r4020 (patches repo)

Thanks again for reporting

Note: See TracTickets for help on using tickets.