media-video:transcode-1.0.3 logs: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I ../libtc -I/usr/include -I../libac3 -I../avilib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I../libvo -I/usr/include -I.. /libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O2 -pipe -DDCT_YUV_PRECISION=1 -MT import_mpeg3.lo -MD - MP -MF .deps/import_mpeg3.Tpo -c -o import_mpeg3.lo import_mpeg3.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../libtc -I/usr/include -I../libac3 -I../avil ib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I../libvo -I/usr/include -I../libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURC E -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O2 -pipe -DDCT_YUV_PRECISION=1 -MT import_mpeg3.lo -MD -MP -MF .deps/import_mpeg3.Tpo -c import_mpeg3.c -fPIC -D PIC -o .libs/import_mpeg3.o import_mpeg3.c: In function 'import_mpeg3_open': import_mpeg3.c:82: error: too few arguments to function 'mpeg3_open' import_mpeg3.c:89: error: too few arguments to function 'mpeg3_open_copy' import_mpeg3.c:101: error: too few arguments to function 'mpeg3_open' import_mpeg3.c:108: error: too few arguments to function 'mpeg3_open_copy' import_mpeg3.c:126: warning: implicit declaration of function 'mpeg3_set_mmx' import_mpeg3.c: In function 'import_mpeg3_decode': import_mpeg3.c:273: warning: pointer targets in passing argument 3 of 'mpeg3_read_audio' differ in signedness import_mpeg3.c:280: warning: pointer targets in passing argument 3 of 'mpeg3_reread_audio' differ in signedness import_mpeg3.c:326: warning: pointer targets in passing argument 2 of 'mpeg3_read_yuvframe' differ in signedness import_mpeg3.c:326: warning: pointer targets in passing argument 3 of 'mpeg3_read_yuvframe' differ in signedness import_mpeg3.c:326: warning: pointer targets in passing argument 4 of 'mpeg3_read_yuvframe' differ in signedness make[3]: *** [import_mpeg3.lo] Erreur 1 make[3]: quittant le répertoire « /var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/import » make[2]: *** [all-recursive] Erreur 1 make[2]: quittant le répertoire « /var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/import » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3 » make: *** [all] Erreur 2 Reproducible: Always media-video/transcode-1.0.3 USE="X a52 dvdread gtk mmx mp3 mpeg ogg sse theora truetype vorbis xvid -3dnow (-altivec) -dv -extrafilters -fame -iconv -imagemagick -jpeg -lzo -mjpeg -network -quicktime -sdl -sse2 -v4l2 -xml" ---------------------------------------------------------------------------------- kenoby ~ # emerge --info Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 i686) ================================================================= System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 02 Jul 2007 10:00:10 +0000 ccache version 2.4 [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr" 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 /usr/portage/local/layman/sunrise /root/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa arts avi bash-completion berkdb bitmap-fonts bluetooth bootsplash bzip2 cairo ccache cdr cli cracklib crypt css cups dbus divx dlloader dri dts dvd dvdr dvdread eds emboss encode esd evo faac fam fame ffmpeg firefox flac foomaticdb fortran gdbm gif gimp gimpprint glitz gpm gstreamer gtk hal iconv ifp imagemagick ipod ipv6 isdnlog jack jpeg kde kerberos kipi lame ldap libg++ mad matroska midi mikmod mp3 mpeg msn mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ntpl ntplonly nvidia ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection samba scanner sdl session sndfile spell spl ssl svg tcpd theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode unzip usb v4l v4l2 vcd vorbis wavpack win32codecs x264 x86 xcomposite xml xorg xscreensaver xv xvid zip zlib" ALSA_CARDS="emu10k1 ca0106 usb-audio" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
if USE="3dnow X a52 dvdread fame gtk iconv jpeg lzo mjpeg mmx mp3 mpeg network ogg sse theora truetype v4l2 vorbis xml xvid (-altivec) -dv -extrafilters -imagemagick -quicktime -sdl -sse2" ---------------------------------------------------------------------------------- i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../import -I../libac3 -I../avilib -I/usr/include -I../libvo -I../libioaux -I../libxio -I/usr/include -I/usr/include/mjpegtools -I/usr/include/mjpegtools/mpeg2enc -I/usr/include/mjpegtools/mplex -I/usr/include -I/usr/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O2 -pipe -DDCT_YUV_PRECISION=1 -MT aud_aux.lo -MD -MP -MF .deps/aud_aux.Tpo -c aud_aux.c -fPIC -DPIC -o .libs/aud_aux.o aud_aux.c: In function 'audio_init_ffmpeg': aud_aux.c:364: error: 'ac3_encoder' undeclared (first use in this function) aud_aux.c:364: error: (Each undeclared identifier is reported only once aud_aux.c:364: error: for each function it appears in.) aud_aux.c:365: error: 'mp2_encoder' undeclared (first use in this function) aud_aux.c: In function 'audio_encode_mp3': aud_aux.c:806: warning: pointer targets in passing argument 5 of 'lame_encode_buffer' differ in signedness aud_aux.c:813: warning: pointer targets in passing argument 4 of 'lame_encode_buffer_interleaved' differ in signedness aud_aux.c:854: warning: pointer targets in passing argument 1 of 'tc_get_mp3_header' differ in signedness aud_aux.c: In function 'audio_close': aud_aux.c:1063: warning: pointer targets in passing argument 2 of 'lame_encode_flush' differ in signedness make[2]: *** [aud_aux.lo] Erreur 1 make[2]: quittant le répertoire « /var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/export » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3 » make: *** [all] Erreur 2
I too am unable to get transcode to build. I get the same error as in comment #1. I've tried reemergind ffmpeg with no success. # emerge -v media-video/transcode These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] media-video/transcode-1.0.3 [1.0.3_rc2_p20070310-r1] USE="X dvdread gtk iconv jpeg mp3 mpeg ogg quicktime sdl theora truetype vorbis xml -3dnow -a52 (-altivec) -dv -extrafilters -fame -imagemagick -lzo -mjpeg -mmx -network -sse -sse2 -v4l2 -xvid" 0 kB [...] /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../import -I../libac3 -I../avilib -I/usr/include -I../libvo -I../libioaux -I../libxio -I/usr/include -I/usr/include/lqt -I/usr/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O3 -pipe -DDCT_YUV_PRECISION=1 -MT export_divx4.lo -MD -MP -MF .deps/export_divx4.Tpo -c -o export_divx4.lo export_divx4.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../import -I../libac3 -I../avilib -I/usr/include -I../libvo -I../libioaux -I../libxio -I/usr/include -I/usr/include/lqt -I/usr/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O3 -pipe -DDCT_YUV_PRECISION=1 -MT aud_aux.lo -MD -MP -MF .deps/aud_aux.Tpo -c aud_aux.c -fPIC -DPIC -o .libs/aud_aux.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../import -I../libac3 -I../avilib -I/usr/include -I../libvo -I../libioaux -I../libxio -I/usr/include -I/usr/include/lqt -I/usr/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-xp -O3 -pipe -DDCT_YUV_PRECISION=1 -MT export_divx4.lo -MD -MP -MF .deps/export_divx4.Tpo -c export_divx4.c -fPIC -DPIC -o .libs/export_divx4.o aud_aux.c: In function 'audio_init_ffmpeg': aud_aux.c:364: error: 'ac3_encoder' undeclared (first use in this function) aud_aux.c:364: error: (Each undeclared identifier is reported only once aud_aux.c:364: error: for each function it appears in.) aud_aux.c:365: error: 'mp2_encoder' undeclared (first use in this function) aud_aux.c: In function 'audio_encode_mp3': aud_aux.c:806: warning: pointer targets in passing argument 5 of 'lame_encode_buffer' differ in signedness aud_aux.c:813: warning: pointer targets in passing argument 4 of 'lame_encode_buffer_interleaved' differ in signedness aud_aux.c:854: warning: pointer targets in passing argument 1 of 'tc_get_mp3_header' differ in signedness aud_aux.c: In function 'audio_close': aud_aux.c:1063: warning: pointer targets in passing argument 2 of 'lame_encode_flush' differ in signedness make[2]: *** [aud_aux.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/export_divx4.Tpo .deps/export_divx4.Plo make[2]: Leaving directory `/usr/portage/build/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/export' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/portage/build/portage/media-video/transcode-1.0.3/work/transcode-1.0.3' make: *** [all] Error 2 * * ERROR: media-video/transcode-1.0.3 failed. * Call stack: * ebuild.sh, line 1642: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * transcode-1.0.3.ebuild, line 110: Called die * * (no error message) * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/usr/portage/log/media-video:transcode-1.0.3:20070702-153726.log'. * # emerge --info Portage 2.1.3_rc6 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.18-gentoo i686) ================================================================= System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP 2600+ Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 02 Jul 2007 14:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.6-r2, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo http://gd4.tuwien.ac.at/opsys/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_GB de uk" 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="/usr/portage/build" PORTDIR="/usr/portage/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="(-altivec) X alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libg++ mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd theora truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="intel8x0" 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="en_GB de uk" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 184014 has been marked as a duplicate of this bug. ***
Got the same problem as #1. Then I took away ffmpeg from ~x86 keywords and reemerged ffmpeg and transcode. Now it works If this info could help anybody to understand the underlying problem...
Created attachment 123740 [details, diff] Patch to compile against ~ ffmpeg Apparently static initializers have been removed from the include files of current ffmpeg. The patch compiles; however I haven't checked if it works as I don't use transcode to convert audio to mp2 or ac3.
Created attachment 123741 [details] New 1.0.3-r1 ebuild that applies the patch New ebuild to compile transcode using the patch also attached. Version is bumped in order to set the ARCHs to ~ as the problem occurs only with the ~ ffmpeg.
hmmm initial bugreport is due to the use of masked libmpeg3, feel free to submit a patch for it. comment #1 is because codec declarations in ffmpeg have moved to an internal header, and there is a problem with the patch, avcodec_find_encoder expects the codec to be registered thus won't work to search for a codec to register ;) the correct way seems to use avcodec_register_all once and for all so that ffmpeg generates its list of codecs.
I've been redirected here because of ------- Comment #3 From Jakub Moc 2007-07-02 21:29:20 0000 [reply] ------- *** Bug 184014 has been marked as a duplicate of this bug. *** I remember I opened bug 184014 because my bug was a different one. Regardless, the ebuild should work for the ffmpeg problem in #2 and bug 184014. I updated the patch to the suggested call to avcodec_register_all.
Created attachment 123743 [details, diff] Patch to compile against ~ ffmpeg As suggested by comment #7 changed the calls to register_avcodec to avcodec_register_all instead.
> As suggested by comment #7 changed the calls to register_avcodec to > avcodec_register_all instead. Thanks, it seems ok, will give it a try when I'll be back home note that we should check carefuly to not call avcodec_register_all twice (In reply to comment #8) > I've been redirected here because of > > ------- Comment #3 From Jakub Moc 2007-07-02 21:29:20 0000 [reply] ------- > *** Bug 184014 has been marked as a duplicate of this bug. *** > Yeah, sorry about this, reopened your initial bugreport
I wonder about that: transcode-1.0.3 # grep -r avcodec_register_all . ./src/transcode.c: avcodec_register_all(); ./export/aud_aux.c: avcodec_register_all(); ./export/export_ffmpeg.c: avcodec_register_all(); ./import/import_ffmpeg.c: avcodec_register_all(); ./import/decode_lavc.c: avcodec_register_all(); Transcode seems to call it multiple times already. I'll dive a bit deeper into that later.
With the patch in comment#9, transcode compiles. I have not tested if it works stabily yet. Also of note, there are masses of "differ in signedness" warnings in the build. Don't know if that will make problems somewhere, or if it is just some sloppy programing.
(In reply to comment #11) > Transcode seems to call it multiple times already. I'll dive a bit deeper into > that later. Yes, we do like this froma ages. libavcodec already has it's own nultiple-initialization guard (see libavcodec/allcodecs.c), so doing like that should not harm anyone. Anyway, we plan to do something better and prettier for future releases. A patch like the one proposed here will be included in transcode 1.0.4 and 1.1.0.
(In reply to comment #12) > Also of note, there are masses of "differ in signedness" warnings in the build. > Don't know if that will make problems somewhere, or if it is just some sloppy > programing. That is a known ugliness (legacy of dark ages of transcode), but we never heard of any problem so far caused by those warnings.
added a patch to build with libmpeg3 1.7, perhaps upstream wants it, feel free to grab it, I never thought it was worth sending it because libmpeg3 support has been dropped for transcode 1.1
(In reply to comment #15) > added a patch to build with libmpeg3 1.7, perhaps upstream wants it, feel free > to grab it, I never thought it was worth sending it because libmpeg3 support > has been dropped for transcode 1.1 I'll merge for 1.0.4, I guess 1.0.x will still here for a while. Thanks.