Page 1 of 1

compile problem with libjpeg8

Posted: Fri Feb 05, 2010 7:23 pm
by neb
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.

Posted: Sun Feb 07, 2010 1:24 am
by PeterHoward
Phil, have you done anything about this yet? I've got a bug logged in Debian against this problem, and _someone_ uploaded a "fixed" version of the package (to the Debian repo) to deal with this. Pity the fix broke streaming :-(

PJH

Posted: Tue Feb 09, 2010 10:05 pm
by arekm
The fix is just changing internal zoneminder function names, so how it can break anything?

Something else must be happening.

Posted: Thu Feb 11, 2010 9:08 pm
by neb
streams fine for me

Posted: Tue Feb 16, 2010 12:53 am
by 86turbodsl
This broke my zm install too. Still looking for a fix. I just updated libjpeg by mistake and borked a couple of programs.

Got it fixed, but good god what a pita. s l o w l y g o i n g b l i n d looking at code line by line...

FWIW, this bug prevented my daemon from starting.

Posted: Tue Feb 16, 2010 6:55 am
by arekm

Posted: Tue Mar 02, 2010 8:34 pm
by lazyleopard
Thanks for the patch, arekm. One more step along the way. ;)