Skip to content

Doesn't build with the latest version of libxml2 #111

Description

@demanuel
demanuel@archlinux ~> zef install LibXML
===> Searching for: LibXML
===> Searching for missing dependencies: Method::Also, W3C::DOM:ver<0.0.2+>, XML, App::Prove6
===> Searching for missing dependencies: Getopt::Long:ver<0.3.0+>, Path::Finder:ver<0.4.4+>, Pod::Usage, TAP:ver<0.3.4+>, sigpipe
===> Building: LibXML:ver<0.10.6>:auth<zef:dwarring>:api<0.10.0>
[LibXML] src/xml6_gbl.c: In function ‘xml6_gbl_os_thread_get_keep_blanks’:
[LibXML] src/xml6_gbl.c:70:5: warning: ‘__xmlKeepBlanksDefaultValue’ is deprecated [-Wdeprecated-declarations]
[LibXML]    70 |     return xmlKeepBlanksDefaultValue;
[LibXML]       |     ^~~~~~
[LibXML] In file included from /usr/include/libxml2/libxml/globals.h:11,
[LibXML]                  from src/xml6_gbl.h:4,
[LibXML]                  from src/xml6_gbl.c:2:
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:857:3: note: in expansion of macro ‘XML_OP’
[LibXML]   857 |   XML_OP(xmlKeepBlanksDefaultValue, int, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_gbl.c: In function ‘xml6_gbl_os_thread_set_keep_blanks’:
[LibXML] src/xml6_gbl.c:74:5: warning: ‘__xmlKeepBlanksDefaultValue’ is deprecated [-Wdeprecated-declarations]
[LibXML]    74 |     xmlKeepBlanksDefaultValue = flag;
[LibXML]       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:857:3: note: in expansion of macro ‘XML_OP’
[LibXML]   857 |   XML_OP(xmlKeepBlanksDefaultValue, int, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_gbl.c: In function ‘xml6_gbl_os_thread_get_last_error’:
[LibXML] src/xml6_gbl.c:82:5: warning: ‘__xmlLastError’ is deprecated [-Wdeprecated-declarations]
[LibXML]    82 |     return &xmlLastError;
[LibXML]       |     ^~~~~~
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/xmlerror.h:869:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   869 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/xmlerror.h:863:3: note: in expansion of macro ‘XML_OP’
[LibXML]   863 |   XML_OP(xmlLastError, xmlError, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/xmlerror.h:870:1: note: in expansion of macro ‘XML_GLOBALS_ERROR’
[LibXML]   870 | XML_GLOBALS_ERROR
[LibXML]       | ^~~~~~~~~~~~~~~~~
[LibXML] src/xml6_sax.c: In function ‘xml6_sax_locator_init’:
[LibXML] src/xml6_sax.c:132:3: warning: ‘__xmlDefaultSAXLocator’ is deprecated [-Wdeprecated-declarations]
[LibXML]   132 |   self->getPublicId = xmlDefaultSAXLocator.getPublicId;
[LibXML]       |   ^~~~
[LibXML] In file included from /usr/include/libxml2/libxml/parser.h:13,
[LibXML]                  from src/xml6_sax.h:4,
[LibXML]                  from src/xml6_sax.c:2:
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:854:3: note: in expansion of macro ‘XML_OP’
[LibXML]   854 |   XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_sax.c:133:3: warning: ‘__xmlDefaultSAXLocator’ is deprecated [-Wdeprecated-declarations]
[LibXML]   133 |   self->getSystemId = xmlDefaultSAXLocator.getSystemId;
[LibXML]       |   ^~~~
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:854:3: note: in expansion of macro ‘XML_OP’
[LibXML]   854 |   XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_sax.c:134:3: warning: ‘__xmlDefaultSAXLocator’ is deprecated [-Wdeprecated-declarations]
[LibXML]   134 |   self->getLineNumber = xmlDefaultSAXLocator.getLineNumber;
[LibXML]       |   ^~~~
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:854:3: note: in expansion of macro ‘XML_OP’
[LibXML]   854 |   XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_sax.c:135:3: warning: ‘__xmlDefaultSAXLocator’ is deprecated [-Wdeprecated-declarations]
[LibXML]   135 |   self->getColumnNumber = xmlDefaultSAXLocator.getColumnNumber;
[LibXML]       |   ^~~~
[LibXML] /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
[LibXML]   499 |     attrs XMLPUBFUN type *__##name(void);
[LibXML]       |                           ^~
[LibXML] /usr/include/libxml2/libxml/parser.h:885:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
[LibXML]   885 | #define XML_OP XML_DECLARE_GLOBAL
[LibXML]       |                ^~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:854:3: note: in expansion of macro ‘XML_OP’
[LibXML]   854 |   XML_OP(xmlDefaultSAXLocator, xmlSAXLocator, XML_DEPRECATED) \
[LibXML]       |   ^~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:881:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’
[LibXML]   881 |   XML_GLOBALS_PARSER_CORE \
[LibXML]       |   ^~~~~~~~~~~~~~~~~~~~~~~
[LibXML] /usr/include/libxml2/libxml/parser.h:886:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’
[LibXML]   886 | XML_GLOBALS_PARSER
[LibXML]       | ^~~~~~~~~~~~~~~~~~
[LibXML] In file included from src/xml6_error.c:2:
[LibXML] src/xml6_error.h:6:11: error: unknown type name ‘xmlChar’
[LibXML]     6 | DLLEXPORT xmlChar*
[LibXML]       |           ^~~~~~~
[LibXML] src/xml6_error.c:6:1: error: conflicting types for ‘xml6_error_context_and_column’; have ‘xmlChar *(xmlError *, unsigned int *)’ {aka ‘unsigned char *(struct _xmlError *, unsigned int *)’}
[LibXML]     6 | xml6_error_context_and_column(xmlErrorPtr self, unsigned int* column) {
[LibXML]       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[LibXML] src/xml6_error.h:7:1: note: previous declaration of ‘xml6_error_context_and_column’ with type ‘int *(xmlError *, unsigned int *)’ {aka ‘int *(struct _xmlError *, unsigned int *)’}
[LibXML]     7 | xml6_error_context_and_column( xmlErrorPtr, unsigned int*);
[LibXML]       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[LibXML] make: *** [Makefile:74: src/xml6_error.o] Error 1
[LibXML] The spawned command 'make' exited unsuccessfully (exit code: 2, signal: 0)
[LibXML]   in sub make at /tmp/.zef/1715436128.751905/71ff8db17baaff7448381a7c8d229ab09e796def.tar.gz/LibXML-0.10.6/Build.pm6 line 42
[LibXML]   in method build at /tmp/.zef/1715436128.751905/71ff8db17baaff7448381a7c8d229ab09e796def.tar.gz/LibXML-0.10.6/Build.pm6 line 49
[LibXML]   in sub MAIN at /tmp/.zef/1715436128.751905/71ff8db17baaff7448381a7c8d229ab09e796def.tar.gz/LibXML-0.10.6/Build.pm6 line 56
[LibXML]   in block <unit> at /tmp/.zef/1715436128.751905/71ff8db17baaff7448381a7c8d229ab09e796def.tar.gz/LibXML-0.10.6/Build.pm6 line 5
[LibXML]   in block <unit> at -e line 1
===> Building [FAIL]: LibXML:ver<0.10.6>:auth<zef:dwarring>:api<0.10.0>
Aborting due to build failure: LibXML:ver<0.10.6>:auth<zef:dwarring>:api<0.10.0> (use --force-build to override)

libxml2 version:

demanuel@archlinux ~> pacman -Qs libxml2
local/lib32-libxml2 2.12.6-1
    XML C parser and toolkit (32-bit)
local/libxml2 2.12.6-2
    XML C parser and toolkit
demanuel@archlinux ~> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions