[gst-devel] Patch for bug# 106047 (undefined '__gst_function_pointers')

Martin Janzen janzen at pixelmetrix.com
Mon Mar 10 20:36:02 CET 2003


Not sure if this is the place to post patches, but it's tiny, so...

Here's a patch against gstreamer-0.6.0 that fixes Bugzilla# 106047, in 
which building GStreamer with --disable-debug results in an error:

 > ../../gst/.libs/libgstreamer-0.6.so: undefined reference
 > to `__gst_function_pointers'

*** gst/gstinfo.c.orig	Tue Mar 11 12:18:26 2003
--- gst/gstinfo.c	Tue Mar 11 12:17:15 2003
***************
*** 562,569 ****
     /* nothing because it's compiled out */
   }

! #endif /* GST_ENABLE_FUNC_INTSTRUMENTATION */

   void *
   _gst_debug_register_funcptr (void *ptr, gchar *ptrname)
   {
--- 562,570 ----
     /* nothing because it's compiled out */
   }

! #endif /* GST_ENABLE_FUNC_INSTRUMENTATION */

+ #ifdef GST_DEBUG_ENABLED
   void *
   _gst_debug_register_funcptr (void *ptr, gchar *ptrname)
   {
***************
*** 573,576 ****
--- 574,578 ----
       g_hash_table_insert (__gst_function_pointers, ptr, ptrname);
     return ptr;
   }
+ #endif /* GST_DEBUG_ENABLED */


Hope that helps!

--
Martin Janzen
janzen at pixel nospam metrix dot com





More information about the gstreamer-devel mailing list