[php84] php74, php80 : backport fix for libxml2 >= 2.12 build failures
Bjarne D Mathiesen
macintosh at mathiesen.info
Sat Mar 29 14:52:37 UTC 2025
php74, php80 : backport fix for libxml2 >= 2.12 build failures
https://github.com/BjarneDMat/macports-ports/commit/6892c5
Changes to be committed:
modified: lang/php/Portfile
new file: lang/php/files/patch-php74-libxml.diff
new file: lang/php/files/patch-php74-libxml.diff.fails
new file: lang/php/files/patch-php74-libxml.diff.orig
new file: lang/php/files/patch-php80-libxml.diff
new file: lang/php/files/patch-php80-libxml.diff.fails
new file: lang/php/files/patch-php80-libxml.diff.orig
https://github.com/php/php-src/issues/12965
Build Failure With libxml2-2.12.3 #12965
https://github.com/php/php-src/commit/0a39890
Fix libxml2 2.12 build due to API breaks
https://github.com/php/php-src/commit/8a95e61
Fix GH-12702: libxml2 2.12.0 issue building from src
All right; this is a funny one ;-)
The patch-${php}-libxml.diff.orig patches is how it !ought! to work.
!!!BUT!!! 2 of the patches fails for some reason I can't discern.
So, in order to get it to compile, I've had to do:
#=> port clean --work "${phpV}"
#=> port extract "${phpV}"
#=> port -d patch "${phpV}"
#=> cd "$( port work "${phpV}" )/php*
#=> nano ext/soap/php_sdl.c
#=> nano ext/libxml/libxml.c
#=> port -d configure "${phpV}"
#=> port -d build "${phpV}"
$=> php80 -v
PHP 8.0.30 (cli) (built: Mar 29 2025 12:59:36) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
php74 still fails to build w/ a lot of :
Undefined symbols for architecture x86_64:
"_res_9_dn_expand", referenced from:
"_res_9_dn_skipname", referenced from:
"_res_9_init", referenced from:
"_res_9_search", referenced from:
see : https://macports.mathiesen.info/logs/lang/php/php74-main.log
--
Bjarne D Mathiesen
Slagelse ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 5.1 ; OpenCore + macOS 14.7.4 Sonoma
2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB
More information about the macports-dev
mailing list