Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99404 - www-misc/zoneminder CODEC_ID_MPEG2VIDEO' undeclared with mpeg support
Summary: www-misc/zoneminder CODEC_ID_MPEG2VIDEO' undeclared with mpeg support
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL: http://www.zoneminder.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 01:13 UTC by Peter Rosell
Modified: 2006-01-05 15:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Rosell 2005-07-18 01:13:47 UTC
When building www-misc/zoneminder-1.21.2 with mpeg support it fails with:
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int,
int, int)':
zm_mpeg.cpp:95: error: `CODEC_ID_MPEG2VIDEO' undeclared (first use this function)
zm_mpeg.cpp:95: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1

I found that I had version 0.4.7 of media-video/ffmpeg installed and that
version does not specify the CODEC_ID_MPEG2VIDEO enumeration. I upgraded to
version 0.4.9_p20050226-r5 and that fixed the compilation error. I don't known
which exact version that adds the missing CODEC_ID_MPEG2VIDEO.

Reproducible: Always
Steps to Reproduce:
1. emerge zoneminder
2.
3.

Actual Results:  
Compilation fails with:
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int,
int, int)':
zm_mpeg.cpp:95: error: `CODEC_ID_MPEG2VIDEO' undeclared (first use this function)
zm_mpeg.cpp:95: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1

Expected Results:  
Getting zonemineder merged. :-)

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 Celeron (Mendocino)
Gentoo Base System version 1.6.12
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.4
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.2-r5
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo
ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://ftp.caliu.info/pub/gentoo/
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups curl divx4linux eds
emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2
imap imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql
ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts
type1-fonts usb vorbis x86 xml2 xmms xosd xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 François-Xavier LAMARE 2005-10-10 01:56:33 UTC
Hi ! Had same problem with ffmpeg-0.4.9_p20050906.
Downgrading to  0.4.9_p20050226-r5 did the trick !

I assume some patching is needed over there...
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2006-01-05 15:32:44 UTC
Please try with zoneminder-1.21.4 and ffmpeg-0.4.9_p20051120 and reopen if needed