For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2007 > PHP 4.4.7/php5.2.4 make install fails on AIX 5.3 TL06









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2007-10-19, 7:02 pm

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
Michael Felt

2007-10-21, 7:04 pm

Michael Felt wrote:
> 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
>


>
> Suggestions Welcome


The last statement from the make (build) ends with this (excerpt) of
libtool command:

/bin/sh /home/michael/prj/php-4.4.7/libtool --silent
--preserve-dup-deps --mode=link cc -export-dynamic -g
-L/usr/local/ssl/lib -L/usr/local/lib -L
/usr/local/mysql/lib -R /usr/local/ssl/lib -R /usr/local/lib -R
/usr/local/mysql/lib ext/openssl/openssl.lo
ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pc
relib/pcre_ucp_searchfuncs.lo ext/pcre/pcrelib/pcre_compile.lo
ext/pcre/pcrelib/pcre_config.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
.....
..lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo
Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo
Zend/zend_list.lo Zend/zend_indent.lo
Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo
Zend/zend_qsort.lo Zend/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
-lmysqlclient -lfreetype -lpng -lz -ljpeg -lz -lssl -lcrypto -lm -o
sapi/cli/php

With output (excerpt, you can get the idea....)
cc: 1501-218 file ext/openssl/openssl.lo contains an incorrect file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_chartables.lo contains an
incorrect file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo contains an
incorrect file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_compile.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_config.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_exec.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_fullinfo.lo contains an
incorrect file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_get.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_globals.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_info.lo contains an incorrect
file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_maketables.lo contains an
incorrect file suffix
cc: 1501-218 file ext/pcre/pcrelib/pcre_newline.lo contains an incorrect
file suffix
.....
cc: 1501-218 file Zend/zend_sprintf.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_ini.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_qsort.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_multibyte.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_strtod.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_execute.lo contains an incorrect file suffix
cc: 1501-218 file sapi/cli/php_cli.lo contains an incorrect file suffix
cc: 1501-218 file sapi/cli/getopt.lo contains an incorrect file suffix
cc: 1501-218 file main/internal_functions_cli.lo contains an incorrect
file suffix

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

==========
Still hoping for suggestions/corrections - even interest in what is
going wrong.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com