#37183 [Fbk->Opn]: Make fails with an yacc error
ID: 37183 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: The gmake completed successfully with the following chnages: [EMAIL PROTECTED] $ pwd /work/objsrc-php4.4.2 [EMAIL PROTECTED] $ ls .libs/ Zend/ config.status* libtool* regex/ Makefile build-php.4.4.2.bash* ext/ main/ sapi/ Makefile.fragments config.cache include/ modules/ scripts/ Makefile.objects config.log libphp4.la pear/ TSRM/ config.nice* libs/ php4.spec [EMAIL PROTECTED] $ find . -name ldap.so -print ./ext/ldap/.libs/ldap.so [EMAIL PROTECTED] $ ls -l ./ext/ldap/.libs/ total 352 -rw-r--r-- 1 root system 845 Apr 26 10:54 ldap.exp -rwxr-xr-x 1 root system 174939 Apr 26 10:54 ldap.so* [EMAIL PROTECTED] $ ls -l ./.libs total 31880 -rw-r--r-- 1 root system 8193004 Apr 26 10:54 libphp4.a -rw-r--r-- 1 root system35861 Apr 26 10:54 libphp4.exp lrwxrwxrwx 1 root system 13 Apr 26 10:54 libphp4.la@ -> ../libphp4.la -rw-r--r-- 1 root system 759 Apr 26 10:54 libphp4.lai -rwxr-xr-x 1 root system 8078618 Apr 26 10:54 libphp4.so* [EMAIL PROTECTED] $ pwd /work/objsrc-php4.4.2 [EMAIL PROTECTED] $ cd .libs [EMAIL PROTECTED] $ mv * ../ext/ldap/.libs/ [EMAIL PROTECTED] $ cd .. [EMAIL PROTECTED] $ rmdir .libs [EMAIL PROTECTED] $ ln -sf ext/ldap/.libs ./.libs [EMAIL PROTECTED] $ cp -p libphp4.la ext/ldap/ [EMAIL PROTECTED] $ I executed the gmake again with the same flags and it went through. But now it fails on the gmake install. Previous Comments: [2006-05-01 15:17:55] [EMAIL PROTECTED] >I was able to fix few things during the gmake command and complete the make So it works and compiles fine? What exactly did you change? [2006-04-26 17:32:00] murthys at us dot ibm dot com I was able to fix few things during the gmake command and complete the make May I request you to kindly tell me if I was successful in my attempt or not by looking at the segment of the output I have attached to this BUG report. If you prefer to look at the complete log, I can send you the config log and the output of the build-php.4.4.2.bash script. I use a bash script to build the PHP so that I can easily backtrach my work The script I use is called build-php.4.4.2.bash ## build-php.4.4.2.bash #!/usr/bin/bash export pct="%" export RUNTIME="$(date +${pct}Y${pct}m${pct}d-${pct}H${pct}M${pct}S)" export CONFIG_SHELL=/usr/bin/bash export TOPDIR=/work export SRCDIR=${TOPDIR}/php-4.4.2 export OBJSRC=${TOPDIR}/objsrc-php4.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/include" 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 PATH="$PATH:/usr/local/bin:" { echo "START: `date`" echo "=" if [[ ${PWD} != "${OBJSRC}" ]]; then echo " ERROR !!! This script must be run from '${OBJSRC}' directory" exit 1 fi case $1 in -config) cmd="${SRCDIR}/configure --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/freeware/bin/openssl --wit h-apxs=${APACHE_DIR}/bin/apxs --with-mime-magic=${APACHE_DIR}/conf/magic --prefix=${PREFIX} --disable-cgi --with-layout=GNU --dis able-ipv6 --enable-memory-limit --without-mysql --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --enable-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" echo "COMMAND: '${cmd}'" ${SRCDIR}/configure --with-ldap=shared,${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/freeware/ --with-apxs2=$ {APACHE_DIR}/bin/apxs --with-mime-magic=${APACHE_DIR}/conf/magic --prefi
#37183 [Fbk->Opn]: Make fails with an yacc error
ID: 37183 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: I was able to fix few things during the gmake command and complete the make May I request you to kindly tell me if I was successful in my attempt or not by looking at the segment of the output I have attached to this BUG report. If you prefer to look at the complete log, I can send you the config log and the output of the build-php.4.4.2.bash script. I use a bash script to build the PHP so that I can easily backtrach my work The script I use is called build-php.4.4.2.bash ## build-php.4.4.2.bash #!/usr/bin/bash export pct="%" export RUNTIME="$(date +${pct}Y${pct}m${pct}d-${pct}H${pct}M${pct}S)" export CONFIG_SHELL=/usr/bin/bash export TOPDIR=/work export SRCDIR=${TOPDIR}/php-4.4.2 export OBJSRC=${TOPDIR}/objsrc-php4.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/include" 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 PATH="$PATH:/usr/local/bin:" { echo "START: `date`" echo "=" if [[ ${PWD} != "${OBJSRC}" ]]; then echo " ERROR !!! This script must be run from '${OBJSRC}' directory" exit 1 fi case $1 in -config) cmd="${SRCDIR}/configure --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/freeware/bin/openssl --wit h-apxs=${APACHE_DIR}/bin/apxs --with-mime-magic=${APACHE_DIR}/conf/magic --prefix=${PREFIX} --disable-cgi --with-layout=GNU --dis able-ipv6 --enable-memory-limit --without-mysql --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --enable-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" echo "COMMAND: '${cmd}'" ${SRCDIR}/configure --with-ldap=shared,${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/freeware/ --with-apxs2=$ {APACHE_DIR}/bin/apxs --with-mime-magic=${APACHE_DIR}/conf/magic --prefix=${PREFIX} --disable-cgi --with-layout=GNU --disable-ipv 6 --enable-memory-limit --without-mysql --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --enable-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 echo "RC($?)" echo "=" ;; -make) echo "COMMAND: 'gmake'" gmake echo "RC($?)" echo "=" ;; -install) echo "COMMAND: 'gmake install'" gmake install echo "RC($?)" echo "=" ;; *) echo " build-php.4.4.2.bash [ -configure | -make | -install ] " exit 0 ;; esac echo "END: `date`" } 2>&1 | tee ${LOGFILE} [EMAIL PROTECTED] $ [EMAIL PROTECTED] $ pwd /work/objsrc-php4.4.2 [EMAIL PROTECTED] $ build-php.4.4.2.bash -make . .. /usr/bin/bash /work/objsrc-php4.4.2/libtool --silent --preserve-dup-deps --mode=compile /usr/gcc/bin/gcc -Iext/ldap/ -I/work/php-4.4.2/ext/ldap/ -DPHP_ATOM_INC -I/work/objsrc-php4.4.2/include -I/work/objsrc-php4.4.2/main -I/work/php-4.4.2 -I/opt/freeware//include -I/usr/zlib123-bs_gcc345/include -I/usr/openldap.2.2.23-bs_gcc345/include -I/work/php-4.4.2/ext/xml/expat -I/work/objsrc-php4.4.2/TSRM -I/work/objsrc-php4.4.2/Zend -I/work/php-4.4.2/main -I/work/php-4.4.2/Zend -I/work/php-4.4.2/TSRM -I/work/objsrc-php4.4.2/ -I/opt/freeware/include -I/usr/openldap/include -I/opt/freeware/include/openssl -I/usr/gcc/include/c++/3.4.5 -I/usr/gcc/include/c++/3.4.5/backward -I/usr/gcc/include/c++/3.4.5/bits -I/usr/gcc/include/c++/3.4.5/ext -I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0 -I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0/bits -I/usr/zlib123-bs_gcc345/include -g -O2
#37183 [Fbk->Opn]: Make fails with an yacc error
ID: 37183 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: Hi: I have put the Flex information for your perusal. [EMAIL PROTECTED] $ type flex flex is /usr/local/bin/flex [EMAIL PROTECTED] $ /usr/local/bin/flex --version /usr/local/bin/flex version 2.5.4 [EMAIL PROTECTED] $ what /usr/local/bin/flex /usr/local/bin/flex: 61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos530 7/11/00 12:04:14 [EMAIL PROTECTED] $ I am really surprised at so many failures on my system. Is your machine also at AIX 5.3 ML-03 + ? Is there something that I have missed out along the way which is coming back to haunt me ? Previous Comments: [2006-04-25 07:22:57] [EMAIL PROTECTED] With bison 2.1 I still get "Broken pipe" with this command. bison 1.35 works perfectly fine. What version of flex are you using? [2006-04-25 00:37:01] murthys at us dot ibm dot com I had made the mistake of noth mentioning the /usr/local/bin path in the window from which I was eceuting gmake. I fixed that - but now I get a different error and fails with the following messages: lex -Pzend -S/work/php-4.4.1/Zend/flex.skl -oZend/zend_language_scanner.c -i /work/php-4.4.1/Zend/zend_language_scanner.l 0: Warning: 1285-300 The P flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The S flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The w flag is not valid. 0: Warning: 1285-300 The o flag is not valid. 0: Warning: 1285-339 Ratfor is not supported with lex. 0: Warning: 1285-300 The k flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The h flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The - flag is not valid. 0: Warning: 1285-300 The 4 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 4 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 1 flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The f flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The x flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The k flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The o flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The u flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-339 Ratfor is not supported with lex. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The i flag is not valid. 1249: Error: 1285-302 The parse tree is too large. Try using the following: %e Number gmake: *** [Zend/zend_language_scanner.c] Error 1 I have a return code of 2. [2006-04-25 00:29:30] murthys at us dot ibm dot com Thank you for your prompt response and helping me through this ordeal. You may already know it but just to make sure that the installation went through clean may I humbly request you to do the followng: 1) Download the tar ball to /tmp/ 2) cd / 3) tar -xvf /tmp/bison.2.1-tar 4) ln -sf /usr/local/lib/liby.a /usr/lib/ 5) export PATH=$PATH:/usr/local/bin: 6) bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll Things should work. Just to make sure I have put the command output from my machine for your perusal: [EMAIL PROTECTED
#37183 [Fbk->Opn]: Make fails with an yacc error
ID: 37183 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: Thank you for your prompt response and helping me through this ordeal. You may already know it but just to make sure that the installation went through clean may I humbly request you to do the followng: 1) Download the tar ball to /tmp/ 2) cd / 3) tar -xvf /tmp/bison.2.1-tar 4) ln -sf /usr/local/lib/liby.a /usr/lib/ 5) export PATH=$PATH:/usr/local/bin: 6) bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll Things should work. Just to make sure I have put the command output from my machine for your perusal: [EMAIL PROTECTED] $ type bison bison is /usr/local/bin/bison [EMAIL PROTECTED] $ what /usr/local/bin/bison /usr/local/bin/bison: 61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos530 7/11/00 12:04:14 [EMAIL PROTECTED] $ cksum /usr/local/bin/bison 1145367119 1955189 /usr/local/bin/bison [EMAIL PROTECTED] $ oslevel -r 5300-03 [EMAIL PROTECTED] $ bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll [EMAIL PROTECTED] $ echo $PWD /work/php-4.4.1 [EMAIL PROTECTED] $ bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll [EMAIL PROTECTED] $ echo $? 0 [EMAIL PROTECTED] $ cksum $PWD/ext/standard/parsedate.y 2527442736 29326 /work/php-4.4.1/ext/standard/parsedate.y [EMAIL PROTECTED] $ Previous Comments: [2006-04-24 19:30:02] [EMAIL PROTECTED] I was unable to use any of 2.1/2.0 binaries from this site because of the problem below: bison -y -v -d /fastemp/tony/php-src_4_4/ext/standard/parsedate.y -o /fastemp/tony/php-src_4_4/ext/standard/parsedate.c make: *** [/fastemp/tony/php-src_4_4/ext/standard/parsedate.c] Broken pipe But in the same time self-compiled bison-1.35 works just fine. So I would recommend you to try to compile and use 1.35, I believe it should help. [2006-04-24 14:24:21] murthys at us dot ibm dot com I have installed the bison package fro: http://aixpdslib.seas.ucla.edu/packages/bison.html Version 2.1 for AIX 5.3 [2006-04-24 14:17:12] murthys at us dot ibm dot com 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 o