Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197621 - www-misc/zoneminder-1.22.3: build fails with "undefined reference to `img_convert'"
Summary: www-misc/zoneminder-1.22.3: build fails with "undefined reference to `img_con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 11:33 UTC by Mark L Pappin
Modified: 2008-02-23 14:40 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 Mark L Pappin 2007-10-31 11:33:59 UTC
Build fails at link, with or without ccache and distcc enabled:

zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
zm_mpeg.cpp:(.text+0x8a): undefined reference to `img_convert'


Reproducible: Always

Steps to Reproduce:
1. emerge --sync && emerge portage
2. emerge www-misc/zoneminder


Actual Results:  
Build failed.

Expected Results:  
Build succeeded.

# emerge --info
Portage 2.1.3.16 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Tue, 30 Oct 2007 20:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1, 2.18-r1, 2.18.50.0.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -O2 -march=athlon-xp "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/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/terminfo /etc/udev/rules.d"
CXXFLAGS=" -O2 -march=athlon-xp "
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://public.planetmirror.com/pub/gentoo/ ftp://public.planetmirror.com/pub/gentoo/ http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.Messina/gentoo-portage"
USE="3dnow X aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bittorrent branding bzip2 cairo ccache cdaudio cdda cddb cdparanoia cdr cg cgi chroot cli cpudetection cracklib crypt css cups dbm dbus dbx device-mapper dga directfb disk-partition diskio divx djbfft dmi dri dts dv dvb dvbplayer dvd dvdr dvdread eds emboss encode esd evo exif fam fame fastcgi fat fbcon fbsplash ffmpeg firefox flac flatfile fortran gd gdbm gif glibc-omitfp gmedia gmp gnome gphoto2 gpm gs gstreamer gtk hal iconv id3 imagemagick imlib ipv6 isdnlog java jpeg jpeg2k kde kerberos lame libwww lirc logrotate lzo lzw mad matroska mbox md5sum midi mikmod mime mjpeg mmx mmxext mng mod mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap multislot multitarget multiuser mysql nas ncurses net netpbm network nforce2 nfs nls nptl nptlonly nut nuv nvidia offensive ogg oggvorbis on-the-fly-crypt openal opengl openmp oss pam pcre pdf perl player png pnm portaudio posix pppd python qt3 qt3support qt4 quicktime radio rar readline real realmedia reflection rle rtc rtsp samba sdl session skey sndfile snmp sockets speex spell spl sse sse2 ssl stream submenu subtitles svg szip taglib tagwriting tcl tcpd tga themes theora threads tiff tk transcode transmitter truetype truetype-fonts ttmpeg2 tv_check tv_pick_cgi type1-fonts unicode ups v4l v4l2 vcd vdr vidix visualization vorbis vorbis-psy wav wavpack win32codecs wma wmf wmp x86 xanim xext xine xinerama xinetd xml xorg xpm xv xvid yaepg yv12 zip zlib" ALSA_CARDS="bt87x intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="nv vga vmware fbdev dummy"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gunnar Wrobel (RETIRED) gentoo-dev 2007-11-02 10:18:48 UTC
This bug originates from the ffmpeg library. Can you tell me which version of media-video/ffmpeg you have installed and which use flags are active?

Does rebuilding ffmpeg help? Probably not but I think it does not hurt trying ;)
Comment 2 Mark L Pappin 2007-11-04 06:42:12 UTC
(In reply to comment #1)
> Can you tell me which version of media-video/ffmpeg you have installed
> and which use flags are active?

# equery uses ffmpeg
[ Searching for packages matching ffmpeg... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-video/ffmpeg-0.4.9_p20070616-r2 ]
 U I
 + + X        : Adds support for X11
 - - a52      : Enables support for decoding ATSC A/52 streams used in DVD
 + + aac      : Enables support for MPEG-4 AAC Audio
 - - altivec  : Adds support for optimizations for G4 and G5/ppc970 processors
 - - amr      : Enables Adaptive Multi-Rate Audio support
 - - debug    : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml .
 - - doc      : Adds extra documentation (API, Javadoc, etc)
 + + encode   : Adds support for encoding of audio or video files
 - - ieee1394 : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
 + + imlib    : Adds support for imlib, an image loading and rendering library
 + + ipv6     : Adds support for IP version 6
 + + mmx      : Adds support for optimizations for Pentium MMX and Athlon class processors
 + + network  : Enables network streaming support
 + + ogg      : Adds support for the Ogg container format (commonly used by Vorbis, Theora and flac)
 + + oss      : Adds support for OSS (Open Sound System)
 + + sdl      : Adds support for Simple Direct Layer (media library)
 - - test     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore.
 + + theora   : Adds support for the Theora Video Compression Codec
 + + threads  : Adds threads support for various packages. Usually pthreads
 + + truetype : Adds support for FreeType and/or FreeType2 fonts
 + + v4l      : Enables video4linux support
 + + vorbis   : Adds support for the OggVorbis audio codec
 - - x264     : Enable h264 encoding using x264
 + + xvid     : Adds support for xvid.org's open-source mpeg-4 codec
 + + zlib     : Adds support for zlib (de)compression

> Does rebuilding ffmpeg help?

No.
Comment 3 Yohan 2007-11-14 02:38:15 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Can you tell me which version of media-video/ffmpeg you have installed
> > and which use flags are active?
> 
> # equery uses ffmpeg
> [ Searching for packages matching ffmpeg... ]
> [ Colour Code : set unset ]
> [ Legend : Left column  (U) - USE flags from make.conf              ]
> [        : Right column (I) - USE flags packages was installed with ]
> [ Found these USE variables for media-video/ffmpeg-0.4.9_p20070616-r2 ]
>  U I
>  + + X        : Adds support for X11
>  - - a52      : Enables support for decoding ATSC A/52 streams used in DVD
>  + + aac      : Enables support for MPEG-4 AAC Audio
>  - - altivec  : Adds support for optimizations for G4 and G5/ppc970 processors
>  - - amr      : Enables Adaptive Multi-Rate Audio support
>  - - debug    : Enable extra debug codepaths, like asserts and extra output. If
> you want to get meaningful backtraces see
> http://www.gentoo.org/proj/en/qa/backtraces.xml .
>  - - doc      : Adds extra documentation (API, Javadoc, etc)
>  + + encode   : Adds support for encoding of audio or video files
>  - - ieee1394 : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
>  + + imlib    : Adds support for imlib, an image loading and rendering library
>  + + ipv6     : Adds support for IP version 6
>  + + mmx      : Adds support for optimizations for Pentium MMX and Athlon class
> processors
>  + + network  : Enables network streaming support
>  + + ogg      : Adds support for the Ogg container format (commonly used by
> Vorbis, Theora and flac)
>  + + oss      : Adds support for OSS (Open Sound System)
>  + + sdl      : Adds support for Simple Direct Layer (media library)
>  - - test     : Workaround to pull in packages needed to run with
> FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
> make.conf/package.use anymore.
>  + + theora   : Adds support for the Theora Video Compression Codec
>  + + threads  : Adds threads support for various packages. Usually pthreads
>  + + truetype : Adds support for FreeType and/or FreeType2 fonts
>  + + v4l      : Enables video4linux support
>  + + vorbis   : Adds support for the OggVorbis audio codec
>  - - x264     : Enable h264 encoding using x264
>  + + xvid     : Adds support for xvid.org's open-source mpeg-4 codec
>  + + zlib     : Adds support for zlib (de)compression
> 
> > Does rebuilding ffmpeg help?
> 
> No.
> 

Seems like zoneminder hasn't enabled the ffmpeg swscaler yet...
http://www.zoneminder.com/forums/viewtopic.php?t=10567&start=0&postdays=0&postorder=asc&highlight=ffmpeg

I'm still stuck at it too... trying to figure things out...

Regards,
hoyanf
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-23 14:40:36 UTC
fixed in 1.23.1