Skip to content

Build failure with libxml2 v2.13.0 #14563

Closed
@nono303

Description

Description

Build failed when linked to libxml2 v2.13.0

Resulted in this output:

php8.dll.def : error LNK2001: unresolved external symbol xmlErrMemory
C:\sdk\src\php-sdk\phpmaster\vs17\x64\build\Release\php8.lib : fatal error LNK1120: 1 unresolved externals

According to this change in libxml2: GNOME/libxml2@1304369 here is the corresponding patch for a working build

diff --git "a/ext/libxml/php_libxml2.def" "b/ext/libxml/php_libxml2.def"
index 5980df8bf8..c4eac9761c 100644
--- "a/ext/libxml/php_libxml2.def"
+++ "b/ext/libxml/php_libxml2.def"
@@ -345,7 +345,7 @@ xmlElemDump
 xmlEncodeEntities
 xmlEncodeEntitiesReentrant
 xmlEncodeSpecialChars
-xmlErrMemory
+xmlCtxtErr
 xmlFileClose
 xmlFileMatch
 xmlFileOpen

Build context:

  • php-src: 8.3.8 (from git tag)
  • libxml2 : 2.13.0 (from git tag)
  • MSVC (Windows) 14.40 x64

PHP Version

PHP 8.3.8

Operating System

Windows

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions