compile problem with libjpeg8
Posted: Fri Feb 05, 2010 7:23 pm
It looks like there's a naming conflict between zm and the newly released libjpeg release 8. Here's the error that you'll likely see when you build it:
zm_jpeg.h:39: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
make[2]: *** [zmc.o] Error 1
jpeg_mem_[src|dest] are now taken by jpeglib.h What I did to make it work is to just rename all zm declarations and references to jpeg_mem_src2 and jpeg_mem_dest2.
Please update the zm source to correct this. Thanks.
zm_jpeg.h:39: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
make[2]: *** [zmc.o] Error 1
jpeg_mem_[src|dest] are now taken by jpeglib.h What I did to make it work is to just rename all zm declarations and references to jpeg_mem_src2 and jpeg_mem_dest2.
Please update the zm source to correct this. Thanks.