php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34844 PHP 5.1.0RC1 Make Fails on OS X
Submitted: 2005-10-13 00:23 UTC Modified: 2006-01-08 12:06 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: admin at allthingsinteresting dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.0RC1 OS: Mac OS X
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at allthingsinteresting dot com
New email:
PHP Version: OS:

 

 [2005-10-13 00:23 UTC] admin at allthingsinteresting dot com
Description:
------------
It appears that there is some problem which is preventing me from installing php on my iBook running Mac OS 10.3

I believe that I am following the correct installation procedure, but when I shell>make it dies with a bunch of errors.

Reproduce code:
---------------
cd /usr/local/php-5.1.0RC1
./configure --without-pear
make
make install

Expected result:
----------------
PHP Install Itself

Actual result:
--------------
/bin/sh /usr/local/php-5.1.0RC1/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/libxml/ -I/usr/local/php-5.1.0RC1/ext/libxml/ -DPHP_ATOM_INC -I/usr/local/php-5.1.0RC1/include -I/usr/local/php-5.1.0RC1/main -I/usr/local/php-5.1.0RC1 -I/usr/include/libxml2 -I/usr/local/php-5.1.0RC1/TSRM -I/usr/local/php-5.1.0RC1/Zend  -no-cpp-precomp  -g -O2  -c /usr/local/php-5.1.0RC1/ext/libxml/libxml.c -o ext/libxml/libxml.lo 
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:337: error: parse error before "error"
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c: In function `_php_libxml_free_error':
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:339: error: `error' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:339: error: (Each undeclared identifier is reported only once
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:339: error: for each function it appears in.)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c: At top level:
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:343: error: parse error before "error"
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c: In function `_php_list_set_error_structure':
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:345: error: `xmlError' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:345: error: parse error before "error_copy"
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:350: error: `error_copy' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:352: error: `error' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:357: error: `XML_ERR_ERROR' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:363: error: `msg' undeclared (first use in this function)
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c: At top level:
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:455: error: parse error before "xmlErrorPtr"
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c: In function `php_libxml_structured_error_handler':
/usr/local/php-5.1.0RC1/ext/libxml/libxml.c:457: error: `error' undeclared (first use in this function)
make: *** [ext/libxml/libxml.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-13 01:32 UTC] admin at allthingsinteresting dot com
The snapshot is suffering with the same xml parser bug, at least on my computer.
 [2005-10-13 10:44 UTC] tony2001@php.net
Which version of libxml2 you have in your system?
 [2005-10-13 16:25 UTC] admin at allthingsinteresting dot com
How Do I tell?

I would be perfectly glad to disable it, if I knew how...
 [2005-10-14 14:21 UTC] tony2001@php.net
`/usr/bin/xml2-config --version` should the version number.
I'm not sure xml2-config is under /usr/bin/ in MacOS, so you should find it yourself.
 [2005-10-17 11:42 UTC] leon at lost dot co dot nz
I've been using PHP 5.1rc1 on my iBook no problems -- with 
10.3, and more recently, 10.4 using fink with the following 
config flags:

./configure --with-apxs --with-mcrypt=/sw --with-libxml-
dir=/sw --with-gd --with-zlib --enable-exif --with-freetype-
dir=/sw/lib/freetype2 --with-jpeg-dir=/sw --with-png-dir=/sw 
--without-pear --enable-pspell --enable-wddx

(/sw is fink's prefix, BTW, and the XML2 version provided by 
fink is 2.6.20)
 [2005-10-18 17:48 UTC] jeff at procata dot com
make also fails with 5.1.0RC3 and Mac OS X 10.3.9.

xml2-config --version

reports

2.6.16

./configure --with-apxs --enable-memory-limit --prefix=/
usr/local/php510 --with-mysql=/usr/local/mysql
 [2006-01-08 06:37 UTC] jeff at procata dot com
The version of libxml2 that is included with OS X 10.3.9 
is missing a file which PHP uses.  Install a local 
version of libxml2 and configure php to use the local 
version instead.
 [2006-01-08 12:06 UTC] helly@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

If a file is missing the the distribution f that library is broken which i obviously not a php problem.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 28 18:01:30 2025 UTC