compile problem with libjpeg8

Forum for questions and support relating to the 1.24.x releases only.
Locked
neb
Posts: 6
Joined: Wed Dec 17, 2008 12:21 am

compile problem with libjpeg8

Post 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.
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post 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
arekm
Posts: 21
Joined: Fri Nov 30, 2007 6:31 pm

Post by arekm »

The fix is just changing internal zoneminder function names, so how it can break anything?

Something else must be happening.
neb
Posts: 6
Joined: Wed Dec 17, 2008 12:21 am

Post by neb »

streams fine for me
86turbodsl
Posts: 2
Joined: Thu Jan 28, 2010 5:46 pm

Post 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.
arekm
Posts: 21
Joined: Fri Nov 30, 2007 6:31 pm

Post by arekm »

User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Thanks for the patch, arekm. One more step along the way. ;)
Rick Hewett
Locked