#38811 [Opn]: compilation fails with --with-oci8 support
ID: 38811 User updated by: murthys at us dot ibm dot com -Reported By: murthys at us dot ib, dot com +Reported By: murthys at us dot ibm dot com Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 ML-03 PHP Version: 4.4.4 New Comment: Inadrtantly I indicated my e-mail address to be [EMAIL PROTECTED] Kindly make a correction and it should be [EMAIL PROTECTED] Previous Comments: [2006-09-13 15:38:18] murthys at us dot ibm dot com Description: Hi: I am trying to build mod_php with oci8 support and I am running into compile errors that are related to php-4.4.2/ext/oci8/oci8.c file. Is this a real BUG and has been fixed in php 4.4.4 or should I use a patch of some kind ? 1) When option --with-oci8=/usr/csapps/db is EXCLUDED during configure, the configure completes without errors and the make completes successfully by building libphp4.so The one line program ?php phpinfo(); ? seem to work correctly 2) When option --with-oci8=/usr/csapps/db is INCLUDED during configure, the configure completes without errors and the make fails as follows: . . /usr/bin/bash /work/objsrc-php-4.4.2/libtool --silent --preserve-dup-deps --mode=compile /usr/gcc402-bs_gcc334/bi n/gcc -Iext/oci8/ -I/work/php-4.4.2/ext/oci8/ -DPHP_ATOM_INC -I/work/objsrc-php-4.4.2/include -I/work/objsrc-php -4.4.2/main -I/work/php-4.4.2 -I/opt/freeware//include -I/usr/openldap-2.2.23/include -I/usr/csapps/db/rdbms/publ ic -I/usr/csapps/db/rdbms/demo -I/work/php-4.4.2/ext/xml/expat -I/work/objsrc-php-4.4.2/TSRM -I/work/objsrc-php-4 .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-php-4.4.2/ -I/opt/ freeware/include -I/usr/local/openssl/include -I/opt/freeware/include/openssl -I/usr/gcc402-bs_gcc334/include/c++ /4.0.2 -I/usr/gcc402-bs_gcc334/include/c++/4.0.2/backward -I/usr/gcc402-bs_gcc334/include/c++/4.0.2/bits -I/usr/g cc402-bs_gcc334/include/c++/4.0.2/debug -I/usr/gcc402-bs_gcc334/include/c++/4.0.2/ext -I/usr/gcc402-bs_gcc334/inc lude/c++/4.0.2/powerpc-ibm-aix5.3.0.0 -I/usr/gcc402-bs_gcc334/include/c++/4.0.2/powerpc-ibm-aix5.3.0.0/bits -I/us r/gcc402-bs_gcc334/include/c++/4.0.2/powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch -Iusr/csapps/db -g -O2 -c /work/ php-4.4.2/ext/oci8/oci8.c -o ext/oci8/oci8.lo In file included from /work/php-4.4.2/ext/oci8/oci8.c:69: /work/php-4.4.2/ext/oci8/php_oci8.h:59: error: syntax error before 'OCIServer' /work/php-4.4.2/ext/oci8/php_oci8.h:59: warning: no semicolon at end of struct or union /work/php-4.4.2/ext/oci8/php_oci8.h:60: warning: data definition has no type or storage class /work/php-4.4.2/ext/oci8/php_oci8.h:61: warning: data definition has no type or storage class /work/php-4.4.2/ext/oci8/php_oci8.h:69: error: syntax error before 'oci_server' /work/php-4.4.2/ext/oci8/php_oci8.h:69: warning: no semicolon at end of struct or union /work/php-4.4.2/ext/oci8/php_oci8.h:70: warning: data definition has no type or storage class /work/php-4.4.2/ext/oci8/php_oci8.h:71: error: syntax error before '*' token .. .. .. gmake: *** [ext/oci8/oci8.lo] Error 1 I have searched the previously reported BUG articles about this problem and some were related missing oci.h files, not providing correct PATHS etc. I have checked all of the previously recommended solutions . They do not resolve the problem I am seeing. Any help and suggestion offered is gratefully acknowledged. Regards, Sridhar -- Edit this bug report at http://bugs.php.net/?id=38811edit=1
#38811 [Fbk-Csd]: compilation fails with --with-oci8 support
ID: 38811 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Feedback +Status: Closed Bug Type: Compile Failure Operating System: AIX 5.3 ML-03 PHP Version: 4.4.4 New Comment: Hi Tony: Thank you for your quick response. 1) I downloaded the code from: http://snaps.php.net/php4-STABLE-latest.tar.gz 2) I was able to build the PHP 4.4.4 with OCI support correctly #!/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.4 export OBJSRC=${TOPDIR}/objsrc-php-4.4.4 export LOGFILE=${TOPDIR}/logs/`basename $0`-log-${RUNTIME} export PREFIX=/usr/php-4.4.4 export OPENLDAP_DIR=/usr/openldap-2.2.23 export ZLIB_DIR=/opt/freeware/ export APACHE_DIR=/usr/apache-2.0.55 export PATH=$PATH:/usr/local/bin:/opt/freeware/bin: export LVL=4.0.2 export GCC_DIR=/usr/gcc402-bs_gcc334 export CC=${GCC_DIR}/bin/gcc export CPPFLAGS=-I/opt/freeware/include export CPPFLAGS=$CPPFLAGS -I/usr/local/openssl/include export CPPFLAGS=$CPPFLAGS -I/opt/freeware/include/openssl export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL} export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/backward export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/debug export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/ext export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0 export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits/stdc++.h.g ch export CPPFLAGS=$CPPFLAGS -I/usr/csapps/db/rdbms/demo -I/work/php-4.4.4/ext/oci8 export LDFLAG=-L/opt/freeware/lib -L${OPENLDAP_DIR}/lib -L/usr/local/lib { 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 --srcdir=${SRCDIR} --with-ldap=${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 --enable-ipv6 --enable-memory-limit -- without-mysql --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --enable-ctype --wi th-exec-dir=/usr/lib/php4/libexec --disable-static --with-regex=php --with-as=/usr/ccs/bin/as --wit h-ld=/usr/ccs/bin/ld --with-ar=/usr/ccs/bin/ar --exec-prefix=/usr/php-4.4.4 --bindir=/usr/php-4.4.4 /bin --sbindir=/usr/php-4.4.4/sbin --libexecdir=/usr/php-4.4.4/libexec --libdir=/usr/php-4.4.4/lib/ --with-oci8=/usr/csapps/db echo COMMAND: '${cmd}' ${SRCDIR}/configure --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --w ith-openssl=/opt/freeware/ --with-apxs2=${APACHE_DIR}/bin/apxs --with-mime-magic=${APACHE_DIR}/conf/ magic --prefix=${PREFIX} --disable-cgi --with-layout=GNU --enable-ipv6 --enable-memory-limit --witho ut-mysql --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --enable-ctype --with-ex ec-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 --exec-prefix=/usr/php-4.4.4 --bindir=/usr/php-4.4.4/bin --sbindir=/usr/php-4.4.4/sbin --libexecdir=/usr/php-4.4.4/libexec --libdir=/usr/php-4.4.4/lib/ --w ith-oci8=/usr/csapps/db echo RC($?) echo = ;; -make) echo COMMAND: 'gmake' gmake echo RC($?) echo = ;; *) echo build-php.4.4.4.bash [ -config | -make ] exit 0 ;; esac echo END: `date` } 21 | tee ${LOGFILE} 3) I used the following script to build it: 4) I tested the PHP with OCI support using the following PHP test script. // test_oci8.php - A simple script to verify OCI support for PHP ?php //$db_id = fsdba; $user = fsdba; $pass = fsdba; $tnsalias = pitkin; $tnsalias = oracle-idb; // log on to oracle server using data above if ( $db_id = @OCILogon ($user, $pass, $tnsalias)) { //sql query $queryOne = @OCIParse($db_id, 'SELECT COUNT(*) FROM dual'); //execute above query if(OCIExecute($queryOne, OCI_DEFAULT)) { echo 'Congratulations, Connection Query Successful!!'; } else{ echo 'Sorry, Query Unsuccessful'; } } else { echo 'Sorry, Connection Unsuccessful'; } ? // Once again, thank you for helping me out with this. Previous Comments
#37183 [Opn-Csd]: gmake -install for PHP 4.4.2 with Apache 2.0.53/2.0.55 fails
ID: 37183 User updated by: murthys at us dot ibm dot com Reported By: murthys at us dot ibm dot com -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: Success at last ! My friend Tim Sawyer from IBM suggested that since my configure ran clean and gmake ran clean, and the files were put correctly in ${SRCDIR}/libs and ${SRCDIR}/.libs directories, it might be worth trying to put the shared object module by hand. This is what I did: 1) Copied ${SRCDIR}/.libs/libphp4.so to /usr/apache-2.0.55/modules directory 2) chmod 0755 /usr/apache-2.0.55/modules/libphp5.so 3) Edit httpd.conf file and put the following lines AddModule mod_php.c LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php 4) stopped/started the Apache 5) put a test_php.php script in document root which contained the following lines; ?php phpinfo(); ? 6) Pointed the browser to http://Server/test_php.php - BINGO It dispayed the PHP page I am now of the opinion that the libtool is broken and may be we need to address that problem. Thank you for your help and support. Previous Comments: [2006-05-09 15:13:02] murthys at us dot ibm dot com gmake -install results following error: [EMAIL PROTECTED] $ build-php.4.4.2.bash -install cp .libs/libphp4.lai /usr/apache-2.0.53/modules/libphp4.la libtool: install: warning: remember to run `libtool --finish /work/objsrc-php-4.4.2/libs' chmod 755 /usr/apache-2.0.53/modules/libphp4.so chmod: /usr/apache-2.0.53/modules/libphp4.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . gmake: *** [install-sapi] Error 1 [2006-05-09 14:29:34] murthys at us dot ibm dot com gmake works correcvtly with a small change to my script 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-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 export ZLIB_DIR=/usr/zlib-1.2.3 export APACHE_DIR=/usr/apache-2.0.53 export PATH=$PATH:/usr/local/bin:/opt/freeware/bin: export LVL=4.0.2 export GCC_DIR=/usr/gcc402-bs_gcc334 export CC=${GCC_DIR}/bin/gcc export CPPFLAGS=-I/opt/freeware/include export CPPFLAGS=$CPPFLAGS -I/usr/local/openssl/include export CPPFLAGS=$CPPFLAGS -I/opt/freeware/include/openssl export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL} export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/backward export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/debug export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/ext export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0 export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch export LDFLAG=-L/opt/freeware/lib -L${OPENLDAP_DIR}/lib -L/usr/local/lib { 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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/op t/freeware/ --with-apxs2=${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-sy svmsg --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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/fre eware/ --with-apxs2=${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 --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
#37183 [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: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: gmake works correcvtly with a small change to my script 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-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 export ZLIB_DIR=/usr/zlib-1.2.3 export APACHE_DIR=/usr/apache-2.0.53 export PATH=$PATH:/usr/local/bin:/opt/freeware/bin: export LVL=4.0.2 export GCC_DIR=/usr/gcc402-bs_gcc334 export CC=${GCC_DIR}/bin/gcc export CPPFLAGS=-I/opt/freeware/include export CPPFLAGS=$CPPFLAGS -I/usr/local/openssl/include export CPPFLAGS=$CPPFLAGS -I/opt/freeware/include/openssl export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL} export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/backward export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/debug export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/ext export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0 export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch export LDFLAG=-L/opt/freeware/lib -L${OPENLDAP_DIR}/lib -L/usr/local/lib { 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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/op t/freeware/ --with-apxs2=${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-sy svmsg --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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/fre eware/ --with-apxs2=${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 --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` } 21 | tee ${LOGFILE} Now this is what is going on: 1) I run build-php.4.4.2.bash -config It will complete successfully 2) I run build-php.4.4.2.bash -make It will complete successfully 3) Lastly I run build-php.4.4.2.bash -install Then I get the following error: [EMAIL PROTECTED] $ build-php.4.4.2.bash -install cp .libs/libphp4.lai /usr/apache-2.0.53/modules/libphp4.la libtool: install: warning: remember to run `libtool --finish /work/objsrc-php-4.4.2/libs' chmod 755 /usr/apache-2.0.53/modules/libphp4.so chmod: /usr/apache-2.0.53/modules/libphp4.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . gmake: *** [install-sapi] Error 1 RC(2) = END: Tue May 9 01:15:43 MDT 2006 [EMAIL PROTECTED] $ Kindly let me know if this is a BUG ? Any help offered is gratefully acknowledged. Previous Comments: [2006-05-01 15:23:04] murthys at us dot ibm dot com 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
#37183 [Opn]: gmake -install for PHP 4.4.2 with Apache 2.0.53/2.0.55 fails
ID: 37183 User updated by: murthys at us dot ibm dot com -Summary: Make fails with an yacc error Reported By: murthys at us dot ibm dot com Status: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: gmake -install results following error: [EMAIL PROTECTED] $ build-php.4.4.2.bash -install cp .libs/libphp4.lai /usr/apache-2.0.53/modules/libphp4.la libtool: install: warning: remember to run `libtool --finish /work/objsrc-php-4.4.2/libs' chmod 755 /usr/apache-2.0.53/modules/libphp4.so chmod: /usr/apache-2.0.53/modules/libphp4.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . gmake: *** [install-sapi] Error 1 Previous Comments: [2006-05-09 14:29:34] murthys at us dot ibm dot com gmake works correcvtly with a small change to my script 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-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 export ZLIB_DIR=/usr/zlib-1.2.3 export APACHE_DIR=/usr/apache-2.0.53 export PATH=$PATH:/usr/local/bin:/opt/freeware/bin: export LVL=4.0.2 export GCC_DIR=/usr/gcc402-bs_gcc334 export CC=${GCC_DIR}/bin/gcc export CPPFLAGS=-I/opt/freeware/include export CPPFLAGS=$CPPFLAGS -I/usr/local/openssl/include export CPPFLAGS=$CPPFLAGS -I/opt/freeware/include/openssl export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL} export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/backward export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/debug export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/ext export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0 export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits export CPPFLAGS=$CPPFLAGS -I${GCC_DIR}/include/c++/${LVL}/powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch export LDFLAG=-L/opt/freeware/lib -L${OPENLDAP_DIR}/lib -L/usr/local/lib { 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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/op t/freeware/ --with-apxs2=${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-sy svmsg --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 --srcdir=${SRCDIR} --with-ldap=${OPENLDAP_DIR} --with-zlib-dir=${ZLIB_DIR} --with-openssl=/opt/fre eware/ --with-apxs2=${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 --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` } 21 | tee ${LOGFILE} Now this is what is going on: 1) I run build-php.4.4.2.bash -config It will complete successfully 2) I run build-php.4.4.2.bash -make It will complete successfully 3) Lastly I run build-php.4.4.2.bash -install Then I get the following error: [EMAIL PROTECTED] $ build-php.4.4.2.bash -install cp .libs/libphp4.lai /usr/apache-2.0.53/modules/libphp4.la libtool: install: warning: remember to run `libtool --finish /work/objsrc-php-4.4.2/libs' chmod 755 /usr/apache-2.0.53/modules/libphp4.so chmod: /usr/apache-2.0.53/modules/libphp4.so: A file or directory in the path name does not exist. apxs:Error: Command failed with rc=65536 . gmake
#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 --prefix=${PREFIX} --disable-cgi --with-layout
#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` } 21 | 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 -c /work/php-4.4.2/ext/ldap/ldap.c -o ext/ldap/ldap.lo
#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 [NEW]: Make fails with an yacc error
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=37183edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37183r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37183r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37183r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37183r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37183r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37183r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37183r=needscript Try newer version:http://bugs.php.net/fix.php?id=37183r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37183r=support Expected behavior:http://bugs.php.net/fix.php?id=37183r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37183r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37183r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37183r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37183r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37183r=dst IIS Stability:http://bugs.php.net/fix.php?id=37183r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37183r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37183r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37183r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37183r=mysqlcfg
#37183 [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: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: I have installed the bison package fro: http://aixpdslib.seas.ucla.edu/packages/bison.html Version 2.1 for AIX 5.3 Previous Comments: [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 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 this bug report at http://bugs.php.net/?id=37183edit=1
#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 of the basics
#37183 [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: Open Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 4.4.2 New Comment: 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. Previous Comments: [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] $ 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] $ [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