[php-src] Issue #13391: Build failure with libxml2 v2.12.4
| From: | chpock | Date: | Wed, 14 Feb 2024 15:51:41 +0000 |
| Subject: | [php-src] Issue #13391: Build failure with libxml2 v2.12.4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246459@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13391
Author: chpock
### Description
PHP 8.1.27 build from source does not work when linked to libxml2 v2.12.4 on Windows platform.
Resulted in this output:
```
rc /nologo /fo
C:\src\ec-toolchain\build\i686_win64\php-8.1.27\vc15\x64\x64\Release_TS\php8ts.dll.res /d
FILE_DESCRIPTION="\"PHP Script Interpreter\"" /d FILE_NAME="\"php8t
s.dll\"" /d PRODUCT_NAME="\"PHP Script Interpreter\""
/IC:\src\ec-toolchain\build\i686_win64\php-8.1.27\vc15\x64\x64\Release_TS /d
MC_INCLUDE="\"C:\src\ec-toolchain\build\i686_win6
4\php-8.1.27\vc15\x64\x64\Release_TS\wsyslog.rc\"" win32\build\template.rc
ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /Fo
C:\src\ec-toolchain\build\i686_win64\php-8.1.27\vc15\x64\x64\Release_TS\Zend\jump_x86_64_ms_pe_masm.obj
/c Zend\asm\jump_x
86_64_ms_pe_masm.asm
Assembling: Zend\asm\jump_x86_64_ms_pe_masm.asm
ML64.exe /DBOOST_CONTEXT_EXPORT=EXPORT /nologo /Fo
C:\src\ec-toolchain\build\i686_win64\php-8.1.27\vc15\x64\x64\Release_TS\Zend\make_x86_64_ms_pe_masm.obj
/c Zend\asm\make_x
86_64_ms_pe_masm.asm
Assembling: Zend\asm\make_x86_64_ms_pe_masm.asm
php8ts.dll.def : error LNK2001: unresolved external symbol __docbDefaultSAXHandler
php8ts.dll.def : error LNK2001: unresolved external symbol docbCreateFileParserCtxt
php8ts.dll.def : error LNK2001: unresolved external symbol docbCreatePushParserCtxt
php8ts.dll.def : error LNK2001: unresolved external symbol docbDefaultSAXHandlerInit
php8ts.dll.def : error LNK2001: unresolved external symbol docbEncodeEntities
php8ts.dll.def : error LNK2001: unresolved external symbol docbFreeParserCtxt
php8ts.dll.def : error LNK2001: unresolved external symbol docbParseChunk
php8ts.dll.def : error LNK2001: unresolved external symbol docbParseDoc
php8ts.dll.def : error LNK2001: unresolved external symbol docbParseDocument
php8ts.dll.def : error LNK2001: unresolved external symbol docbParseFile
php8ts.dll.def : error LNK2001: unresolved external symbol docbSAXParseDoc
php8ts.dll.def : error LNK2001: unresolved external symbol docbSAXParseFile
php8ts.dll.def : error LNK2001: unresolved external symbol initdocbDefaultSAXHandler
php8ts.dll.def : error LNK2001: unresolved external symbol xmlModuleClose
php8ts.dll.def : error LNK2001: unresolved external symbol xmlModuleFree
php8ts.dll.def : error LNK2001: unresolved external symbol xmlModuleOpen
php8ts.dll.def : error LNK2001: unresolved external symbol xmlModuleSymbol
php8ts.dll.def : error LNK2001: unresolved external symbol xmlSAX2InitDocbDefaultSAXHandler
php8ts.dll.def : error LNK2001: unresolved external symbol xmlXPtrEvalRangePredicate
C:\src\ec-toolchain\build\i686_win64\php-8.1.27\vc15\x64\x64\Release_TS\php8ts.lib : fatal error
LNK1120: 19 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe"' : return code
'0x460'
Stop.
make[1]: *** [Makefile:196: build] Error 2
```
### PHP Version
8.1.27
### Operating System
Windows 10 x86_64