Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52235 - errors in dparammanager.h and dparam.h headers from media-libs/gstreamer
Summary: errors in dparammanager.h and dparam.h headers from media-libs/gstreamer
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-27 23:45 UTC by Zack Pearsall
Modified: 2004-08-19 16:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zack Pearsall 2004-05-27 23:45:55 UTC
I have verified these bugs exist in gstreamer-0.6.4 and gstreamer-0.8.1

I was attempting to emerge kgst ( see bug 43417 ) and got the following error.

In file included from /usr/include/gstreamer-0.6/gst/control/dparammanager.h:28,
                 from /usr/include/gstreamer-0.6/gst/control/control.h:25,
                 from gstreamer.cpp:39:
/usr/include/gstreamer-0.6/gst/control/dparam.h:63: error: comma at end of
   enumerator list
In file included from /usr/include/gstreamer-0.6/gst/control/control.h:25,
                 from gstreamer.cpp:39:
/usr/include/gstreamer-0.6/gst/control/dparammanager.h:54: error: comma at end
   of enumerator list
make[4]: *** [gstreamer.lo] Error 1

So I removed the offending comma from dparammanager.h then I got this error.

In file included from /usr/include/gstreamer-0.6/gst/gst.h:85,
                 from gstreamer.cpp:38:
/usr/include/gstreamer-0.6/gst/gstlog.h:33:18: warning: anonymous variadic macros were introduced in C99
In file included from /usr/include/gstreamer-0.6/gst/control/dparammanager.h:28,
                 from /usr/include/gstreamer-0.6/gst/control/control.h:25,
                 from gstreamer.cpp:39:
/usr/include/gstreamer-0.6/gst/control/dparam.h:63: error: comma at end of
   enumerator list
make[4]: *** [gstreamer.lo] Error 1

I removed the offending comma from dparam.h then kgst compiled fine.


Reproducible: Always
Steps to Reproduce:
1.emerge =gstreamer-0.6.4  or emerge =gstreamer-0.8.1
2.emerge kgst
3.

Actual Results:  
Noted in the description. 

Expected Results:  
 

emerge info 
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6) 
================================================================= 
System uname: 2.6.6 i686 AMD Athlon(TM) XP 1700+ 
Gentoo Base System version 1.4.9 
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" 
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 /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/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" 
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://muck/gentoo-portage/" 
USE="3dnow X aalib acl alsa apm arts avi berkdb cdr crypt cups dvd dvdr encode 
faad fbcon ffmpeg fftw flac foomaticdb gdbm gif gphoto2 gtk gtk2 guile imlib 
java jpeg kde ldap libg++ libwww lufsusermount mad mikmod mmx motif mozilla 
mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff 
truetype usb v4l x86 xinerama xml2 xmms xv zlib"
Comment 1 Stephane Loeuillet 2004-05-28 09:38:19 UTC
those commas are allowed by C99, but where not by ANSI/C89

i've removed most of those leading commas in enums in current gstreamer CVS (would be in 0.8.2)

shouldn't be an issue with gcc, but is an issue for other compilers like AIX native compiler.

i wonder why your gcc complains here. or is it not allowed by g++/C++ std ? (as it is a C++ app that uses those includes)
Comment 2 Zack Pearsall 2004-05-28 12:56:26 UTC
I kind of suspect it is a g++ thing. But I don't know.
Comment 3 foser (RETIRED) gentoo-dev 2004-08-19 16:11:10 UTC
no traffic for a while, reopen if still a problem with recent gst versions.