Control: reassign -1 libjpeg62-turbo-dev Control: tags -1 +patch Control: affects -1 vice
Hi Alastair, On Tue, Sep 21, 2021 at 6:00 PM Alastair McKinstry <mckins...@debian.org> wrote: > checking for jpeglib.h... no > configure: error: JPEG support is missing > make[1]: *** [debian/rules:18: override_dh_auto_configure] Error 1 The reason is simple, src:libjpeg-turbo started to use FILE in its jpeglib.h header without including stdio.h first. See the minimal reproducer (similar to what vice configure script tries to find out if jpeglib.h is present) below. -- jpegtest.c -- #include <stddef.h> #include <jpeglib.h> int main(void) { return 0; } -- jpegtest.c -- When you try to compile it with 'gcc -Wall jpegtest.c -o jpegtest' you get: In file included from jpegtest.c:2: /usr/include/jpeglib.h:916:52: error: unknown type name ‘FILE’ 916 | EXTERN(void) jpeg_stdio_dest(j_compress_ptr cinfo, FILE *outfile); | ^~~~ /usr/include/jpeglib.h:32:1: note: ‘FILE’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’? 31 | #include "jmorecfg.h" /* seldom changed options */ +++ |+#include <stdio.h> 32 | /usr/include/jpeglib.h:917:53: error: unknown type name ‘FILE’ 917 | EXTERN(void) jpeg_stdio_src(j_decompress_ptr cinfo, FILE *infile); | ^~~~ /usr/include/jpeglib.h:917:53: note: ‘FILE’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’? If I put '#include <stdio.h>' into jpeglib.h after the JPEGLIB_H definition (ie, to line twenty) that fixes this problem. Regards, Laszlo/GCS