Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200525 - media-video/avidemux-2.3.0 : build failed if media-libs/faad2-2.6.1 is installed
Summary: media-video/avidemux-2.3.0 : build failed if media-libs/faad2-2.6.1 is installed
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 15:17 UTC by oRo
Modified: 2007-12-01 09:20 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 oRo 2007-11-27 15:17:39 UTC
[ebuild  N    ] media-video/avidemux-2.3.0  
USE="a52 aac alsa altivec esd mad nls truetype vorbis x264 xv xvid -arts -encode -oss -sdl"

Gives this error ==>
ADM_codecfaad.cpp: In constructor ‘ADM_faad::ADM_faad(uint32_t, WAVHeader*, uint32_t, uint8_t*)’:
ADM_codecfaad.cpp:56: erreur: invalid conversion from ‘uint32_t*’ to ‘long unsigned int*’


Reproducible: Always

Steps to Reproduce:
emerge avidemux -av
Actual Results:  
Build failed


I realized that in the avidemux-2.3.0 ebuild, this is a configure option that I cannot modify by USE flag : --with-newfaad

avidemux-2.3.0.ebuild : 
src_compile() {
    econf \
        $(use_enable nls) \
        $(use_enable altivec) \
        $(use_enable xv) \
        $(use_with arts) \
        $(use_with alsa) \
        $(use_with esd) \
        $(use_with oss) \
        $(use_with vorbis) \
        $(use_with sdl libsdl) \
        $(use_with truetype freetype2) \
        $(use_with aac faac) $(use_with aac faad2) \
        $(use_with encode lame) \
        --with-extern-twolame \
        --with-newfaad --with-jsapi-include=/usr/include/js \
        --disable-warnings --disable-dependency-tracking \
        ${myconf} || die "configure failed"
    emake || die "emake failed"
}

And in avidemux/ADM_audiocodec.cpp :
#ifdef OLD_FAAD_PROTO
unsigned long int srate;
#else
uint32_t srate;
#endif


If I emerge media-libs/faad2-2.0-r13, I can build avidemux because there is the patch 040_all_64bit.patch that modify the include file "faad.h" 
It changes unsigned long => uint32_t (for example in declaration of faacDecInit2)

It think avidemux can be builded with gcc3 but I've not tested it
Comment 1 oRo 2007-11-27 15:18:32 UTC
Portage 2.1.4_rc3 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 ppc)
=================================================================
System uname: 2.6.22-gentoo-r5 ppc 7455, altivec supported
Timestamp of tree: Mon, 26 Nov 2007 12:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
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/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec berkdb bitmap-fonts bluetooth bogofilter bzip2 cdr cli cracklib crypt cups dbus dri dvd esd ffmpeg flac fortran gdbm gnome gpm gtk gtk2 iconv ipv6 isdnlog jpeg jpg live mad midi mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png ppc pppd python readline reflection session spl ssl svg tcpd tiff truetype-fonts type1-fonts unicode vorbis wavpack wma x264 xcb xinerama xorg xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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="fr" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-01 09:20:36 UTC
Please try w/ 2.4_pre3 and reopen if you still have issues.