Bug 174616 - www-misc/zoneminder-1.22.3 fails to build with ffmpeg-0.4.9_p20070330
Bug#: 174616 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: web-apps@gentoo.org Reported By: xmit@gmx.de
Component: Applications
URL: 
Summary: www-misc/zoneminder-1.22.3 fails to build with ffmpeg-0.4.9_p20070330
Keywords:  
Status Whiteboard: 
Opened: 2007-04-14 20:19 0000
Description:   Opened: 2007-04-14 20:19 0000
During the emerge of www-misc/zoneminder-1.22.3 I get this error message:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include
-march=athlon64 -msse3 -O2 -pipe -MT zma.o -MD -MP -MF .deps/zma.Tpo -c -o
zma.o
 zma.cpp
distcc[14087] ERROR: compile /var/tmp/ccache/zm_monitor.tmp.lab2.14067.ii on
loc
alhost failed
/usr/include/ffmpeg/avformat.h: In function ?void av_init_packet(AVPacket*)?:
/usr/include/ffmpeg/avformat.h:66: error: ?INT64_C? was not declared in this
sco
pe
make[2]: *** [zm_monitor.o] Error 1


As a workaround I masked the latest version of ffmpeg:
echo "=media-video/ffmpeg-0.4.9_p20070330" >> /etc/portage/package.mask

Reproducible: Always

------- Comment #1 From Thomas Beutin 2007-04-16 16:01:56 0000 -------
IMHO the correct solution is to patch zoneminder according to
http://www.zoneminder.com/forums/viewtopic.php?t=8359&highlight=int64c+error
when using an newer ffmpeg version. Unfortunally i don't know to deal with this
in the ebuild system :(

------- Comment #2 From zakalwe 2007-04-17 02:24:24 0000 -------
Created an attachment (id=116487) [details]
Fix suggested by developer

------- Comment #3 From zakalwe 2007-04-17 02:28:34 0000 -------
Created an attachment (id=116488) [details]
Fixes build with new ffmpeg

Applies the patch suggested by upstream to fix the build with the new ffmpeg. 
I added ~amd64 because it works for me.

------- Comment #4 From CPUShare 2007-05-12 10:07:09 0000 -------
*** Bug 175402 has been marked as a duplicate of this bug. ***

------- Comment #5 From Renat Lumpau 2007-05-26 23:55:39 0000 -------
Done, thanks all