After updating imagemagick-6.2.6.0 on 26 Jan 06, doing a revdep-rebuild rebuilt several packages, but the rebuild of transcode fails with the following: if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -DMOD_PATH=\ "/usr/lib/transcode\" -I.. -I../src -I../libtc -I/usr/include -I../libac3 -I../a vilib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/ usr/include/libxml2 -I../libvo -I/usr/include/lzo -I/usr/include -I/usr/includ e/lqt -I../libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_O FFSET_BITS=64 -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dno w -mfpmath=sse -DDCT_YUV_PRECISION=1 -MT tcdecode-decode_mpeg2.o -MD -MP -MF ".d eps/tcdecode-decode_mpeg2.Tpo" -c -o tcdecode-decode_mpeg2.o `test -f 'decode_mp eg2.c' || echo './'`decode_mpeg2.c; \ then mv -f ".deps/tcdecode-decode_mpeg2.Tpo" ".deps/tcdecode-decode_mpeg2.Po"; e lse rm -f ".deps/tcdecode-decode_mpeg2.Tpo"; exit 1; fi In file included from decode_mpeg2.c:38: /usr/include/mpeg2dec/mpeg2convert.h:27: error: syntax error before "mpeg2conver t_rgb32" /usr/include/mpeg2dec/mpeg2convert.h:28: error: syntax error before "mpeg2conver t_rgb24" /usr/include/mpeg2dec/mpeg2convert.h:29: error: syntax error before "mpeg2conver t_rgb16" /usr/include/mpeg2dec/mpeg2convert.h:30: error: syntax error before "mpeg2conver t_rgb15" /usr/include/mpeg2dec/mpeg2convert.h:31: error: syntax error before "mpeg2conver t_rgb8" /usr/include/mpeg2dec/mpeg2convert.h:32: error: syntax error before "mpeg2conver t_bgr32" /usr/include/mpeg2dec/mpeg2convert.h:33: error: syntax error before "mpeg2conver t_bgr24" /usr/include/mpeg2dec/mpeg2convert.h:34: error: syntax error before "mpeg2conver t_bgr16" /usr/include/mpeg2dec/mpeg2convert.h:35: error: syntax error before "mpeg2conver t_bgr15" /usr/include/mpeg2dec/mpeg2convert.h:36: error: syntax error before "mpeg2conver t_bgr8" /usr/include/mpeg2dec/mpeg2convert.h:43: error: syntax error before '*' token /usr/include/mpeg2dec/mpeg2convert.h:46: error: syntax error before "mpeg2conver t_uyvy" decode_mpeg2.c: In function `decode_mpeg2': decode_mpeg2.c:69: error: syntax error before '*' token decode_mpeg2.c:70: error: `mpeg2_state_t' undeclared (first use in this function ) decode_mpeg2.c:70: error: (Each undeclared identifier is reported only once decode_mpeg2.c:70: error: for each function it appears in.) decode_mpeg2.c:91: error: `state' undeclared (first use in this function) decode_mpeg2.c:92: error: `sequence' undeclared (first use in this function) decode_mpeg2.c:94: error: `STATE_BUFFER' undeclared (first use in this function) decode_mpeg2.c:100: warning: passing arg 2 of `mpeg2_convert' makes pointer from integer without a cast decode_mpeg2.c:105: error: `STATE_INVALID_END' undeclared (first use in this fun ction) make[3]: *** [tcdecode-decode_mpeg2.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r1/work/transcode-1 .0.2/import' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r1/work/transcode-1 .0.2/import' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r1/work/transcode-1 .0.2' make: *** [all] Error 2 I have been trying several things to eliminate this, but to no avail. Portage 2.1_pre4 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-ck2 i686) ================================================================= System uname: 2.6.15-ck2 i686 Unknown CPU Typ Gentoo Base System version 1.12.0_pre15 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext S3TC X a52 aac acpi alsa apache2 arts asf audiofile avi berkdb bzip2 cairo cddb cdio cdparanoia crypt css cups curl dga dlloader dvd dvdr dvdread eds emboss emoticon encode fame ffmpeg firefox flac foomaticdb gdbm gif gimp glut gstreamer gtk gtk2 ieee1394 imagemagick imlib imlib2 iproute2 jack java joystick jpeg jpeg2k kde libwww live logitech-mouse lzo mad mikmod mjpeg mmx mmxext motif mozsvg mp3 mpeg mplayer musicbrainz nas ncurses network nforce2 nls nntp nomalloccheck nptl nptlonly nsplugin nspr nvidia ogg oggvorbis opengl pam pdf pdflib perl png python qt quicktime readline real rtc samba scanner sdl spell sse ssl subtitles svg sysfs tcltk tcpd theora tiff transcode truetype truetype-fonts type1 type1-fonts unicode urandom usb userlocales v4l2 vcd vorbis win32codecs wmf xine xml2 xmms xpm xrandr xscreensaver xv xvid xvmc zlib zvbi elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Finally resolved this. Nothing wrong with Gentoo, a package I installed a while back installed a while back had installed libmpeg2 in /usr/local. Removed all the libmpeg2 stuff in /usr/local and then transcode emerge fine.
*** Bug 132817 has been marked as a duplicate of this bug. ***