ffmpeg won't compile when 'sdl' is set and xfree isn't installed. solution: add 'X? ( >=x11-base/xfree )' to DEPEND and change 'use sdl || myconf="${myconf} --disable-ffplay"' to 'use X && use sdl || myconf="${myconf} --disable-ffplay"' because ffplay depends on the Xlib of XFree86 Reproducible: Always Steps to Reproduce: 1. don't install xfree! 2. USE="sdl" emerge ffmpeg
Actually ffplay includes X11/Xlib.h for no apparent reason, so if you just remove that line from ffplay.c, you don't have problems, this is taken care of in the 0.4.8 ebuild I just committed.
Great :-)
Well .. this should really have been fixed for 0.4.7 also - this bug still exist in the currently stable 0.4.7, see below: gcc -Wl,--warn-common -rdynamic -g -o ffplay_g ffplay.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -logg -lvorbis -lvorbisenc -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread ffplay.o(.text+0x634): In function main': /home/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/ffplay.c:1692: undefined reference to XOpenDisplay' ffplay.o(.text+0x66a):/home/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/ffplay.c:1696: undefined reference to XCloseDisplay' collect2: ld returned 1 exit status make: *** [ffplay_g] Error 1 Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2) ================================================================= System uname: 2.4.25-gentoo-r2 i686 VIA C3 Ezra Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer -m3dnow -mmmx" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo ftp://ftp.du.se/pub/os/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow alsa apache2 berkdb cdr crypt curl directfb dvd dvdr emacs encode fbcon gd gdbm gif imap java jpeg junit jython libg++ libwww mad maildir mmx mpeg mule mysql ncurses nls nojoystick oav odbc oggvorbis pam perl png postgres python readline regexp samba sdl slang spell ssl svga tcpd truetype vhosts x86 xml xml2 xvid zlib"
Brian, have you contacted the ffmpeg developers regarding this issue? They might want to fix it upstream :)
Created attachment 31396 [details, diff] Ebuild patch that fixes the ffmpeg unneccessary xlib dependency This is the same fix already in 0.4.8