[DRE-maint] Bug#1073352: ruby-libxml: FTBFS: ruby_xml_encoding.h:12:27: error: unknown type name ‘xmlChar’
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 13:50:00 BST 2024
Source: ruby-libxml
Version: 3.2.4-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/x86_64-linux-gnu/ruby-3.1.0 -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -I/usr/include/libxml2 -DRUBY_EXTCONF_H=\"extconf.h\" -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -o libxml.o -c libxml.c
> In file included from ruby_libxml.h:13,
> from libxml.c:1:
> ruby_xml_encoding.h:12:27: error: unknown type name ‘xmlChar’
> 12 | VALUE rxml_new_cstr(const xmlChar* xstr, const xmlChar* xencoding);
> | ^~~~~~~
> ruby_xml_encoding.h:12:48: error: unknown type name ‘xmlChar’
> 12 | VALUE rxml_new_cstr(const xmlChar* xstr, const xmlChar* xencoding);
> | ^~~~~~~
> ruby_xml_encoding.h:13:31: error: unknown type name ‘xmlChar’
> 13 | VALUE rxml_new_cstr_len(const xmlChar* xstr, const long length, const xmlChar* xencoding);
> | ^~~~~~~
> ruby_xml_encoding.h:13:71: error: unknown type name ‘xmlChar’
> 13 | VALUE rxml_new_cstr_len(const xmlChar* xstr, const long length, const xmlChar* xencoding);
> | ^~~~~~~
> ruby_xml_encoding.h:15:60: error: unknown type name ‘xmlCharEncoding’
> 15 | rb_encoding* rxml_xml_encoding_to_rb_encoding(VALUE klass, xmlCharEncoding xmlEncoding);
> | ^~~~~~~~~~~~~~~
> ruby_xml_encoding.h:16:41: error: unknown type name ‘xmlChar’
> 16 | rb_encoding* rxml_figure_encoding(const xmlChar* xencoding);
> | ^~~~~~~
> In file included from ruby_libxml.h:14:
> ruby_xml_attributes.h:9:27: error: unknown type name ‘xmlNodePtr’
> 9 | VALUE rxml_attributes_new(xmlNodePtr xnode);
> | ^~~~~~~~~~
> In file included from ruby_libxml.h:15:
> ruby_xml_attr.h:9:22: error: unknown type name ‘xmlAttrPtr’
> 9 | VALUE rxml_attr_wrap(xmlAttrPtr xattr);
> | ^~~~~~~~~~
> In file included from ruby_libxml.h:16:
> ruby_xml_attr_decl.h:9:27: error: unknown type name ‘xmlAttributePtr’
> 9 | VALUE rxml_attr_decl_wrap(xmlAttributePtr xattribute);
> | ^~~~~~~~~~~~~~~
> In file included from ruby_libxml.h:17:
> ruby_xml_document.h:8:26: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
> 8 | VALUE rxml_document_wrap(xmlDocPtr xnode);
> | ^~~~~~~~~
> | xmlErrorPtr
> ruby_xml_document.h:10:9: error: unknown type name ‘xmlChar’
> 10 | typedef xmlChar * xmlCharPtr;
> | ^~~~~~~
> In file included from ruby_libxml.h:18:
> ruby_xml_node.h:9:21: error: unknown type name ‘xmlNodePtr’
> 9 | void rxml_node_mark(xmlNodePtr xnode);
> | ^~~~~~~~~~
> ruby_xml_node.h:10:22: error: unknown type name ‘xmlNodePtr’
> 10 | VALUE rxml_node_wrap(xmlNodePtr xnode);
> | ^~~~~~~~~~
> ruby_xml_node.h:11:23: error: unknown type name ‘xmlNodePtr’
> 11 | void rxml_node_manage(xmlNodePtr xnode, VALUE node);
> | ^~~~~~~~~~
> ruby_xml_node.h:12:25: error: unknown type name ‘xmlNodePtr’
> 12 | void rxml_node_unmanage(xmlNodePtr xnode, VALUE node);
> | ^~~~~~~~~~
> In file included from ruby_libxml.h:19:
> ruby_xml_namespace.h:9:27: error: unknown type name ‘xmlNsPtr’; did you mean ‘xmlCharPtr’?
> 9 | VALUE rxml_namespace_wrap(xmlNsPtr xns);
> | ^~~~~~~~
> | xmlCharPtr
> In file included from ruby_libxml.h:29:
> ruby_xml_sax2_handler.h:6:8: error: unknown type name ‘xmlSAXHandler’
> 6 | extern xmlSAXHandler rxml_sax_handler;
> | ^~~~~~~~~~~~~
> make[1]: *** [Makefile:246: libxml.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/ruby-libxml_3.2.4-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-ruby-extras-maintainers
mailing list