libxml2.6.2x ではエラーが出るようです
make test の結果
=====================================================================
TEST RESULT SUMMARY
———————————————————————
Exts skipped : 55
Exts tested : 24
———————————————————————
Number of tests : 3345 2020
Tests skipped : 1325 ( 39.6%) ——–
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 3 ( 0.1%) ( 0.1%)
Tests passed : 2017 ( 60.3%) ( 99.9%)
———————————————————————
Time taken : 192 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
———————————————————————
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x) [ext/dom/tests/bug38474.phpt]
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
=====================================================================
回避法
wget -P /usr/local/src ftp://xmlsoft.org/libxml2/libxml2-2.6.30.tar.gz
tar xvzf libxml2-2.6.30.tar.gz
cd libxml2-2.6.30
./configure
make
make install
これでうまくいきました