Article 6JHB5 [SOLVED] Regression: httpd fails to build with new libxml2-2.12.4

[SOLVED] Regression: httpd fails to build with new libxml2-2.12.4

by
lucabon
from LinuxQuestions.org on (#6JHB5)
Due to the restructuring of some headers include in newwer libxml2, Apache httpd's mod_xml2enc fails to build:
Code: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,The problem is fixed by adding <libxml/xmlstring.h>:

Code:--- a/modules/filters/mod_xml2enc.c 2020-02-21 01:33:40.000000000 +0100
+++ b/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 popBug already filed here: https://bz.apache.org/bugzilla/show_bug.cgi?id=68610
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments