Hi Gregor, [removing Bill Allombert from Cc as he was not involved in the transition to LJT]
$ grep -r MEM_SRCDST_SUPPORTED /usr/include /usr/include/x86_64-linux-gnu/jconfig.h:#define MEM_SRCDST_SUPPORTED 1 so #if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) should be sufficient. Cheers, -- Ondřej Surý <ond...@sury.org> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware, fast DNS(SEC) resolver On Wed, Jun 15, 2016, at 14:09, Gregor Jasny wrote: > Hello Bill and Ondřej, > > Do you know how to properly detect jpeg_mem_src presence in > libjpeg(turbo)? > > Since the transition to jpegturbo my package FTBFS: > > On 14/06/16 20:42, Chris Lamb wrote: > > In file included from jpeg.c:28:0: > > jpeg_memsrcdest.h:6:1: error: conflicting types for 'jpeg_mem_src' > > jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, > > ^ > > In file included from libv4lconvert-priv.h:31:0, > > from jpeg.c:26: > > /usr/include/jpeglib.h:923:14: note: previous declaration of > > 'jpeg_mem_src' was here > > EXTERN(void) jpeg_mem_src (j_decompress_ptr cinfo, > > ^ > > Would it make sense to change the check in the emulation layer [1] from > > #if JPEG_LIB_VERSION < 80 > > to > > #if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) > > or should I add a check during autoconf? > > Thanks, > Gregor > > [1] > https://git.linuxtv.org/v4l-utils.git/tree/lib/libv4lconvert/jpeg_memsrcdest.h