After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143290 - Build breaks due to "," at end of enum in gstreamer/gst/element/gsttypefind.c
Build breaks due to "," at end of enum in gstreamer/gst/element/gsttypefind.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.0
Other AIX
: Normal normal
: 0.8.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-27 13:59 UTC by Michael.Wilson
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Michael.Wilson 2004-05-27 13:59:51 UTC
It is noted that gsttypefind.c has been renamed to gsttypefindelement.c and that
this error persists in the CVS latest.

Line 87 of gsttypefind.c contains an extraneous "," which breaks using the AIX
native compiler with the diagnostic :

gstreamer/gst/elements/gsttypefind.c", line 87.16: 1506-275 (S) Unexpected text
',' encountered.

The enum concerned is :

enum
{
  MODE_NORMAL,                  /* act as identity */
  MODE_TYPEFIND,                /* do typefinding */
};
Comment 1 Michael.Wilson 2004-05-27 15:52:08 UTC
There is the same problem at lines ~85 and ~92 (version 0.8.1 and CVS latest) in
source file gstreamer/gst/schedulers/gstbasicscheduler.c :

typedef enum
{
  GST_BASIC_SCHEDULER_STATE_NONE,
  GST_BASIC_SCHEDULER_STATE_STOPPED,
  GST_BASIC_SCHEDULER_STATE_ERROR,
  GST_BASIC_SCHEDULER_STATE_RUNNING,
}
GstBasicSchedulerState;

typedef enum
{
  /* something important has changed inside the scheduler */
  GST_BASIC_SCHEDULER_CHANGE = GST_SCHEDULER_FLAG_LAST,
}
GstBasicSchedulerFlags;
Comment 2 Stephane Loeuillet 2004-05-28 05:01:53 UTC
i already fixed a bunch of those in gst-plugins last week, time to do the same
for gstreamer core.

please retry with latest CVS, commiting some fixes to gstreamer core now

it is legal C99, but not legal C90. works ok with gcc, but not for Forte & AIX
compiler (and some more i don't know)

http://cia.navi.cx/stats/project/GStreamer/.message/1335952
Comment 3 Michael.Wilson 2004-05-28 12:55:35 UTC
Could I add that gstoptimalscheduler.c also has the "," at the end of 4 enums ?

Also, through use of the macros GST_ELEMENT_SCHED_CONTEXT and GST_PAD_BUFLIST
which include a cast, there are about 10 lines in error because of casting an
lvalue (lefthand side). When I remove the casts from the macros, there are 2
lines in error where GST_PAD_BUFLIST is effectively needed with a cast (on the
righthand side).
Comment 5 Stephane Loeuillet 2004-06-02 12:16:53 UTC
any other occurence of this bug (tailing comma in enum) or are they all fixed ?

if you don't report them, they won't be fixed (gcc doesn't see those like a
problem as it is allowed by C99)
Comment 6 Thomas Vander Stichele 2004-07-26 10:24:43 UTC
Michael, ping ?
Comment 7 Michael.Wilson 2004-07-26 11:44:59 UTC
Sorry for the delay in responding. I have been assigned to a different project
and am no longer able to work on porting to AIX. Others on the team will
eventually recopy the reference code and report new problems. Compiling in C99
is a future item for the project, but I have no specific information.

Can we consider this defect as having been corrected ?

Thanks.