libgda-5.0.3: vapigen fails with "The type name `Xml.NodePtr' could not be found" errors
Submitted by Alexandre Rostovtsev
Assigned to mal..@..db.org
Link to original bug (#668701)
Description
Created attachment 206144 complete build log from 5.0.3 showing the build failure
Even after adding the missing libgda/libgda-5.0-custom.vala file git (see bug #668697), building from the libgda-5.0.3 tarball release still fails when generating libgda-5.0.vapi:
/usr/bin/vapigen-0.14 --metadatadir=../libgda --library libgda-5.0 --pkg libxml-2.0 Gda-5.0.gir libgda-5.0-custom.vala
** (vapigen-0.14:579): CRITICAL **: vala_code_node_get_attribute_string: assertion `self != NULL' failed
** (vapigen-0.14:579): CRITICAL **: vala_code_node_get_attribute_string: assertion self != NULL' failed [...] ** (vapigen-0.14:579): CRITICAL **: vala_code_node_get_attribute_string: assertion
self != NULL' failed
** (vapigen-0.14:579): CRITICAL **: vala_gir_parser_is_container: assertion `sym != NULL' failed
** (vapigen-0.14:579): CRITICAL **: vala_gir_parser_is_container: assertion `sym != NULL' failed
** (vapigen-0.14:579): CRITICAL **: vala_gir_parser_add_symbol_to_container: assertion sym != NULL' failed Gda-5.0.gir:7187.65-7187.65: error: The type name
Xml.NodePtr' could not be found
^
Gda-5.0.gir:13227.65-13227.65: error: The type name Xml.NodePtr' could not be found <type name="libxml2.NodePtr" c:type="xmlNodePtr"/> ^ Gda-5.0.gir:16901.65-16901.65: error: The type name
Xml.NodePtr' could not be found
^
Gda-5.0.gir:5111.65-5111.65: error: The type name Xml.NodePtr' could not be found <type name="libxml2.NodePtr" c:type="xmlNodePtr"/> ^ Gda-5.0.gir:24593.63-24593.63: error: The type name
Xml.NodePtr' could not be found
^
Gda-5.0.gir:24654.63-24654.63: error: The type name Xml.NodePtr' could not be found <type name="libxml2.NodePtr" c:type="xmlNodePtr"/> ^ Gda-5.0.gir:25004.63-25004.63: error: The type name
Xml.NodePtr' could not be found
^
Generation failed: 7 error(s), 0 warning(s)
make[2]: *** [libgda-5.0.vapi] Error 1
This is on a Gentoo system with glib-2.30.2, vala-0.14.1 and gobject-introspection-1.30.0. The /usr/share/vala-0.14/vapi/libxml-2.0.vapi, /usr/share/gir-1.0/libxml2-2.0.gir, and /usr/lib64/girepository-1.0/libxml2-2.0.typelib files are all installed.
Since on the same system, libgda-5.0.2 tarball release (with its libgda-5.0.vapi) builds successfully, I am guessing that this is a bug in libgda and not in vapigen.
The complete build log from libgda-5.0.3 is attached.
Attachment 206144, "complete build log from 5.0.3 showing the build failure":
libgda-5.0.3.build.log
Version: 5.0.x