When I compile libsdl with the following USE flags I am able to successfully emerge avifile. media-libs/libsdl-1.2.5-r1 +arts +xv +opengl +fbcon +aalib +nas +esd +X +svga +ggi +alsa However I normally use the following USE flag combination: media-libs/libsdl-1.2.5-r1 -arts -xv -opengl -fbcon -aalib -nas -esd +X +svga -ggi -alsa This makes compilation of avifile fail: Making all in misc make[2]: Entering directory `/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/samples/misc' /bin/sh ../../libtool --mode=link i686-pc-linux-gnu-g++ -g -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FIL$ i686-pc-linux-gnu-g++ -g -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -pipe$ ../../lib/.libs/libaviplay.so: undefined reference to `SDL_MixAudio' ../../lib/.libs/libaviplay.so: undefined reference to `SDL_PauseAudio' ../../lib/.libs/libaviplay.so: undefined reference to `SDL_CloseAudio' ../../lib/.libs/libaviplay.so: undefined reference to `SDL_OpenAudio' collect2: ld returned 1 exit status make[2]: *** [avibench] Error 1 make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/samples/misc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.29.20030204/work/avifile0.7-0.7.29/samples' make: *** [all-recursive] Error 1 !!! ERROR: media-video/avifile-0.7.29.20030204 failed. !!! Function src_compile, Line 139, Exitcode 2 !!! (no error message) Forgive me for not narrowing the USE flags down a little more. My cpu is not the most speedy in the world. imo this is a critical issue since the particular combination of USE flags in my make.conf would make it impossible to emerge gnome 2.2, which is what I was trying to do in the first place. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Pentium III (Coppermine) GENTOO_MIRRORS="ftp://sunsite.auc.dk/mirrors/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 avi encode gif jpeg libg++ mmx mpeg ncurses pdflib png qtmt quicktime spell truetype xml2 xmms gtkhtml slang readline tetex bonobo svga tcltk java guile gpm libwww perl python imlib gtk motif tcpd crypt tiff ssl pam X gtk2 gnome kde mozilla -sdl qt -3dfx -3dnow -aalib -acpi -apm -arts -cdr -cups -ldap -esd -fbcon -gdbm -ggi -ggz -gphoto2 -ipv6 -kerberos -matrox -mikmod -mysql -nas -oci8 -oggvorbis -opengl -oss -pcmcia -postgres -samba -scanner -voodoo3 -zeo -xv -nls -alsa -zlib -berkdb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -Os -pipe" CXXFLAGS="-march=i686 -Os -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
I have the following USE flags, and it fails to compile here too: +arts +xv +opengl -fbcon -aalib -nas +esd +X +svga +alsa -ggi This means that the problem is probably one of the following flags fbcon aalib nas ggi Those are the ones that differ from the USE flags that make it compile for the reporter of the problem. greetz, Marko No 5
I had the same problem. After adding "fbcon" to the USE-flags and reemerging libsdl, I could emerge succesfully the new "avifile".
Very possible that SDL compiles without sound support if no sound USE flags are given. Try to add at least one of oss, alsa, arts or esd. Ill say either 'oss' or 'alsa' should get it working.
avifile-0.7.32.20030219 has been added to portage. This version has --enable-oss set by default.