Subject: | Compilation fails on debian/stretch and Ubuntu 16.04 |
On newer debian-like systems the module does not compile anymore:
...
cc -c -I. -I/usr/local/include -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/opt/perl-5.25.12/lib/5.25.12/x86_64-linux/CORE" -DHAVE_PNG -DHAVE_GIF XS.c
In file included from XS.xs:23:0:
src/swf_gif.c: In function âgifconv_gif2losslessâ:
src/swf_gif.c:135:15: error: too few arguments to function âDGifOpenâ
GifFile = DGifOpen(& gif_buff, gif_data_read_func);
^
In file included from src/swf_gif.c:14:0,
from XS.xs:23:
/usr/include/gif_lib.h:182:14: note: declared here
GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error); /* new one (TVT) */
^
In file included from XS.xs:23:0:
src/swf_gif.c:142:9: error: too few arguments to function âDGifCloseFileâ
DGifCloseFile(GifFile);
^
... (etc.) ...