Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281198 - www-misc/zoneminder-1.24.2 fails to compile
Summary: www-misc/zoneminder-1.24.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 11:29 UTC by Neil Bothwick
Modified: 2011-03-20 11:22 UTC (History)
8 users (show)

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


Attachments
build log (www-misc:zoneminder-1.24.2:20090812-112447.log,32.42 KB, text/plain)
2009-08-12 11:30 UTC, Neil Bothwick
Details
ebuild environment (environment,131.12 KB, text/plain)
2009-08-12 11:31 UTC, Neil Bothwick
Details
ebuild environment (environment,131.12 KB, text/plain)
2009-08-12 11:31 UTC, Neil Bothwick
Details
Patch for compile zoneminder-1.24.2 (fix_compilation.patch,603 bytes, patch)
2010-03-28 16:40 UTC, Geaaru
Details | Diff
errorlog (zoneminder-1.24.2-compile-error.txt,19.67 KB, text/plain)
2010-08-09 00:01 UTC, RNZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Bothwick 2009-08-12 11:29:37 UTC
www-misc/zoneminder-1.24.1 installed but trying to build 1.24.2 gives this

In file included from zm_rtsp.h:26,
                 from zm_rtp_data.cpp:27:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
mv -f .deps/zm_rtp_data.Tpo .deps/zm_rtp_data.Po
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=core2 -O2 -pipe -MT zm_rtp_source.o -MD -MP -MF .deps/zm_rtp_source.Tpo -c -o zm_rtp_source.o zm_rtp_source.cpp
mv -f .deps/zm_rtp_source.Tpo .deps/zm_rtp_source.Po
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=core2 -O2 -pipe -MT zm_rtsp.o -MD -MP -MF .deps/zm_rtsp.Tpo -c -o zm_rtsp.o zm_rtsp.cpp
In file included from zm_rtsp.h:26,
                 from zm_rtsp.cpp:25:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'bool RtspThread::recvResponse(std::string&)':
