Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132817

Summary: build of transcode-1.0.2-r2 fails
Product: Gentoo Linux Reporter: Lindsay Haisley <fmouse-gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lindsay Haisley 2006-05-09 13:15:40 UTC
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../libac3 -I../avilib    -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo   -I/usr/include  -I/usr/include/quicktime   -I../libxio    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe -DDCT_YUV_PRECISION=1 -MT tcdecode-decode_mpeg2.o -MD -MP -MF ".deps/tcdecode-decode_mpeg2.Tpo" -c -o tcdecode-decode_mpeg2.o `test -f 'decode_mpeg2.c' || echo './'`decode_mpeg2.c; \
then mv -f ".deps/tcdecode-decode_mpeg2.Tpo" ".deps/tcdecode-decode_mpeg2.Po"; else rm -f ".deps/tcdecode-decode_mpeg2.Tpo"; exit 1; fi
In file included from decode_mpeg2.c:37:
/usr/local/include/mpeg2dec/mpeg2.h:30: error: syntax error before "vo_instance_t"
/usr/local/include/mpeg2dec/mpeg2.h:59: error: syntax error before '}' token
/usr/local/include/mpeg2dec/mpeg2.h:66: error: syntax error before '*' token
/usr/local/include/mpeg2dec/mpeg2.h:70: error: syntax error before '*' token
/usr/local/include/mpeg2dec/mpeg2.h:72: error: syntax error before '*' token
/usr/local/include/mpeg2dec/mpeg2.h:75: error: syntax error before '*' token
/usr/local/include/mpeg2dec/mpeg2.h:77: error: syntax error before '*' token
In file included from decode_mpeg2.c:38:
/usr/include/mpeg2dec/mpeg2convert.h:27: error: syntax error before "mpeg2convert_rgb32"
/usr/include/mpeg2dec/mpeg2convert.h:28: error: syntax error before "mpeg2convert_rgb24"
/usr/include/mpeg2dec/mpeg2convert.h:29: error: syntax error before "mpeg2convert_rgb16"
/usr/include/mpeg2dec/mpeg2convert.h:30: error: syntax error before "mpeg2convert_rgb15"
/usr/include/mpeg2dec/mpeg2convert.h:31: error: syntax error before "mpeg2convert_rgb8"
/usr/include/mpeg2dec/mpeg2convert.h:32: error: syntax error before "mpeg2convert_bgr32"
/usr/include/mpeg2dec/mpeg2convert.h:33: error: syntax error before "mpeg2convert_bgr24"
/usr/include/mpeg2dec/mpeg2convert.h:34: error: syntax error before "mpeg2convert_bgr16"
/usr/include/mpeg2dec/mpeg2convert.h:35: error: syntax error before "mpeg2convert_bgr15"
/usr/include/mpeg2dec/mpeg2convert.h:36: error: syntax error before "mpeg2convert_bgr8"
/usr/include/mpeg2dec/mpeg2convert.h:43: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2convert.h:46: error: syntax error before "mpeg2convert_uyvy"
decode_mpeg2.c: In function `show_accel':
decode_mpeg2.c:54: error: `MPEG2_ACCEL_X86_3DNOW' undeclared (first use in this function)
decode_mpeg2.c:54: error: (Each undeclared identifier is reported only once
decode_mpeg2.c:54: error: for each function it appears in.)
decode_mpeg2.c:56: error: `MPEG2_ACCEL_X86_MMXEXT' undeclared (first use in this function)
decode_mpeg2.c:58: error: `MPEG2_ACCEL_X86_MMX' undeclared (first use in this function)
decode_mpeg2.c: In function `decode_mpeg2':
decode_mpeg2.c:67: error: `decoder' undeclared (first use in this function)
decode_mpeg2.c:68: error: syntax error before '*' token
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:78: warning: implicit declaration of function `mpeg2_accel'
decode_mpeg2.c:78: error: `MPEG2_ACCEL_DETECT' undeclared (first use in this function)
decode_mpeg2.c:87: error: `info' undeclared (first use in this function)
decode_mpeg2.c:87: warning: implicit declaration of function `mpeg2_info'
decode_mpeg2.c:91: error: `state' undeclared (first use in this function)
decode_mpeg2.c:91: warning: implicit declaration of function `mpeg2_parse'
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:96: warning: implicit declaration of function `mpeg2_buffer'
decode_mpeg2.c:98: error: `STATE_SEQUENCE' undeclared (first use in this function)
decode_mpeg2.c:100: warning: implicit declaration of function `mpeg2_convert'
decode_mpeg2.c:103: error: `STATE_SLICE' undeclared (first use in this function)
decode_mpeg2.c:104: error: `STATE_END' undeclared (first use in this function)
decode_mpeg2.c:105: error: `STATE_INVALID_END' undeclared (first use in this function)
In file included from tcdecode.c:369:
../libxio/static_xio.h: In function `dummy':
../libxio/static_xio.h:18: warning: null argument where non-null required (arg 2)
../libxio/static_xio.h:19: warning: null argument where non-null required (arg 2)
../libxio/static_xio.h:20: warning: null argument where non-null required (arg 2)
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../libac3 -I../avilib    -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo   -I/usr/include  -I/usr/include/quicktime   -I../libxio    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe -DDCT_YUV_PRECISION=1 -MT tcdecode-decode_yuv.o -MD -MP -MF ".deps/tcdecode-decode_yuv.Tpo" -c -o tcdecode-decode_yuv.o `test -f 'decode_yuv.c' || echo './'`decode_yuv.c; \
then mv -f ".deps/tcdecode-decode_yuv.Tpo" ".deps/tcdecode-decode_yuv.Po"; else rm -f ".deps/tcdecode-decode_yuv.Tpo"; exit 1; fi
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-r2/work/transcode-1.0.2/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r2/work/transcode-1.0.2/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r2/work/transcode-1.0.2'
make: *** [all] Error 2


$ emerge info
Portage 2203-svn (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.4.20040808-r1,glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://cudlug.cudenver.edu/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LANG="en"
LC_ALL="en_US"
MAKEOPTS="-j3"
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 X Xaw3d acl acpi alsa apache2 apm arts audiofile avi berkdb bindist bitmap-fonts bonobo bzip2 cdr cli crypt cups curl doc dri dvd dvdr eds emboss encode esd evo exif expat fam fastcgi ffmpeg flac flash foomaticdb fortran gd gdbm gif glut gnome gpm gps gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imap imlib ipv6 isdnlog jack java jikes jpeg junit kde lcms ldap libg++ libwww mad maildir mcal mhash mikmod ming mng motif mozilla mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl php plotutils png ppds pppd python qt quicktime readline recode reflection samba sasl scanner sdl session slang slp snmp spell spl sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xorg xosd xv xvid zeo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-09 13:24:21 UTC
> /usr/local/include/mpeg2dec/mpeg2.h:59: error: syntax error before '}' token

We don't install anything into /usr/local, dunno where did you take the stuff in there. Also - upgrade your gcc... 3.3.x is no longer supported.
Comment 2 Lindsay Haisley 2006-05-09 13:33:44 UTC
OK, probably my error here.  Sorry for the noise.  I need to run gcc-config apparently, too.

Nothing is ever simple :-(
Comment 3 Lindsay Haisley 2006-05-09 14:04:46 UTC
Jacub, my system has some cruft, but tightening things up a bit I get the same error.

 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../libac3 -I../avilib    -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo   -I/usr/include  -I/usr/include/quicktime   -I../libxio    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe -DDCT_YUV_PRECISION=1 -MT tcdecode-decode_mpeg2.o -MD -MP -MF ".deps/tcdecode-decode_mpeg2.Tpo" -c -o tcdecode-decode_mpeg2.o `test -f 'decode_mpeg2.c' || echo './'`decode_mpeg2.c; \
then mv -f ".deps/tcdecode-decode_mpeg2.Tpo" ".deps/tcdecode-decode_mpeg2.Po"; else rm -f ".deps/tcdecode-decode_mpeg2.Tpo"; exit 1; fi
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from tcdecode.c:369:
../libxio/static_xio.h: In function `dummy':
../libxio/static_xio.h:18: warning: null argument where non-null required (arg 2)
../libxio/static_xio.h:19: warning: null argument where non-null required (arg 2)
../libxio/static_xio.h:20: warning: null argument where non-null required (arg 2)
In file included from decode_mpeg2.c:37:
/usr/include/mpeg2dec/mpeg2.h:30: error: syntax error before "vo_instance_t"
/usr/include/mpeg2dec/mpeg2.h:59: error: syntax error before '}' token
/usr/include/mpeg2dec/mpeg2.h:66: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2.h:70: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2.h:72: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2.h:75: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2.h:77: error: syntax error before '*' token
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../libac3 -I../avilib    -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo   -I/usr/include  -I/usr/include/quicktime   -I../libxio    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe -DDCT_YUV_PRECISION=1 -MT tcdecode-decode_yuv.o -MD -MP -MF ".deps/tcdecode-decode_yuv.Tpo" -c -o tcdecode-decode_yuv.o `test -f 'decode_yuv.c' || echo './'`decode_yuv.c; \
then mv -f ".deps/tcdecode-decode_yuv.Tpo" ".deps/tcdecode-decode_yuv.Po"; else rm -f ".deps/tcdecode-decode_yuv.Tpo"; exit 1; fi
In file included from decode_mpeg2.c:38:
/usr/include/mpeg2dec/mpeg2convert.h:27: error: syntax error before "mpeg2convert_rgb32"
/usr/include/mpeg2dec/mpeg2convert.h:28: error: syntax error before "mpeg2convert_rgb24"
/usr/include/mpeg2dec/mpeg2convert.h:29: error: syntax error before "mpeg2convert_rgb16"
/usr/include/mpeg2dec/mpeg2convert.h:30: error: syntax error before "mpeg2convert_rgb15"
/usr/include/mpeg2dec/mpeg2convert.h:31: error: syntax error before "mpeg2convert_rgb8"
/usr/include/mpeg2dec/mpeg2convert.h:32: error: syntax error before "mpeg2convert_bgr32"
/usr/include/mpeg2dec/mpeg2convert.h:33: error: syntax error before "mpeg2convert_bgr24"
/usr/include/mpeg2dec/mpeg2convert.h:34: error: syntax error before "mpeg2convert_bgr16"
/usr/include/mpeg2dec/mpeg2convert.h:35: error: syntax error before "mpeg2convert_bgr15"
/usr/include/mpeg2dec/mpeg2convert.h:36: error: syntax error before "mpeg2convert_bgr8"
/usr/include/mpeg2dec/mpeg2convert.h:43: error: syntax error before '*' token
/usr/include/mpeg2dec/mpeg2convert.h:46: error: syntax error before "mpeg2convert_uyvy"
decode_mpeg2.c: In function `show_accel':
decode_mpeg2.c:54: error: `MPEG2_ACCEL_X86_3DNOW' undeclared (first use in this function)
decode_mpeg2.c:54: error: (Each undeclared identifier is reported only once
decode_mpeg2.c:54: error: for each function it appears in.)
decode_mpeg2.c:56: error: `MPEG2_ACCEL_X86_MMXEXT' undeclared (first use in this function)
decode_mpeg2.c:58: error: `MPEG2_ACCEL_X86_MMX' undeclared (first use in this function)
decode_mpeg2.c: In function `decode_mpeg2':
decode_mpeg2.c:67: error: `decoder' undeclared (first use in this function)
decode_mpeg2.c:68: error: syntax error before '*' token
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:78: warning: implicit declaration of function `mpeg2_accel'
decode_mpeg2.c:78: error: `MPEG2_ACCEL_DETECT' undeclared (first use in this function)
decode_mpeg2.c:87: error: `info' undeclared (first use in this function)
decode_mpeg2.c:87: warning: implicit declaration of function `mpeg2_info'
decode_mpeg2.c:91: error: `state' undeclared (first use in this function)
decode_mpeg2.c:91: warning: implicit declaration of function `mpeg2_parse'
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:96: warning: implicit declaration of function `mpeg2_buffer'
decode_mpeg2.c:98: error: `STATE_SEQUENCE' undeclared (first use in this function)
decode_mpeg2.c:100: warning: implicit declaration of function `mpeg2_convert'
decode_mpeg2.c:103: error: `STATE_SLICE' undeclared (first use in this function)
decode_mpeg2.c:104: error: `STATE_END' undeclared (first use in this function)
decode_mpeg2.c:105: error: `STATE_INVALID_END' undeclared (first use in this function)
make[3]: *** [tcdecode-decode_mpeg2.o] Error 1
make[3]: *** Waiting for unfinished jobs....
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
make[3]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r2/work/transcode-1.0.2/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r2/work/transcode-1.0.2/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/transcode-1.0.2-r2/work/transcode-1.0.2'
make: *** [all] Error 2
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-09 14:08:30 UTC
You still have some crap somewhere.

*** This bug has been marked as a duplicate of 120880 ***