dk / Prima

prima.eu.org
Other
108 stars 27 forks source link

Compilation error on older Debian systems #57

Closed eserte closed 5 years ago

eserte commented 5 years ago

On older Debian systems (e.g. jessie) Prima does not compile anymore:

...
cc -c  -Iinclude -Iinclude/generic -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixma
n-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu  -fopenmp
 -fPIC -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -Wall   -DVERSION=\"1.53\" -DXS_VERSION=\"1.53\" -fPIC "-I/opt/perl-5.29.4t/lib/5.29
.4/x86_64-linux-thread-multi/CORE"   img/codec_gif.c -o img/codec_gif.o
img/codec_gif.c: In function 'init':
img/codec_gif.c:109:39: error: 'vd' undeclared (first use in this function)
  sscanf( GIF_LIB_VERSION, "%s %d.%d", vd, &codec_info.versionMaj, &codec_info.versionMin);
                                       ^
img/codec_gif.c:109:39: note: each undeclared identifier is reported only once for each function it appears in
Makefile:765: recipe for target 'img/codec_gif.o' failed
make: *** [img/codec_gif.o] Error 1