zm_rtsp.cpp:72: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:84: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'virtual int RtspThread::run()':
zm_rtsp.cpp:246: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:258: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp:314: warning: format not a string literal and no format arguments
zm_rtsp.cpp:569: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp:581: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp:594: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
mv -f .deps/zm_rtsp.Tpo .deps/zm_rtsp.Po
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=core2 -O2 -pipe -MT zm_sdp.o -MD -MP -MF .deps/zm_sdp.Tpo -c -o zm_sdp.o zm_sdp.cpp
mv -f .deps/zm_sdp.Tpo .deps/zm_sdp.Po
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=core2 -O2 -pipe -MT zm_signal.o -MD -MP -MF .deps/zm_signal.Tpo -c -o zm_signal.o zm_signal.cpp
mv -f .deps/zm_signal.Tpo .deps/zm_signal.Po
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=core2 -O2 -pipe -MT zm_stream.o -MD -MP -MF .deps/zm_stream.Tpo -c -o zm_stream.o zm_stream.cpp
mv -f .deps/zm_stream.Tpo .deps/zm_stream.Po
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=core2 -O2 -pipe -MT zm_thread.o -MD -MP -MF .deps/zm_thread.Tpo -c -o zm_thread.o zm_thread.cpp
mv -f .deps/zm_thread.Tpo .deps/zm_thread.Po
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=core2 -O2 -pipe -MT zm_time.o -MD -MP -MF .deps/zm_time.Tpo -c -o zm_time.o zm_time.cpp
mv -f .deps/zm_time.Tpo .deps/zm_time.Po
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=core2 -O2 -pipe -MT zm_timer.o -MD -MP -MF .deps/zm_timer.Tpo -c -o zm_timer.o zm_timer.cpp
mv -f .deps/zm_timer.Tpo .deps/zm_timer.Po
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=core2 -O2 -pipe -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
mv -f .deps/zm_user.Tpo .deps/zm_user.Po
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=core2 -O2 -pipe -MT zm_utils.o -MD -MP -MF .deps/zm_utils.Tpo -c -o zm_utils.o zm_utils.cpp
distcc[22178] ERROR: compile (null) on localhost failed
zm_utils.cpp: In function 'const std::string stringtf(const char*, ...)':
zm_utils.cpp:32: error: 'vsnprintf' was not declared in this scope
zm_utils.cpp: In function 'const std::string stringtf(const std::string&, ...)':
zm_utils.cpp:47: error: 'vsnprintf' was not declared in this scope
make[2]: *** [zm_utils.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
 *
 * ERROR: www-misc/zoneminder-1.24.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3600:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/www-misc:zoneminder-1.24.2:20090812-112447.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/environment'.
 *

=============================================================================

% emerge --info
Portage 2.2_rc38 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 12 Aug 2009 05:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="assume-digests buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/mnt/portage/packages/zaphod"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/layman/sunrise /mnt/portage/local"
SYNC="rsync://desiato/gentoo"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 audiofile berkdb branding bzip2 cairo cddb cdr cli cracklib crypt css cups curl dbus directfb dv dvb dvd dvdr encode exif fam ffmpeg flac foomaticdb gdbm gif gimp gnutls gpg gphoto2 gpm gtk hal iconv id3 ieee1394 imagemagick imap isdnlog jabber java jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdeprefix kipi libnotify libwww lirc lm_sensors mad mailwrapper matroska mmx mmxext mng mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql ncurses nptl nptlonly nsplugin ntfs nvidia offensive ogg opengl openmp oss pcre pda pdf png ppds pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs samba scanner sdl session slp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vnc vorbis wav webkit x264 xcb xcomposite xfs xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib zsh-completion zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon nikon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="devinput mceusb mceusb2" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Neil Bothwick 2009-08-12 11:30:14 UTC
Created attachment 201017 [details]
build log
Comment 2 Neil Bothwick 2009-08-12 11:31:08 UTC
Created attachment 201019 [details]
ebuild environment
Comment 3 Neil Bothwick 2009-08-12 11:31:21 UTC
Created attachment 201020 [details]
ebuild environment
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-08-12 11:37:01 UTC
Have you tried without distcc?
Comment 5 Neil Bothwick 2009-08-12 13:07:35 UTC
Yes I have, I've also tried withUSE=-ffmpeg, neither helped. Sorry, should have mentioned that.
Comment 6 Beppe 2009-09-21 21:20:39 UTC
How about clear ccahce if you even use it?
Comment 7 Beppe 2009-09-21 21:35:47 UTC
Sorry mate, it was a previously problem i got.

This on helped me http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg654981.html


Cheers,
Beppe 
Comment 8 Eugene Rosenzweig 2009-10-03 13:44:50 UTC
I concur with link given in Comment #7, adding #include <stdio.h> to zm_utils.h has eliminated the error. The guy in the link thinks it is a gcc header issue but /src/utils/stdio.h belongs to glibc, is this a glibc issue? Either way the headers have changed and have broken the build, I made a patch to add the above include, made a copy of ebuild with the patch added and zoneminder emerged without any more problems. My emerge --info:

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.5-r1 i686)
=================================================================
System uname: Linux-2.6.30.5-r1-i686-Pentium_III_-Coppermine-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 03 Oct 2009 11:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r2, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="mmx nptl nptlonly pam pcre ssl threads truetype x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Gerrit Kühn 2010-03-04 13:00:56 UTC
(In reply to comment #8)

> Either way the
> headers have changed and have broken the build, I made a patch to add the above
> include, made a copy of ebuild with the patch added and zoneminder emerged
> without any more problems. My emerge --info:

Could someone please commit this patch to the ebuild or convince the maintainer to incorporate it upstream or depend on gcc 4.3 for building?
Like this, the port is simply broken.


cu
  Gerrit
Comment 10 Geaaru 2010-03-28 16:40:26 UTC
Created attachment 225581 [details, diff]
Patch for compile zoneminder-1.24.2

Hi, this patch fix compilation.
Command to add on ebuild:

        epatch "${FILESDIR}"/${PATCH_PV}/fix_compilation.patch

Please, add this patch ASAP. For me works.

Bye 
Ge@@ru
Comment 11 Geaaru 2010-03-28 17:27:00 UTC
I try a second time without ebuild command and i have some problems... it seems that command on ebuild
emake -j1 
doesn't work because i have always more of one job that start. If i try to compile directly on /var/tmp/portage/... directory (after a make clean) all works fine and there is only a job.

I don't understand yet why with only -j1 doesn't work.
Comment 12 RNZ 2010-08-09 00:01:52 UTC
Created attachment 241905 [details]
errorlog

Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder
 * zoneminder does not parallel build... using forcing make -j1...
make  all-recursive
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'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -march=core2 -O2 -pipe -msse4 -fomit-frame-pointer -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_mpeg.h:23,
                 from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
Comment 13 RNZ 2010-08-09 00:06:23 UTC
Error on compile zoneminder-1.24.2:
Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder
 * zoneminder does not parallel build... using forcing make -j1...
make  all-recursive
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'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -march=core2 -O2 -pipe -msse4 -fomit-frame-pointer -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_mpeg.h:23,
                 from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"

--
[I] media-video/ffmpeg-0.6 (21:09:04 08.08.2010) (3dnow 3dnowext X alsa amr custom-cflags encode faac hardcoded-tables jpeg2k mmx mmxext mp3 network schroedinger sdl speex ssse3 theora threads v4l v4l2 vdpau video_cards_nvidia vorbis x264 xvid zlib -altivec -bindist -cpudetection -debug -dirac -doc -faad -gsm -ieee1394 -jack -oss -pic -rtmp -test -vaapi -vpx)


--
$ emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo i686)
=================================================================
System uname: Linux-2.6.35-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 07 Aug 2010 01:45:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86
Comment 14 RNZ 2010-08-09 01:13:40 UTC
compile on next:
$ wget http://bugs.gentoo.org/attachment.cgi?id=225581
$ sudo cp fix_compilation.patch /usr/portage/www-misc/zoneminder/files/1.24.2/
$ sudo vim /usr/portage/www-misc/zoneminder/zoneminder-1.24.2.ebuild #add epatch "${FILESDIR}"/${PATCH_PV}/fix_compilation.patch
$ sudo vim ebuild /usr/portage/www-misc/zoneminder/zoneminder-1.24.2.ebuild digest
$ sudo emerge -av1 =zoneminder-1.24.2 # fail
$ sudo su -
# cd /var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2
CPPFLAGS="-D__STDC_CONSTANT_MACROS" ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-libarch=lib --with-mysql=/usr --with-ffmpeg --with-webdir=/var/www/zoneminder/htdocs --with-cgidir=/var/www/zoneminder/cgi-bin --with-webuser=apache --with-webgroup=apache --enable-debug=no --enable-crashtrace=no
# autoconf
# aclocal
# automake
# make
# mysql -u root -p <> db/zm_create.sql
# mysql -u root -p
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
# make install
Comment 15 Sebastian Flothow 2010-09-03 16:13:04 UTC
I had the same problem as described in Comment #12, and fixed it in a rather ugly fashion by patching /usr/include/libavutil/common.h like so:

