RESOLVED FIXED 45874
introspection does not build with g-i 0.9.5
https://bugs.webkit.org/show_bug.cgi?id=45874
Summary introspection does not build with g-i 0.9.5
Götz Waschk
Reported 2010-09-16 00:22:03 PDT
This is with webkit gtk 1.2.4 on Mandriva Linux with gobject-introspection 0.9.5: GEN WebKit-1.0.gir Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 45, in <module> sys.exit(scanner_main(sys.argv)) File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 301, in scanner_main transformer.register_include(include_obj) File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 113, in register_include self._parse_include(filename) File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 171, in _parse_include parser.parse(filename) File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 60, in parse self.parse_tree(tree) File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 70, in parse_tree self._parse_api(tree.getroot()) File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 164, in _parse_api method(node) File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 178, in _parse_alias typeval = self._parse_type(node) File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 425, in _parse_type assert False, "Failed to parse toplevel type" AssertionError: Failed to parse toplevel type make[1]: *** [WebKit-1.0.gir] Fehler 1
Attachments
Robert Ancell
Comment 1 2010-10-18 17:42:15 PDT
Confirming the same behaviour on Ubuntu 11.04
Robert Ancell
Comment 2 2010-10-20 02:18:11 PDT
The current JSCore is: <?xml version="1.0"?> <repository version="1.1" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0"> <namespace name="JSCore" version="1.0" shared-library="webkit-1.0"> <alias name="GlobalContextRef" target="none" c:type="JSGlobalContextRef"/> <alias name="ObjectRef" target="none" c:type="JSObjectRef"/> <function name="EvaluateScript" c:identifier="JSEvaluateScript"> <return-value transfer-ownership="none"> <type name="none" c:type="void"/> </return-value> <parameters> </parameters> </function> </namespace> </repository> Debugging shows it is the <alias> tags that is causing the problem. I changed them to the following: <alias name="GlobalContextRef" c:type="JSGlobalContextRef"> <type name="opaque" c:type="void*"/> </alias> <alias name="ObjectRef" c:type="JSObjectRef"> <type name="opaque" c:type="void*"> </alias> This seems to get past the compilation problem. However I haven't been able to get the .deb to compile with this fix and I'm not an introspection expert - I don't know if this is correct syntax.
Alberto Garcia
Comment 3 2013-09-11 10:48:35 PDT
This is 3 years old and we now depend on g-i 1.32.0 Please reopen if you think this bug is still relevant. Thanks!
Note You need to log in before you can comment on or make changes to this bug.