From: murthys at us dot ibm dot com
Operating system: AIX 5.3
PHP version: 4.4.2
PHP Bug Type: Compile Failure
Bug description: Make fails with an yacc error
Description:
------------
I am trying to build mod_php for Apache 2.0.55 AIX 5.3 ML-03
The required packages are built as follows:
1) Build gcc 3.3.4 bootstrap with VAC 7.0.0
2) Build gcc 3.4.5 bootstrap with gcc 3.3.4
3) Build zlib 1.2.3 bootstrap with gcc 3.4.5
4) I have used the rpm of OpenSSL
openssl-0.9.7d-1
openssl-devel-0.9.7d-1
openssl-doc-0.9.7d-1
5) Build OpenLDAP 2.2.23 bootstrap with gcc 3.4.5
6) Build Apache 2.0.55 Bootstrap with gcc 3.4.5
I am now trying to build mod_php php-4.4.2 bootstrap with gcc 3.4.5
Config works well - no problems
#!/usr/bin/bash
export CONFIG_SHELL=/usr/bin/bash
export TOPDIR=/work
export SRCDIR=${TOPDIR}/php-4.4.2
export OBJSRC=${TOPDIR}/php-4.4.2
export LOGFILE=${TOPDIR}/logs/`basename $0`-log-${RUNTIME}
export PREFIX=/usr/php-4.4.2
export CC=/usr/gcc/bin/gcc
export OPENLDAP_DIR=/usr/openldap.2.2.23-bs_gcc345
export ZLIB_DIR=/usr/zlib123-bs_gcc345
export APACHE_DIR=/usr/apache-2.0.55
export CPPFLAGS="-I/opt/freeware/include "
export CPPFLAGS="$CPPFLAGS -I/usr/openldap.2.2.23-bs_gcc345 "
export CPPFLAGS="$CPPFLAGS -I/opt/freeware/include/openssl "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5 "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/backward"
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/bits "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/ext"
export CPPFLAGS="$CPPFLAGS
-I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0"
export CPPFLAGS="$CPPFLAGS
-I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0/bits"
export CPPFLAGS="$CPPFLAGS -I/usr/zlib123-bs_gcc345/include"
export CPPFLAGS="$CPPFLAGS -I/usr/openldap.2.2.23-bs_gcc345/include"
./configure --with-ldap=shared,${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR}
--with-openssl=/opt/freeware/ --with-a pxs2=${APACHE_DIR}/bin/apxs
--with-mime-magic=${APACHE_DIR}/conf/magic --prefix=${PREFIX}
--disable-cgi --with-layout=GNU -
-disable-ipv6 --enable-memory-limit --without-mysql --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --enable-bcmath --en
able-ctype --with-exec-dir=/usr/lib/php4/libexec --disable-static
--with-regex=php --with-as=/usr/ccs/bin/as --with-ld=/usr
/ccs/bin/ld --with-ar=/usr/ccs/bin/ar
However when I run make I get the following error:
yacc -p zend -v -d /work/php-4.4.2/Zend/zend_language_parser.y -o
Zend/zend_language_parser.c
yacc: 1285-742 The escape is not valid or pure_parser is not a reserved
word. Line 47
gmake: *** [Zend/zend_language_parser.c] Error 1
This is my first attempt to build the mod_php and ignorant of the basics.
Is this a real BUG or have I missed out on a prerequisite - Kindly help me.
Thanks
I read the previously reported bugs with 1285-742 error and none of those
resolutions seem to resolve the problem I am facing
--
Edit bug report at http://bugs.php.net/?id=37183&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37183&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=37183&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37183&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37183&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37183&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37183&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37183&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37183&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37183&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37183&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37183&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37183&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37183&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37183&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37183&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37183&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37183&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37183&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37183&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37183&r=mysqlcfg