--- common.h    2010/09/03 15:35:01     1.1
+++ common.h    2010/09/03 16:06:14     1.2
@@ -144,6 +144,12 @@
     else                      return a;
 }
 
+# if __WORDSIZE == 64
+#  define UINT64_C(c)   c ## UL
+# else
+#  define UINT64_C(c)   c ## ULL
+# endif
+
 /**
  * Clips a signed 64-bit integer value into the -2147483648,2147483647 range.
  * @param a value to clip

The definition of UINT64_C has been taken from stdint.h, which is actually included by libavutil/common.h (via inttypes.h), though it's dependent on some #ifdefs there, and I didn't fell like unravelling them since I had to get ZoneMinder running again quickly. 
Comment 16 Stephen Kirkby 2010-09-25 11:30:28 UTC
I too was getting the errors stated in comment #12. Bug #320081 has a solution which worked for me without requiring the fix_compilation patch - might be worth a try if people are still struggling. Possible bug duplicate?
Comment 17 Kurush Kaviani 2010-10-08 08:51:45 UTC
(In reply to comment #16)
> I too was getting the errors stated in comment #12. Bug #320081 has a solution
> which worked for me without requiring the fix_compilation patch - might be
> worth a try if people are still struggling. Possible bug duplicate?
> 

I confirm, this suggestion also worked for me ( just add CXXFLAGS=-D__STDC_CONSTANT_MACROS to /etc/portage/env/www-misc/zoneminder ) solved the compile issue.
Comment 18 Jon Gerdes 2010-11-06 17:58:59 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > I too was getting the errors stated in comment #12. Bug #320081 has a solution
> > which worked for me without requiring the fix_compilation patch - might be
> > worth a try if people are still struggling. Possible bug duplicate?
> > 
> 
> I confirm, this suggestion also worked for me ( just add
> CXXFLAGS=-D__STDC_CONSTANT_MACROS to /etc/portage/env/www-misc/zoneminder )
> solved the compile issue.
> 

... and me too.  Thank you very much for the fix.

Cheers
Jon
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2011-03-20 11:22:18 UTC
The original reason why this bug was filed, Comment #0, has been fixed with this commit:

  02 Jun 2010; Alex Alexander <wired@gentoo.org>
  +files/1.24.2/zm_build_fix.patch, zoneminder-1.24.2.ebuild:
  fixed 1.24.2 build error