What I have here is a need to have FAAD support in mplayer (I want to play the Matrix: Reloaded trailer, and that requires FAAD audio support.) and the compile bails: "ad_faad.c:27:18: faad.h: No such file or directory". Reproducible: Always Steps to Reproduce: 1.place --enable-faad in the ebuild "myconfig" options 2.Start the emerge process Actual Results: gcc -c -O4 -march=athlon-tbird -mcpu=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -Inative -I.. -I../libmpdemux -I../loader -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -D_GNU_SOURCE -o ad_faad.o ad_faad.c ad_faad.c:27:18: faad.h: No such file or directory ad_faad.c:36: parse error before "faac_hdec" ad_faad.c:36: warning: data definition has no type or storage class ad_faad.c:37: parse error before "faac_finfo" ad_faad.c:37: warning: data definition has no type or storage class ad_faad.c: In function `preinit': ad_faad.c:42: `FAAD_MIN_STREAMSIZE' undeclared (first use in this function) ad_faad.c:42: (Each undeclared identifier is reported only once ad_faad.c:42: for each function it appears in.) ad_faad.c: In function `init': ad_faad.c:56: `faacDecConfigurationPtr' undeclared (first use in this function) ad_faad.c:56: parse error before "faac_conf" ad_faad.c:59: `faac_conf' undeclared (first use in this function) ad_faad.c:71: `FAAD_FMT_16BIT' undeclared (first use in this function) ad_faad.c:74: `FAAD_FMT_24BIT' undeclared (first use in this function) ad_faad.c:77: `FAAD_FMT_32BIT' undeclared (first use in this function) ad_faad.c: In function `decode_audio': ad_faad.c:173: warning: assignment makes pointer from integer without a cast ad_faad.c:179: request for member `bytesconsumed' in something not a structure or union ad_faad.c:182: request for member `bytesconsumed' in something not a structure or union ad_faad.c:183: request for member `bytesconsumed' in something not a structure or union ad_faad.c:186: request for member `error' in something not a structure or union ad_faad.c:191: `FAAD_MIN_STREAMSIZE' undeclared (first use in this function) ad_faad.c:198: warning: assignment makes pointer from integer without a cast ad_faad.c:205: request for member `error' in something not a structure or union ad_faad.c:207: request for member `error' in something not a structure or union ad_faad.c:208: request for member `samples' in something not a structure or union ad_faad.c:213: request for member `samples' in something not a structure or union ad_faad.c:214: request for member `samples' in something not a structure or union ad_faad.c:215: request for member `samples' in something not a structure or union make[1]: *** [ad_faad.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-0.90_rc5/work/MPlayer-0.90rc5/libmpcodecs' make: *** [libmpcodecs/libmpcodecs.a] Error 2 !!! ERROR: media-video/mplayer-0.90_rc5 failed. !!! Function src_compile, Line 245, Exitcode 2 !!! (no error message) Expected Results: Compile should of continued and completed root@localhost mplayer # emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/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/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 oss 3dnow apm arts avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo svga java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Oops forgot the version! Version is 0.90_rc5, and I have had the same in 0.90.
uh... never mind /me tired...
do you have a solution? i am on compiling faad2 now (ebuild here in bugzilla) and then ill try to recompile mplayer. perhaps it will work then...
Yes I compiled the faad2 ebuild that was posted on this bugzilla and then recompiled the same old mplayer-0.90 ebuild that is in portage and it picked up faad just fine and the Matrix trailer plays great. There were some wierd shade lines on the right side but I got my Matrix fix in.
great. works for me. compiled faad2 here from bugzilla and then added "--enable-faad" to the mplayer-0.90_rc5.ebuild.
"--enable-faad" is not needed if faad2 is already installed. faad2 is autodetected if it is installed. --enable-faad forces faad support to be compiled in even if faad2 is not present. That results in the failed compile.
azarah: should this be done before 1.4 ?
Same goes here. Installed faad2 and then recompiled mplayer without changes to mplayer's ebuild. Saw the trailer (and listened to it) without any troubles.
quicktime? (media-libs/faad2) in DEPEND should fix this one.
No. faad2 is a mpeg-2/4 audio decoding library.
Right, but the only flics that come with AAC audio are QT movies like animatrix... mpeg USE flag? I dont know...
Yes, that is what we have been thinking ...
Changed the faad2 support in -r1 to be included if 'mpeg' in USE.