make[1]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2' Making all in src make[2]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2/src' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include -frepo -march=nocona -O2 -pipe -fomit -frame-pointer -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp In file included from zm_image.h:26, from zm_monitor.h:25, from zmc.cpp:28: 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: ошибка: 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 distcc[17193] ERROR: compile (null) on localhost failed make[2]: *** [zmc.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: emerge zoneminder Function naming conflict between zm and the newly released libjpeg release 8.
I fond a reason of this bug in: http://www.zoneminder.com/forums/viewtopic.php?p=59468&sid=d9fe19e370609b0ad7e9ce361b4d1d83 and create fix (attached)
Created attachment 219743 [details, diff] fix for zoniminder with jpeg-8
Thomas, I hope you don't mind, but I've committed this (the patch is obviously correct because since jpeg-8 it defines it's own jpeg_mem_src and jpeg_mem_dest in API) + 22 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> + +files/1.24.2/zm_jpeg.patch, zoneminder-1.24.2.ebuild: + Fix building with jpeg-8 (previous declaration of jpeg_mem_src and + jpeg_mem_dest) wrt #305201, thanks to Alex. P. Burlutsky for patch. The fix is backwards compatible with jpeg-6b/jpeg-7
is this in the main portage tree yet?
yeah, i see zm_jpeg.patch in files/1.24.2 but emerge still does not work for me: zm_jpeg.h:39: error: declaration of C function 'void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)' conflicts with as if the patch is not being applied. looking at the source in the temp source dir confirms this. the strange thing is that if i use ebuild compile, install, qmerge it works
*** Bug 315751 has been marked as a duplicate of this bug. ***