Index: gst/gst.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/gst/gst.c,v
retrieving revision 1.196
diff -u -r1.196 gst.c
--- gst/gst.c	27 Dec 2005 12:11:19 -0000	1.196
+++ gst/gst.c	11 Feb 2006 23:52:22 -0000
@@ -463,6 +463,17 @@
 static gboolean
 init_pre (void)
 {
+#ifdef GST_HAVE_GLIB_2_8
+  if (glib_major_version < 2 || 
+     (glib_major_version == 2 &&
+      glib_minor_version < 8)) {
+    g_warning ("GStreamer was compiled against GLib %d.%d.%d but is running"
+        " against %d.%d.%d. This will cause reference counting issues",
+        GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION,
+        glib_major_version, glib_minor_version, glib_micro_version);
+  }
+#endif
+
   g_type_init ();
 
   if (g_thread_supported ()) {
