[Webkit-unassigned] [Bug 266051] New: Build fails with libxml2 version 2.11.x-prior due to API change
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 7 19:02:47 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=266051
Bug ID: 266051
Summary: Build fails with libxml2 version 2.11.x-prior due to
API change
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dave at killthe.net
See https://bugs.webkit.org/show_bug.cgi?id=265128. libxml2 2.12.0+ xmlStructuredErrorFunc second parameter has been changed to 'const'. WebKit has been patched for successful build with 2.12.0+, but now the build fails with older libxml2 versions. CMake script should either detect which libxml2 version is installed and #ifdef the code accordingly, or make 2.12.0+ a hard dependency.
- - -
In file included from ../../WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-4.cpp:3:
../../../Source/WebCore/xml/XSLStyleSheetLibxslt.cpp: In member function 'bool WebCore::XSLStyleSheet::parseString(const WTF::String&)':
../../../Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:139:129: error: invalid conversion from 'void (*)(void*, const xmlError*)' {aka 'void (*)(void*, const _xmlError*)'} to 'xmlStructuredErrorFunc' {aka 'void (*)(void*, _xmlError*)'} [-fpermissive]
139 | XMLDocumentParserScope scope(cachedResourceLoader(), XSLTProcessor::genericErrorFunc, XSLTProcessor::parseErrorFunc, console);
| ^
| |
| void (*)(void*, const xmlError*) {aka void (*)(void*, const _xmlError*)}
In file included from ../../../Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:34:
../../../Source/WebCore/xml/parser/XMLDocumentParserScope.h:47:99: note: initializing argument 3 of 'WebCore::XMLDocumentParserScope::XMLDocumentParserScope(WebCore::CachedResourceLoader*, xmlGenericErrorFunc, xmlStructuredErrorFunc, void*)'
47 | XMLDocumentParserScope(CachedResourceLoader*, xmlGenericErrorFunc, xmlStructuredErrorFunc structuredErrorFunc = 0, void* errorContext = nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-4.cpp:6:
../../../Source/WebCore/xml/XSLTProcessorLibxslt.cpp: In function 'xmlDoc* WebCore::docLoaderFunc(const xmlChar*, xmlDictPtr, int, void*, xsltLoadType)':
../../../Source/WebCore/xml/XSLTProcessorLibxslt.cpp:135:34: error: invalid conversion from 'void (*)(void*, const xmlError*)' {aka 'void (*)(void*, const _xmlError*)'} to 'xmlStructuredErrorFunc' {aka 'void (*)(void*, _xmlError*)'} [-fpermissive]
135 | xmlSetStructuredErrorFunc(console, XSLTProcessor::parseErrorFunc);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void*, const xmlError*) {aka void (*)(void*, const _xmlError*)}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231208/83791e39/attachment.htm>
More information about the webkit-unassigned
mailing list