GNOME Bugzilla – Bug 143191
[build] breaks with "-DG_LOG_DOMAIN=g_log_domain_gstreamer" due to absence of declaration of g_log_domain_gstreamer
Last modified: 2005-06-30 15:13:02 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.
We don't have this on Linux, obviously. Can you provide a patch?...
This can be duplicated by undefining G_HAVE_ISO_VARARGS and G_HAVE_GNUC_VARARGS.
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.