Compiling on Ubuntu 16.04
I was getting an error while installing SDL2 with file: sdl2-internals.c and wanted to log my solution here in the case someone has the same issue. This is on Ubuntu 16.04 64bit, Chicken: Version 126.96.36.199 (stability/4.9.0) (rev 8b3189b)
'/usr/bin/csc' -feature compiling-extension -setup-mode -J -s -O3 -d1 -I/usr/include/SDL2 -D_REENTRANT -L/usr/lib/x86_64-linux-gnu -lSDL2 -emit-type-file sdl2-internals.types sdl2-internals.scm sdl2-internals.c: In function ‘stub21532’: sdl2-internals.c:4072:1: error: format not a string literal and no format arguments [-Werror=format-security] SDL_SetError(t0);
This was solved by adding the -w flag to SDL2_FLAGS:
SDL2_FLAGS="-I/usr/include/SDL2 -w -D_REENTRANT....
I found the solution here: