When emerging transcode, I get the following compile error: gcc -DHAVE_CONFIG_H -I.. -I. -I.. -I. -Wall -I./ -I../src -I../avilib -I../libac3 -I./../libac3 -I../libmpeg2 -I./../libmpeg2 -I../libvo -I./../src -I./../avilib -I./../libvo -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/libmpeg3 -I/usr/local/include/libmpeg3 -I/usr/include -I/usr/local/include -I/usr/include/avifile-0.7 -I/usr/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2 -I/usr/include/quicktime -I/usr/local/include/quicktime -I/usr/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -D_REENTRANT -funroll-loops -ffast-math -Wall -DMOD_PATH=\"/usr/lib/transcode\" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -O3 -march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=387 -DDCT_YUV_PRECISION=1 -g -MT import_ffmpeg.lo -MD -MP -MF .deps/import_ffmpeg.Tpo -c import_ffmpeg.c -fPIC -DPIC -o .libs/import_ffmpeg.o In file included from ../ffmpeg/libavcodec/avcodec.h:15, from import_ffmpeg.c:30: ../ffmpeg/libavcodec/rational.h:35: error: syntax error before "__attribute__" ../ffmpeg/libavcodec/rational.h:43: error: syntax error before "__attribute__" import_ffmpeg.c:167: error: syntax error before "__attribute__" import_ffmpeg.c:172: error: syntax error before "__attribute__" import_ffmpeg.c:175: warning: type defaults to `int' in declaration of `y' import_ffmpeg.c:175: warning: implicit declaration of function `stream_read_char' import_ffmpeg.c:175: error: `s' undeclared here (not in a function) import_ffmpeg.c:175: error: initializer element is not constant import_ffmpeg.c:175: warning: data definition has no type or storage class import_ffmpeg.c:176: warning: type defaults to `int' in declaration of `y' import_ffmpeg.c:176: error: redefinition of `y' import_ffmpeg.c:175: error: `y' previously defined here import_ffmpeg.c:176: error: `s' undeclared here (not in a function) import_ffmpeg.c:176: error: initializer element is not constant import_ffmpeg.c:176: warning: data definition has no type or storage class import_ffmpeg.c:177: warning: type defaults to `int' in declaration of `y' import_ffmpeg.c:177: error: redefinition of `y' import_ffmpeg.c:176: error: `y' previously defined here import_ffmpeg.c:177: error: `s' undeclared here (not in a function) import_ffmpeg.c:177: error: initializer element is not constant import_ffmpeg.c:177: warning: data definition has no type or storage class import_ffmpeg.c:178: warning: type defaults to `int' in declaration of `y' import_ffmpeg.c:178: error: redefinition of `y' import_ffmpeg.c:177: error: `y' previously defined here import_ffmpeg.c:178: error: `s' undeclared here (not in a function) import_ffmpeg.c:178: error: initializer element is not constant import_ffmpeg.c:178: warning: data definition has no type or storage class import_ffmpeg.c:179: error: syntax error before "return" import_ffmpeg.c: In function `divx3_is_key': import_ffmpeg.c:209: warning: implicit declaration of function `stream_read_dword' {standard input}: Assembler messages: {standard input}:350: Error: symbol `y' is already defined {standard input}:356: Error: symbol `y' is already defined {standard input}:362: Error: symbol `y' is already defined make[3]: *** [import_ffmpeg.lo] Erreur 1 make[3]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12/import' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12/import' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12' make: *** [all] Erreur 2 !!! ERROR: media-video/transcode-0.6.12-r1 failed. !!! Function src_compile, Line 114, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge transcode-0.6.12-r1 2. 3. Actual Results: transcode fails to build Expected Results: transcode should build emerge --info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.4.20040619-r0, 2.6.7-ck5) ================================================================= System uname: 2.6.7-ck5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=sse,387" 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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib ipv6 java jpeg kde ldap libg++ libwww linguas_fr mad mikmod mmx motif moznocompose moznoirc mpeg ncurses nls nptl oggvorbis opengl oss pam pda pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype usb x86 xml2 xv zlib"
Here happens the same, it is related to using linux26-headers: http://zebra.fh-weingarten.de/~maxi/html/transcode-users/2004-02/msg00335.html http://article.gmane.org/gmane.comp.video.ffmpeg.devel/9845/ The patch mentioned in the article did not work for me (if I made it right) so does anyone have a fix yet?
*** This bug has been marked as a duplicate of 57215 ***