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

Bug 5762

Summary: gst-plugins won't build with gcc-3.1
Product: Gentoo Linux Reporter: Antonio D'souza <gentoo>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: VERIFIED FIXED    
Severity: major CC: foser, rigo
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gst-plugins-0.4.0-r2.ebuild

Description Antonio D'souza 2002-07-29 22:35:55 UTC
Making all in flac
make[3]: Entering directory
`/var/tmp/portage/gst-plugins-0.4.0/work/gst-plugins-0.4.0/ext/flac'
source='gstflacenc.c' object='libgstflac_la-gstflacenc.lo' libtool=yes \
depfile='.deps/libgstflac_la-gstflacenc.Plo'
tmpdepfile='.deps/libgstflac_la-gstflacenc.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I../..    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gstreamer-0.4.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -g -I../../gst-libs -Wall
-Werror -march=i686 -O3 -pipe -c -o libgstflac_la-gstflacenc.lo `test -f
gstflacenc.c || echo './'`gstflacenc.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gstreamer-0.4.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -I../../gst-libs -Wall
-Werror -march=i686 -O3 -pipe -c gstflacenc.c -MT libgstflac_la-gstflacenc.lo
-MD -MP -MF .deps/libgstflac_la-gstflacenc.TPlo  -fPIC -DPIC -o
libgstflac_la-gstflacenc.lo
cc1: warnings being treated as errors
gstflacenc.c:59: warning: type defaults to `int' in declaration of
`FLAC__StreamMetaData'
gstflacenc.c:59: parse error before '*' token
gstflacenc.c:173: warning: type defaults to `int' in declaration of
`FLAC__StreamMetaData'
gstflacenc.c:173: parse error before '*' token
gstflacenc.c: In function `gst_flacenc_metadata_callback':
gstflacenc.c:178: `client_data' undeclared (first use in this function)
gstflacenc.c:178: (Each undeclared identifier is reported only once
gstflacenc.c:178: for each function it appears in.)
gstflacenc.c:184: `metadata' undeclared (first use in this function)
make[3]: *** [libgstflac_la-gstflacenc.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0/work/gst-plugins-0.4.0/ext/flac'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0/work/gst-plugins-0.4.0/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0/work/gst-plugins-0.4.0'
make: *** [all] Error 2
Comment 1 foser (RETIRED) gentoo-dev 2002-08-13 05:23:06 UTC
Quick 'n easy temporary solution is to add --disable-flac to the config line in
the ebuild.
Comment 2 Joe Tennies 2002-08-25 13:07:32 UTC
This is a problem w/ all compilers.  The issue is gst-plugins 0.4.0 only
supports flac 1.0.2 and portage only has flac 1.0.3.  Support for flac 1.0.3 is
in the gstreamer CVS.
Comment 3 Rigo 2002-08-27 03:48:06 UTC
Strange, I get aalib errors AFTER I out --without-aalib in the ebuild...Can
anybody explain why there is a remark about this in the ebuild (it says currenty
fails with aalib), but not executed (ie. put --without-aalib in the ebuild) ??

Regards, Rigo

make[3]: Entering directory
`/var/tmp/portage/gst-plugins-0.4.0-r2/work/gst-plugins-0.4.0/ext/aalib'
source='gstaasink.c' object='libgstaasink_la-gstaasink.lo' libtool=yes \
depfile='.deps/libgstaasink_la-gstaasink.Plo'
tmpdepfile='.deps/libgstaasink_la-gstaasink.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I../..    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gstreamer-0.4.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -g -I../../gst-libs -Wall
-Werror -I/usr/include -march=i686 -O3 -pipe -c -o libgstaasink_la-gstaasink.lo
`test -f gstaasink.c || echo './'`gstaasink.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gstreamer-0.4.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -I../../gst-libs -Wall
-Werror -I/usr/include -march=i686 -O3 -pipe -c gstaasink.c -MT
libgstaasink_la-gstaasink.lo -MD -MP -MF .deps/libgstaasink_la-gstaasink.TPlo 
-fPIC -DPIC -o libgstaasink_la-gstaasink.lo
cc1: changing search order for system directory "/usr/include"
cc1:   as it has already been specified as a non-system directory
make[3]: *** [libgstaasink_la-gstaasink.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0-r2/work/gst-plugins-0.4.0/ext/aalib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0-r2/work/gst-plugins-0.4.0/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gst-plugins-0.4.0-r2/work/gst-plugins-0.4.0'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)

lappy portage # 
Comment 4 Rigo 2002-08-27 03:52:09 UTC
Duh...It's --disable-aalib....Ofcourse...


;) Rigo
Comment 5 Rigo 2002-09-13 08:03:47 UTC
Created attachment 3890 [details]
gst-plugins-0.4.0-r2.ebuild

Like this it works 4 me,although I cannot test for 3.1 anymore... :-D
Comment 6 Spider (RETIRED) gentoo-dev 2002-09-13 11:17:48 UTC
building now, will commit . the fix looks good, but its bad record to just not
buildtest things before commiting
Comment 7 Rigo 2002-09-13 11:32:52 UTC
How wise....Just ment I tested on 3.2 instead ;-)
Comment 8 Spider (RETIRED) gentoo-dev 2002-09-13 12:14:14 UTC
oh yes, but I always buildtest before commiting .

commited now