https://bz.apache.org/bugzilla/show_bug.cgi?id=68610
Bug ID: 68610 Summary: Compilation failed with newer libxml2 Product: Apache httpd-2 Version: 2.5-HEAD Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: mod_xml2enc Assignee: bugs@httpd.apache.org Reporter: apa...@bonslack.org Target Milestone: --- With newer libxml2 (tested with libxml2-2.12.4), due to removed includes in some header, mox_xml2enc.c fails to build: mod_xml2enc.c: In function 'sniff_encoding': mod_xml2enc.c:212:53: error: unknown type name 'xmlChar' 212 | ctx->xml2enc = xmlDetectCharEncoding((const xmlChar*)ctx->buf, To problem is fixed by simply adding <libxml/xmlstring.h> to source file: --- modules/filters/mod_xml2enc.c.orig 2020-02-21 01:33:40.000000000 +0100 +++ modules/filters/mod_xml2enc.c 2024-02-10 13:14:14.457401250 +0100 @@ -36,6 +36,7 @@ /* libxml2 */ #include <libxml/encoding.h> +#include <libxml/xmlstring.h> #if defined(__clang__) #pragma clang diagnostic pop -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org