[gcompris-devel] Performance issues

Terje Bergström terje at terje.fi
Sun Sep 30 14:57:59 UTC 2007


On Sunday 30 September 2007 13:29:18 Terje Bergström wrote:
> It seems libshapegame has an unknown symbol at the moment:
> gcompris: Failed to open module /usr/lib/gcompris/libshapegame.so with name
> shapegame (error=/usr/lib/gcompris/libshapegame.so: undefined symbol:
> gnome_canvas_polygon_get_type)
> This is why paintings puzzle is not working. Looking further.

To continue monolog, here's the diff to correct the problem:

--- gcompris-8.4.orig/src/gcompris/gcompris.c
+++ gcompris-8.4/src/gcompris/gcompris.c
@@ -1896,9 +1896,11 @@
   /* FIXME: HACK Needed or we have unresolved symbols at python plugin dlopen
    *        Is there a better way to fix these?
    */
-  GType dummy = gnome_canvas_polygon_get_type();
-  dummy = gnome_canvas_clipgroup_get_type();
-  dummy = gnome_canvas_bpath_get_type();
+  volatile GnomeCanvasItem *dummy = NULL;
+  GNOME_IS_CANVAS_POLYGON(dummy);
+  GNOME_IS_CANVAS_CLIPGROUP(dummy);
+  GNOME_IS_CANVAS_BPATH(dummy);
+  GNOME_TYPE_CANVAS_POLYGON();

   return(0);
 }

Best regards,
Terje




More information about the Gcompris-devel mailing list