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 143191 - [build] breaks with "-DG_LOG_DOMAIN=g_log_domain_gstreamer" due to absence of declaration of g_log_domain_gstreamer
[build] breaks with "-DG_LOG_DOMAIN=g_log_domain_gstreamer" due to absence o...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.0
Other AIX
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-26 10:11 UTC by Michael.Wilson
Modified: 2005-06-30 15:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Michael.Wilson 2004-05-26 10:11:26 UTC
Building on AIX with native compiler, for a large number of source files,
produces errors :

"/usr/include/glib/gmessages.h"
 line 146.11: 1506-045 (S) Undeclared identifier g_log_domain_gstreamer.
 line 155.11: 1506-045 (S) Undeclared identifier g_log_domain_gstreamer.
 line 164.11: 1506-045 (S) Undeclared identifier g_log_domain_gstreamer.
 line 173.11: 1506-045 (S) Undeclared identifier g_log_domain_gstreamer.


This occurs in many places because "#include <glib/glib.h>" is not preceeded by
the declaration of the G_LOG_DOMAIN g_log_domain_gstreamer, which is in gstlog.h.

The gst/*.h header files which include glib.h should include gstlog.h beforehand.

The gst/*.c source files which include glib.h before/without including one of
the above mentioned gst/*.h header files, should include gstlog.h beforehand.
Comment 1 Ronald Bultje 2004-06-17 03:40:17 UTC
We don't have this on Linux, obviously. Can you provide a patch?...
Comment 2 David Schleef 2004-10-26 06:23:35 UTC
This can be duplicated by undefining G_HAVE_ISO_VARARGS and G_HAVE_GNUC_VARARGS.
Comment 3 David Schleef 2004-12-14 03:33:04 UTC
I compiled gstreamer and gst-plugins with a modified glibconfig.h, and fixed the
problems that I found.  The only remaining problem is usage of
GST_FORMATS_FUNCTION() in gstv4lsrc.c.  Since this only works on Linux anyway, I
don't really care if it doesn't compile with a non-c99 compiler. 
GST_FORMATS_FUNCTION() will be removed before 0.10 anyway.