PHP 4.4.7/php5.2.4 make install fails on AIX 5.3 TL06

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



The last compile and build of php was on AIX 5.2 and AIX 4.3.3.

At that time the following configure script worked fine (using gcc 3.something)

./configure \
        -with-apxs=/usr/local/apache/bin/apxs \
        --enable-safe-mode \
        --enable-magic-quotes \
        --with-openssl=/usr/local/ssl \
        --with-zlib-dir=/exp/projects/zlib-1.2.3 \
        --enable-bcmath \
        --enable-dba \
        --enable-ftp \
        --with-gd \
        --with-jpeg-dir=/usr/local/lib  \
        --with-ttf \
        --with-freetype-dir \
        --enable-gd-native-ttf \
        --with-mysql=/usr/local/mysql \
        --with-pear

I have been trying on AIX 5.3, using the xlC 7.0 compiler using these configure scripts to build php4 and php5 on both apache1 and apache2

Common to both is a failure of the bcmath extension to compile due to redeclaration of functions (file rt.c fails) - see php.bugs 43000 or 43040. I am hoping that 43040 and/or here means someone will look into the cause.

php 4.4.7 configure script:
./configure \
        -with-apxs=/usr/local/apache/bin/apxs \
        --enable-safe-mode \
        --enable-magic-quotes \
        --with-openssl=/usr/local/ssl \
        --with-zlib-dir=/data/prj/zlib-1.2.3 \
        --disable-bcmath \
        --enable-dba \
        --enable-ftp \
        --with-gd \
        --with-jpeg-dir=/usr/local      \
        --with-ttf \
        --with-freetype-dir \
        --enable-gd-native-ttf \
        --with-mysql=/usr/local/mysql \
        --with-pear

php 5.2.4 configure script:
./configure \
        -with-apxs2=/usr/local/apache2/bin/apxs \
        --enable-safe-mode \
        --enable-magic-quotes \
        --with-openssl=/usr/local/ssl \
        --with-zlib-dir=/data/prj/zlib-1.2.3 \
        --disable-bcmath \
        --enable-dba \
        --enable-ftp \
        --with-gd \
        --with-jpeg-dir=/usr/local/lib  \
        --with-ttf \
        --with-freetype-dir \
        --enable-gd-native-ttf \
        --with-mysql=/usr/local/mysql \
        --with-pear

The configuration and make processes work fine once bcmath is disabled.

Further, I am having install problems -


Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

michael@x054:[/home/michael/prj/php-4.4.7]make install
Installing PHP SAPI module:       apache
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
exec(): 0509-036 Cannot load program /home/michael/prj/php-4.4.7/sapi/cli/php because of the following errors:
        0509-022 Cannot load module /usr/local/lib/libpng.a(libpng12.so.0).
0509-150 Dependent module /usr/local/lib/libz.a(libz.so.1) could not be loaded.
        0509-152   Member libz.so.1 is not found in archive
        0509-022 Cannot load module php.
0509-150 Dependent module /usr/local/lib/libpng.a(libpng12.so.0) could not be loaded.
        0509-022 Cannot load module .
make: 1254-004 The error code from the last command is 255.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

=============

michael@x054:[/home/michael/prj/php-5.2.4]make
        echo '\
\

Build complete.
Don't forget to run 'make test'.

michael@x054:[/home/michael/prj/php-5.2.4]make install
        echo '\
\
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
rm -f /usr/local/apache2/modules/libphp5.so
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/michael/prj/php-5.2.4/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: /usr/local/apache2/modules/libphp5.so: A file or directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.


Stop.
================

Suggestions Welcome

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux