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 121175 - Compiler error in gst-libs/gst/media-info/media-info.c with #define and variable args
Compiler error in gst-libs/gst/media-info/media-info.c with #define and varia...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.6.3
Other opensolaris
: Normal normal
: 0.6.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-09-01 13:13 UTC by Damien Carbery
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use __VA_ARGS__ in media-info.c (562 bytes, patch)
2003-09-01 13:14 UTC, Damien Carbery
none Details | Review

Description Damien Carbery 2003-09-01 13:13:29 UTC
The '#define GM_DEBUG' code does not compile on Solaris 8 x86
with the latest compiler, Sun ONE Studio 8.

Makefile and compiler output:
cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/gnome-2.4/include
-I../../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mt
-I/opt/gnome-2.4/include/gstreamer-0.6 -I/opt/gnome-2.4/include/glib-2.0
-I/opt/gnome-2.4/lib/glib-2.0/include -I/opt/gnome-2.4/include/libxml2
-DGST_DISABLE_DEPRECATED -g -g -I/opt/gnome-2.4/include -c media-info.c 
-KPIC -DPIC -o libgstmedia_info_0.6_la-media-info.o
"media-info.c", line 25: syntax error in macro parameters
"media-info.c", line 294: warning: implicit function declaration: GMI_DEBUG
cc: acomp failed for media-info.c
make[4]: *** [libgstmedia_info_0.6_la-media-info.lo] Error 1
make[4]: Leaving directory
`/gnome/2.4/nightly/src-2.4-20030901/gst-plugins-0.6.3/gst-libs/gst/media-info'

Attached patch fixes it.
Comment 1 Damien Carbery 2003-09-01 13:14:46 UTC
Created attachment 19641 [details] [review]
Use __VA_ARGS__ in media-info.c
Comment 2 David Schleef 2003-09-03 03:59:38 UTC
Applied to 0.6, thanks.  Already applied to HEAD.