Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305201 - www-misc/zoneminder-1.24.2 compile problem with media-libs/jpeg-8
Summary: www-misc/zoneminder-1.24.2 compile problem with media-libs/jpeg-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
: 315751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-15 08:45 UTC by Alex. P. Burlutsky
Modified: 2011-02-28 17:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for zoniminder with jpeg-8 (fix_jpeg.patch,2.62 KB, patch)
2010-02-15 08:49 UTC, Alex. P. Burlutsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex. P. Burlutsky 2010-02-15 08:45:14 UTC
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.
Comment 1 Alex. P. Burlutsky 2010-02-15 08:48:18 UTC
I fond a reason of this bug in:

http://www.zoneminder.com/forums/viewtopic.php?p=59468&sid=d9fe19e370609b0ad7e9ce361b4d1d83

and create fix (attached)
Comment 2 Alex. P. Burlutsky 2010-02-15 08:49:36 UTC
Created attachment 219743 [details, diff]
fix for zoniminder with jpeg-8
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-02-22 15:39:53 UTC
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
Comment 4 Oo.et.oO 2010-04-01 00:40:45 UTC
is this in the main portage tree yet?  
Comment 5 Oo.et.oO 2010-04-07 15:44:02 UTC
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
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2011-02-28 17:55:44 UTC
*** Bug 315751 has been marked as a duplicate of this bug. ***