|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-24 14:17 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
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: root@svabqweb002 $ type bison bison is /usr/local/bin/bison root@svabqweb002 $ 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 root@svabqweb002 $ cksum /usr/local/bin/bison 1145367119 1955189 /usr/local/bin/bison root@svabqweb002 $ oslevel -r 5300-03 root@svabqweb002 $ bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll root@svabqweb002 $ echo $PWD /work/php-4.4.1 root@svabqweb002 $ bison -y -v -d $PWD/ext/standard/parsedate.y -o /tmp/lll root@svabqweb002 $ echo $? 0 root@svabqweb002 $ cksum $PWD/ext/standard/parsedate.y 2527442736 29326 /work/php-4.4.1/ext/standard/parsedate.y root@svabqweb002 $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.Hi: I have put the Flex information for your perusal. root@svabqweb002 $ type flex flex is /usr/local/bin/flex root@svabqweb002 $ /usr/local/bin/flex --version /usr/local/bin/flex version 2.5.4 root@svabqweb002 $ 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 root@svabqweb002 $ 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 ?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} root@svabqweb002 $ root@svabqweb002 $ pwd /work/objsrc-php4.4.2 root@svabqweb002 $ 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 /usr/bin/bash /work/objsrc-php4.4.2/libtool --silent --preserve-dup-deps --mode=link /usr/gcc/bin/gcc -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 -o ext/ldap/ldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath /work/objsrc-php4.4.2/modules -Wl,-brtl -Wl,-bI:/usr/apache-2.0.55//modules/httpd.exp -avoid-version -module -L/opt/freeware//lib -L/usr/zlib123-bs_gcc345/lib ext/ldap/ldap.lo -L/usr/openldap.2.2.23-bs_gcc345/lib -L/usr/openldap.2.2.23-bs_gcc345/lib -lldap -L/usr/openldap.2.2.23-bs_gcc345/lib -L/usr/openldap.2.2.23-bs_gcc345/lib -llber ar: No such file or directory ar: 0707-117 The fopen system call failed on file .libs/ldap.so. gmake: *** [ext/ldap/ldap.la] Error 1 RC(2) ========================================= END: Wed Apr 26 10:54:54 MDT 2006 root@svabqweb002 $ FAILED at this point - I started to develop my workaround root@svabqweb002 $ pwd /work/objsrc-php4.4.2 root@svabqweb002 $ 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 root@svabqweb002 $ find . -name ldap.so -print ./ext/ldap/.libs/ldap.so root@svabqweb002 $ 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* root@svabqweb002 $ ls -l ./.libs total 31880 -rw-r--r-- 1 root system 8193004 Apr 26 10:54 libphp4.a -rw-r--r-- 1 root system 35861 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* root@svabqweb002 $ pwd /work/objsrc-php4.4.2 root@svabqweb002 $ cd .libs root@svabqweb002 $ mv * ../ext/ldap/.libs/ root@svabqweb002 $ cd .. root@svabqweb002 $ rmdir .libs root@svabqweb002 $ ln -sf ext/ldap/.libs ./.libs root@svabqweb002 $ cp -p libphp4.la ext/ldap/ root@svabqweb002 $ root@svabqweb002 $ build-php.4.4.2.bash -make START: Wed Apr 26 11:16:45 MDT 2006 ========================================= COMMAND: 'gmake' /usr/bin/bash /work/objsrc-php4.4.2/libtool --silent --preserve-dup-deps --mode=link /usr/gcc/bin/gcc -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 -o ext/ldap/ldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath /work/objsrc-php4.4.2/modules -Wl,-brtl -Wl,-bI:/usr/apache-2.0.55//modules/httpd.exp -avoid-version -module -L/opt/freeware//lib -L/usr/zlib123-bs_gcc345/lib ext/ldap/ldap.lo -L/usr/openldap.2.2.23-bs_gcc345/lib -L/usr/openldap.2.2.23-bs_gcc345/lib -lldap -L/usr/openldap.2.2.23-bs_gcc345/lib -L/usr/openldap.2.2.23-bs_gcc345/lib -llber /usr/bin/bash /work/objsrc-php4.4.2/libtool --silent --preserve-dup-deps --mode=install cp ext/ldap/ldap.la /work/objsrc-php4.4.2/mod ules ---------------------------------------------------------------------- Libraries have been installed in: /work/objsrc-php4.4.2/modules ................................................. { .... Lot of messages ....}. ................................................. /usr/bin/bash /work/objsrc-php4.4.2/libtool --silent --preserve-dup-deps --mode=link /usr/gcc/bin/gcc -export-dynamic -g -O2 -L/opt/freeware//lib -L/usr/zlib123-bs_gcc345/lib -R /opt/freeware//lib -R /usr/zlib123-bs_gcc345/lib ext/openssl/openssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_dfa_exec.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_printint.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_ucp_findchar.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/ctype/ctype.lo ext/mime_magic/mime_magic.lo ext/overload/overload.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lomain/network.lomain/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.loZend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.loZend/zend_multibyte.lo Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lz -lssl -lcrypto -lm -o sapi/cli/php Build complete. (It is safe to ignore warnings about tempnam and tmpnam). RC(0) ========================================= END: Wed Apr 26 11:16:50 MDT 2006 root@svabqweb002 $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`" } 2>&1 | 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: root@svabqweb002 $ 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 root@svabqweb002 $ Kindly let me know if this is a BUG ? Any help offered is gratefully acknowledged.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.