Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180179 - media-video/ffmpeg - ffmpeg -vhook results in undefined symbol - exit_is_forbidden
Summary: media-video/ffmpeg - ffmpeg -vhook results in undefined symbol - exit_is_forb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 05:06 UTC by Yuval Hager
Modified: 2008-10-22 05:07 UTC (History)
0 users

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


Attachments
ebuild patched for exit_is_forbidden() (ffmpeg-0.4.9_p20070330.ebuild,6.33 KB, text/plain)
2007-06-22 15:48 UTC, Jesús P Rey (Chuso)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuval Hager 2007-05-29 05:06:05 UTC
Trying to run ffmpeg, I am getting the undefined symbol error:

$ ffmpeg -i hanafa3.wav -i hanafa.avi -ar 44100 -vhook '/usr/lib64/vhook/watermark.so -f yuki.gif' hanafa3-null.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-v4l --disable-v4l2 --disable-dv1394 --disable-network --disable-opts --enable-libmp3lame --enable-libvorbis --enable-libogg --enable-liba52 --enable-xvid --enable-x11grab --enable-libogg --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Apr 15 2007 08:48:12, gcc: 4.1.1 (Gentoo 4.1.1-r3)
Input #0, wav, from 'hanafa3.wav':
  Duration: 00:00:43.0, start: 0.000000, bitrate: 64 kb/s
  Stream #0.0: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
Input #1, avi, from 'hanafa.avi':
  Duration: 00:00:43.0, start: 0.000000, bitrate: 1223 kb/s
  Stream #1.0: Video: mjpeg, yuvj422p, 320x240, 10.00 fps(r)
  Stream #1.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
/usr/lib64/vhook/watermark.so: undefined symbol: exit_is_forbidden
Failed to add video hook function: /usr/lib64/vhook/watermark.so -f yuki.gif

This also happens with the null hook:
$ ffmpeg -i hanafa3.wav -i hanafa.avi -ar 44100 -vhook '/usr/lib64/vhook/null.so' hanafa3-null.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-v4l --disable-v4l2 --disable-dv1394 --disable-network --disable-opts --enable-libmp3lame --enable-libvorbis --enable-libogg --enable-liba52 --enable-xvid --enable-x11grab --enable-libogg --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Apr 15 2007 08:48:12, gcc: 4.1.1 (Gentoo 4.1.1-r3)
Input #0, wav, from 'hanafa3.wav':
  Duration: 00:00:43.0, start: 0.000000, bitrate: 64 kb/s
  Stream #0.0: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
Input #1, avi, from 'hanafa.avi':
  Duration: 00:00:43.0, start: 0.000000, bitrate: 1223 kb/s
  Stream #1.0: Video: mjpeg, yuvj422p, 320x240, 10.00 fps(r)
  Stream #1.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
/usr/lib64/vhook/null.so: undefined symbol: exit_is_forbidden
Failed to add video hook function: /usr/lib64/vhook/null.so


Reproducible: Always

Steps to Reproduce:
1. Run ffmpeg -vhook ''/usr/lib64/vhook/<anything>'
2.
3.

Actual Results:  
undefined symbol

Expected Results:  
no error

$ emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r2 x86_64 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 27 May 2007 05:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ "
LANG="he_IL.UTF-8"
LC_ALL="he_IL.UTF-8"
LINGUAS="he"
MAKEOPTS="-j 2"
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.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 apache2 arts asf avi berkdb bidi bitmap-fonts cairo cddb cdparanoia cdr cli cracklib crypt cups curl dbus divx4linux dri dv dvd dvdr dvdread emacs emboss emul-linux-x86 encode esd fam fame firefox foomaticdb fortran ftp gdbm geoip gif gpm gstreamer gtk gtk2 gzip hal iconv imagemagick imlib isdnlog java jpeg kde ldap libg++ mad midi mikmod mimencode mp3 mpeg mplayer msn mudflap mysql ncurses nls normalizemime nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session sockets spell spl ssl subtitles svg symlink tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis wma wmf xine xml xorg xv xvid yahoo zlib" 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="he" USERLAND="GNU" VIDEO_CARDS="via vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 05:50:56 UTC
Post the output of emerge -pv ffmpeg
Comment 2 Yuval Hager 2007-05-29 06:22:14 UTC
$ emerge -pv ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.4.9_p20070330  USE="X a52 aac encode imlib mmx ogg oss sdl threads* truetype vorbis xvid zlib (-altivec) -amr -debug -doc -dts -ieee1394 -network -test -theora -v4l -x264" 0 kB
Comment 3 James Le Cuirot gentoo-dev 2007-06-20 13:59:44 UTC
I believe this has already been fixed upstream. I encountered it and grabbed a newer snapshot as a result.
Comment 4 Jesús P Rey (Chuso) 2007-06-22 15:48:29 UTC
Created attachment 122811 [details]
ebuild patched for exit_is_forbidden()

Latest stable ebuild patched to avoid this problem as suggested in http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-March/026391.html
Comment 5 Yuval Hager 2007-06-27 19:06:52 UTC
I can confirm the attached ebuild solved the original problem
Comment 6 Alexis Ballier gentoo-dev 2008-10-22 05:07:08 UTC
should be fixed in current versions