Won't build against `sdl2-compat`

Description:

Unable to build with sdl2 replaced by sdl2-compat

FAILED: operations/external/sdl2-display.so.p/sdl2-display.c.o
ccache cc -Ioperations/external/sdl2-display.so.p -Ioperations/external -I../gegl/operations/external -I. -I../gegl -Igegl -I../gegl/gegl -Igegl/buffer -I../gegl/gegl/buffer -Igegl/graph -I../gegl/gegl/graph -Igegl/module -I../gegl/gegl/module -Igegl/opencl -I../gegl/gegl/opencl -Igegl/operation -I../gegl/gegl/operation -Igegl/process -I../gegl/gegl/process -Igegl/property-types -I../gegl/gegl/property-types -I/usr/include/babl-0.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/gio-unix-2.0 -I/usr/include/SDL2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -DHAVE_CONFIG_H -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-unused-parameter -Wno-cast-function-type -Wmissing-prototypes -Wold-style-definition -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MD -MQ operations/external/sdl2-display.so.p/sdl2-display.c.o -MF operations/external/sdl2-display.so.p/sdl2-display.c.o.d -o operations/external/sdl2-display.so.p/sdl2-display.c.o -c ../gegl/operations/external/sdl2-display.c
../gegl/operations/external/sdl2-display.c: In function init_sdl:
../gegl/operations/external/sdl2-display.c:59:11: error: implicit declaration of function fprintf [-Wimplicit-function-declaration]
   59 |           fprintf (stderr, "Unable to init SDL: %s\n", SDL_GetError ());
      |           ^~~~~~~
../gegl/operations/external/sdl2-display.c:38:1: note: include <stdio.h> or provide a declaration of fprintf
   37 | #include <SDL.h>
  +++ |+#include <stdio.h>
   38 |
../gegl/operations/external/sdl2-display.c:59:11: warning: incompatible implicit declaration of built-in function fprintf [-Wbuiltin-declaration-mismatch]
   59 |           fprintf (stderr, "Unable to init SDL: %s\n", SDL_GetError ());
      |           ^~~~~~~
../gegl/operations/external/sdl2-display.c:59:11: note: include <stdio.h> or provide a declaration of fprintf
../gegl/operations/external/sdl2-display.c:59:20: error: stderr undeclared (first use in this function)
   59 |           fprintf (stderr, "Unable to init SDL: %s\n", SDL_GetError ());
      |                    ^~~~~~
../gegl/operations/external/sdl2-display.c:59:20: note: stderr is defined in header <stdio.h>; this is probably fixable by adding ‘#include <stdio.h>
../gegl/operations/external/sdl2-display.c:59:20: note: each undeclared identifier is reported only once for each function it appears in
../gegl/operations/external/sdl2-display.c: In function process:
../gegl/operations/external/sdl2-display.c:116:15: warning: incompatible implicit declaration of built-in function fprintf [-Wbuiltin-declaration-mismatch]
  116 |               fprintf (stderr, "Unable to create window: %s\n",
      |               ^~~~~~~
../gegl/operations/external/sdl2-display.c:116:15: note: include <stdio.h> or provide a declaration of fprintf
../gegl/operations/external/sdl2-display.c:116:24: error: stderr undeclared (first use in this function)
  116 |               fprintf (stderr, "Unable to create window: %s\n",
      |                        ^~~~~~
../gegl/operations/external/sdl2-display.c:116:24: note: stderr is defined in header <stdio.h>; this is probably fixable by adding ‘#include <stdio.h>
../gegl/operations/external/sdl2-display.c:127:11: warning: incompatible implicit declaration of built-in function fprintf [-Wbuiltin-declaration-mismatch]
  127 |           fprintf (stderr, "Unable to create surface: %s\n",
      |           ^~~~~~~
../gegl/operations/external/sdl2-display.c:127:11: note: include <stdio.h> or provide a declaration of fprintf
../gegl/operations/external/sdl2-display.c:137:11: warning: incompatible implicit declaration of built-in function fprintf [-Wbuiltin-declaration-mismatch]
  137 |           fprintf (stderr, "Unable to create texture: %s\n",
      |           ^~~~~~~
../gegl/operations/external/sdl2-display.c:137:11: note: include <stdio.h> or provide a declaration of fprintf

Additional info:

  • package version(s): gelg:0.4.52,sdl2-compat:2.30.50
  • config and/or log files:
  • link to upstream bug report, if any: