php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35586 libxml compile failure
Submitted: 2005-12-07 16:34 UTC Modified: 2005-12-07 17:08 UTC
From: ben dot litton at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.1 OS: OS X 10.3.9
Private report: No CVE-ID: None
 [2005-12-07 16:34 UTC] ben dot litton at gmail dot com
Description:
------------
I am trying to compile php 5.1.1 on a rented to demonstrate code we have in status. I did this before with release candidates. I spent many hours trying to get this to compile but to no avail. I eventually pulled out a copy of RC5 I had and it compiled without complaint and an identical 
./configure. 

I had compiled libxml 2.6.22 as I continued to troubleshoot the problem but xml2-config returns 2.6.16. If the requirements between RC5 for libxml2 jumped for 5.1.1, I'm happy just chalking it up to me screwing up the libxml2 install but if my understanding is correct, 2.6.16 should be sufficient.

If you need me to try to replicate this problem, I will only be able to do so in the immediate short term, as it is a rented laptop.

Thanks

Reproduce code:
---------------
./configure --with-apxs --with-mysql=/usr/local/mysql \
--with-libxml-dir=/usr/local/lib
 make


Expected result:
----------------
Successful compile

Actual result:
--------------
/bin/sh /opt/src/php/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/libxml/ -I/opt/src/php/ext/libxml/ -DPHP_ATOM_INC -I/opt/src/php/include -I/opt/src/php/main -I/opt/src/php -I/usr/include/libxml2 -I/opt/src/php/ext/date/lib -I/usr/local/mysql/include -I/opt/src/php/TSRM -I/opt/src/php/Zend  -no-cpp-precomp  -g -O2  -c /opt/src/php/ext/libxml/libxml.c -o ext/libxml/libxml.lo 
/opt/src/php/ext/libxml/libxml.c:43:28: libxml/xmlsave.h: No such file or directory
/opt/src/php/ext/libxml/libxml.c:407: error: parse error before "error"
...
...
And a series of cascading compile errors afterwards.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-07 17:08 UTC] sniper@php.net
That's just very broken libxml installation. Not PHP bug.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC