#20546 [Ana]: compile with gcc 3.2 fails due to parser errors
| From: | derick@php.net | Date: | Tue, 03 Dec 2002 17:53:49 +0000 |
| Subject: | #20546 [Ana]: compile with gcc 3.2 fails due to parser errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26541@lists.php.net to get a copy of this message | ||
ID: 20546
Updated by: derick@php.net
Reported By: ben@thelocust.org
Status: Analyzed
Bug Type: Compile Failure
Operating System: RedHat Linux 8.0
PHP Version: 4.3.0-dev
New Comment:
Recommended is:
autoconf 2.13
automake 1.5
libtool 1.4.2
(snapshots are generated with those too IIRC)
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-12-03 10:12:46] ben@thelocust.org
Hmm... I have updated to the latest of RedHats build tools, autoconf
2.53-8, automake 1.6.3-1, libtool 1.4.2-12, and I still cannot compile,
and receive the same errors as above (with the latest snap,
php4-STABLE-200212031430). What version of the buildtools are used to
successfully compile this?
------------------------------------------------------------------------
[2002-11-22 16:40:41] iliaa@php.net
It appears the problem is NOT gcc but rather the buildtools, the
snapshot avaliable from http://snaps.php.net/ compiles fine.
However,
if I use:
autoconf version 2.54, automake version 1.7.1 and libtool version 1.4.3
to generate the PHP's configuration files from the CVS checkout the
compilation fails.
------------------------------------------------------------------------
[2002-11-22 16:03:23] iliaa@php.net
This is a fairly serious problem that should definately be resolved
before 4.3.0 is released.
The following configuration options
/configure --with-gd --enable-track-vars --enable-force-cgi-redirect
--with-gettext --with-dom --with-zlib-dir=/usr/lib --enable-cli
Result in the compilation error that occured immidiately at the start
of the compile process.
gcc -Iext/zlib/ -I/home/rei/php4/ext/zlib/ -DPHP_ATOM_INC
-I/home/rei/php4/include -I/home/rei/php4/main -I/home/rei/php4
-I/home/rei/php4/Zend -I/usr/local/include/libxml2
-I/home/rei/php4/ext/xml/expat -I/home/rei/php4/TSRM -g -O2 -c
/home/rei/php4/ext/zlib/zlib.c -o ext/zlib/zlib.o && echo >
ext/zlib/zlib.lo
In file included from /usr/include/errno.h:36,
from /home/rei/php4/Zend/zend_operators.h:24,
from /home/rei/php4/Zend/zend_execute_globals.h:27,
from /home/rei/php4/Zend/zend_globals.h:34,
from /home/rei/php4/Zend/zend_list.h:25,
from /home/rei/php4/Zend/zend_API.h:26,
from /home/rei/php4/main/php.h:38,
from /home/rei/php4/ext/zlib/zlib.c:28:
/usr/include/bits/errno.h:25:26: linux/errno.h: Permission denied
In file included from /home/rei/php4/Zend/zend_execute_globals.h:27,
from /home/rei/php4/Zend/zend_globals.h:34,
from /home/rei/php4/Zend/zend_list.h:25,
from /home/rei/php4/Zend/zend_API.h:26,
from /home/rei/php4/main/php.h:38,
from /home/rei/php4/ext/zlib/zlib.c:28:
/home/rei/php4/Zend/zend_operators.h: In function `is_numeric_string':
/home/rei/php4/Zend/zend_operators.h:78: `ERANGE' undeclared (first use
in this function)
/home/rei/php4/Zend/zend_operators.h:78: (Each undeclared identifier is
reported only once
/home/rei/php4/Zend/zend_operators.h:78: for each function it appears
in.)
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/limits.h:132,
from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/limits.h:11,
from /usr/include/sys/param.h:22,
from /home/rei/php4/main/php.h:205,
from /home/rei/php4/ext/zlib/zlib.c:28:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: Permission denied
In file included from /home/rei/php4/main/php.h:205,
from /home/rei/php4/ext/zlib/zlib.c:28:
/usr/include/sys/param.h:23:26: linux/limits.h: Permission denied
/usr/include/sys/param.h:24:25: linux/param.h: Permission denied
In file included from /home/rei/php4/main/php.h:354,
from /home/rei/php4/ext/zlib/zlib.c:28:
/home/rei/php4/main/php_streams.h: At top level:
/home/rei/php4/main/php_streams.h:116: `PATH_MAX' undeclared here (not
in a function)
/home/rei/php4/main/php_streams.h:117: confused by earlier errors,
bailing out
make: *** [ext/zlib/zlib.lo] Error 1
------------------------------------------------------------------------
[2002-11-21 09:52:12] ben@thelocust.org
the latest snapshot (php4-200211211430) also fails for me with the same
errors.
------------------------------------------------------------------------
[2002-11-21 09:49:05] ben@thelocust.org
Apache 2.0.40
configure string:
./configure --with-pgsql --with-gd
--with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars
--enable-force-cgi-redirect --with-gettext --with-gd --with-dom
--with-zlib-dir=/usr/lib --enable-cli
error:
In file included from /home/ben/src/php4-200211211430/Zend/zend.h:202,
from /home/ben/src/php4-200211211430/main/php.h:34,
from
/home/ben/src/php4-200211211430/ext/zlib/zlib.c:28:
/home/ben/src/php4-200211211430/Zend/zend_hash.h:119: parse error
before "va_list"
the parse errors repeat many times.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20546&edit=1