Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54311 - faad2-2.0-r2 fails to compile with "invalid conversion from `int' to `audio_format_t'"
Summary: faad2-2.0-r2 fails to compile with "invalid conversion from `int' to `audio_f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 07:56 UTC by Gregg Casillo
Modified: 2005-11-09 20:21 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 Gregg Casillo 2004-06-18 07:56:32 UTC
I currently have 2.0-r1 installed and when trying to upgrade to r2, I get the following error:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../common/faad -I../common/mp4ff   -O2 -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" \
  -c -o getopt.o `test -f '../common/faad/getopt.c' || echo './'`../common/faad/getopt.c; \
then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; \
else rm -f ".deps/getopt.Tpo"; exit 1; \
fi
In file included from ../common/mp4ff/mp4ff.h:35,
                 from main.c:42:
../common/mp4ff/mp4ff_int_types.h:23:7: warning: no newline at end of file
In file included from main.c:42:
../common/mp4ff/mp4ff.h:128:7: warning: no newline at end of file
/bin/sh ../libtool --mode=link g++ -O2 -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer   -o faad  main.o audio.o getopt.o ../libfaad/libfaad.la ../common/mp4ff/libmp4ff.la -lmp4v2 -lmp4v2
mkdir .libs
g++ -O2 -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -o .libs/faad main.o audio.o getopt.o  ../libfaad/.libs/libfaad.so ../common/mp4ff/.libs/libmp4ff.so /usr/lib/libmp4v2.so -ldl /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3
creating faad
make[2]: Leaving directory `/var/tmp/portage/faad2-2.0-r2/work/faad2/frontend'
Making all in plugins
make[2]: Entering directory `/var/tmp/portage/faad2-2.0-r2/work/faad2/plugins'
Making all in mpeg4ip
make[3]: Entering directory `/var/tmp/portage/faad2-2.0-r2/work/faad2/plugins/mpeg4ip'
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include   -D_REENTRANT -DNOCONTROLS -fexceptions  -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT faad2.lo -MD -MP -MF ".deps/faad2.Tpo" \
  -c -o faad2.lo `test -f 'faad2.cpp' || echo './'`faad2.cpp; \
then mv -f ".deps/faad2.Tpo" ".deps/faad2.Plo"; \
else rm -f ".deps/faad2.Tpo"; exit 1; \
fi
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include   -D_REENTRANT -DNOCONTROLS -fexceptions  -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT aa_file.lo -MD -MP -MF ".deps/aa_file.Tpo" \
  -c -o aa_file.lo `test -f 'aa_file.cpp' || echo './'`aa_file.cpp; \
then mv -f ".deps/aa_file.Tpo" ".deps/aa_file.Plo"; \
else rm -f ".deps/aa_file.Tpo"; exit 1; \
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -D_REENTRANT -DNOCONTROLS -fexceptions -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT faad2.lo -MD -MP -MF .deps/faad2.Tpo -c faad2.cpp  -fPIC -DPIC -o .libs/faad2.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -D_REENTRANT -DNOCONTROLS -fexceptions -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT aa_file.lo -MD -MP -MF .deps/aa_file.Tpo -c aa_file.cpp  -fPIC -DPIC -o .libs/aa_file.o
faad2.cpp: In function `int aac_decode(codec_data_t*, long long unsigned int,
   int, int*, uint8_t*, unsigned int, void*)':
faad2.cpp:241: error: invalid conversion from `int' to `audio_format_t'
make[3]: *** [faad2.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -D_REENTRANT -DNOCONTROLS -fexceptions -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -MT aa_file.lo -MD -MP -MF .deps/aa_file.Tpo -c aa_file.cpp -o aa_file.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/faad2-2.0-r2/work/faad2/plugins/mpeg4ip'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/faad2-2.0-r2/work/faad2/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/faad2-2.0-r2/work/faad2'
make: *** [all] Error 2

!!! ERROR: media-libs/faad2-2.0-r2 failed.
!!! Function src_compile, Line 64, Exitcode 2
!!! (no error message)

My emerge info:
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.4.16
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa apache2 arts avi berkdb cdr crypt cups dvd encode foomaticdb freetds gdbm gif gpm imlib innodb java jpeg jpg kde libg++ libwww live mad mikmod mmx motif mpeg mysql ncurses nls nptl odbc oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline samba sdl sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xv zlib"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-06-19 01:03:59 UTC
Try it with MAKEOPTS="-j1" please.  Looks like it could be a parallel make issue.
Comment 2 Gregg Casillo 2004-06-21 11:28:46 UTC
No luck. Same problem. I also disabled distcc, ccache, and sandbox in my FEATURES.
Comment 3 Gregg Casillo 2004-06-21 13:06:28 UTC
No, my problem was that I had mpeg4ip-1.1 installed. faad2 will not compile correctly with mpeg4ip installed. That's why faad2 is a blocker for mpeg4ip (I previously forced the install of mpeg4ip). Here's some threads from the forums:
http://forums.gentoo.org/viewtopic.php?t=175939
http://forums.gentoo.org/viewtopic.php?t=125350

I don't know what these two do to not get along, but it appears it's enough of a bugger. So I can't have faad2 and mpeg4ip installed on the same box. I need mpeg4ip, so the questions are, what tools use or depend on faad2 and can I get rid of it?
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-22 13:37:14 UTC
hey gregg... what you'll want to do is look in the portage database of installed packages...

cd /var/db/pkg

now look in all of their RDEPEND files to see which need faad:

find . -name RDEPEND | xargs grep faad

Hopefully that will help point you in the right direction...  There's probably some flags you can pass to 'qpkg' to figure it out, but I just do what's above.  I'll fix the DEPENDs tonight when I get home for this.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-22 15:46:53 UTC
alright, I added the block to DEPEND in cvs.  Thanks.
Comment 6 Aris Basic 2005-11-09 20:21:58 UTC
is there a fix for faad2 building on machine with mpeg4ip ?