GNOME Bugzilla – Bug 629779
introspection does not build with g-i 0.9.5
Last modified: 2011-06-20 08:35:13 UTC
This is with libgda 4.1.11 and gobject-introspection 0.9.5: CCLD libgda-4.0.la GICOMP Gda-4.0.gir Gda-4.0.gir:22:50: error: The element <type> is invalid here
I know about that bug, see introspection bug #629682. For Libgda V5, which will link with gtk3 and related libraries, I've remove the GdaValueList typedef which is the problem since anyway it's useless, but I can't do it for the upcoming 4.2 because that would break the API & ABI. I don't right now have the correct gobject-introspection version to test, but can you try to replace in libgda/gda-value.h: typedef GList GdaValueList; by: #define GdaValueList GList If it's Ok, I'll include this correction in the next release.
I get the same error with that modification.
*** Bug 629391 has been marked as a duplicate of this bug. ***
We probably just need a workaround in g-i :/
Created attachment 170555 [details] [review] workaround in g-i This is patch that works for me. I must admit I don't really understand why we have GdaSList :-)
I applied the patch (to g-i-0.9.6) and reinstalled. The hack worked. Thanks
/usr/bin/g-ir-compiler --includedir=. --includedir=. Gda-4.0.gir -o Gda-4.0.typelib Gda-4.0.gir:22:50: error: The element <type> is invalid here error parsing file Gda-4.0.gir: The element <type> is invalid here Was the workaround actually applied to g-i? I'm still seeing this trying to build libgda 4.2.2 against g-i 0.9.12+git20101124-0ubuntu3 on Ubuntu natty.
(In reply to comment #7) > Was the workaround actually applied to g-i? Bug status is NEW and not FIXED, hence no.
> typedef GList GdaValueList; > by: > #define GdaValueList GList I agree with Vincent. I don't see why this is needed anyway. Maybe it's just an attempt to keep API compared with some version that had GdaValueList that wasn't just a GList. Regardless of this introspection stuff, I'd like to just use GList everywhere, keeping the typedef around for compatibility, but deprecating it.
There is no GdaValueList in master (libgda-5.0).
Please reopen if this is still a problem.