From:             alexgrau at t-online dot de
Operating system: AIX
PHP version:      5.2.9
PHP Bug Type:     Compile Failure
Bug description:  Compilation breaks and make install fails

Description:
------------
I want to compile php 5.2.9 under AIX 5.3 TL 10 SP 1 (I tried it also 
under TL09, SP3) and enabled the cli option. The configure works fine 
and the building of libphp5.so is also ok but the compilation of the php 
binary for the cli seems to stop without any error message. The message 
"Build complete" is misleading since there is no php binary in any 
directory. Therefore both the make install-cli and the make install 
command fails. I tried the compilation with many changes with the 
configure options but fail in every way.
There are also errors with make install but I can copy the libphp5.so to 
/usr/local/apache2/modules manually.

Reproduce code:
---------------
export CC=cc
export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43
-D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -DFUNCPROTO=15 -O
-I/opt/freeware/include"
export CXX=xlC
export CXXFLAGS=$CFLAGS
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export
PATH=/usr/bin:/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/vacpp/bin:/usr/ccs/bin:/usr/dt/bin:/usr/opt/perl5/bin:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin:/opt/freeware/lib:/opt/freeware/include

The configure options (those who lead to the output above):

./configure --disable-all --enable-session --enable-cli --enable-shared
--with-zlib --with-ldap=/usr/local/openldap --with-pcre-regex  --with-pear
--enable-xml --enable-libxml --with-apxs2=/usr/local/apache2/bin/apxs
--enable-sockets --enable-zend-multibyte --enable-inline-optimization
--enable-hash  --with-mysql=/usr/local/mysql --with-mysql-sock=/var/tmp/
--with-openssl --with-IBM_DB2=/opt/IBM/db2/V9.5

make

Expected result:
----------------
lient -lldap -llber -lz -lssl -lcrypto -lm -lxml2 -liconv -lm -lxml2 -
liconv -lm  -o libphp5.la
        /bin/sh /source/php-5.2.9/libtool --silent --preserve-dup-deps 
--mode=compile cc  -Isapi/cli/ -I/source/php-5.2.9/sapi/cli/ -
DPHP_ATOM_INC -I/source/php-5.2.9/include -I/source/php-5.2.9/main -
I/source/php-5.2.9 -I/opt/freeware/include/libxml2 -I/source/php-
5.2.9/ext/date/lib -I/usr/local/openldap/include -
I/usr/local/mysql/include/mysql -I/source/php-5.2.9/TSRM -
I/source/php-5.2.9/Zend    -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -
D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -
DFUNCPROTO=15 -O -I/opt/freeware/include    -c /source/php-
5.2.9/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo 
        /bin/sh /source/php-5.2.9/libtool --silent --preserve-dup-deps 
--mode=compile cc  -Isapi/cli/ -I/source/php-5.2.9/sapi/cli/ -
DPHP_ATOM_INC -I/source/php-5.2.9/include -I/source/php-5.2.9/main -
I/source/php-5.2.9 -I/opt/freeware/include/libxml2 -I/source/php-
5.2.9/ext/date/lib -I/usr/local/openldap/include -
I/usr/local/mysql/include/mysql -I/source/php-5.2.9/TSRM -
I/source/php-5.2.9/Zend    -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -
D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -
DFUNCPROTO=15 -O -I/opt/freeware/include    -c /source/php-
5.2.9/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo 
        /bin/sh /source/php-5.2.9/libtool --silent --preserve-dup-deps 
--mode=compile cc  -Isapi/cli/ -I/source/php-5.2.9/sapi/cli/ -
DPHP_ATOM_INC -I/source/php-5.2.9/include -I/source/php-5.2.9/main -
I/source/php-5.2.9 -I/opt/freeware/include/libxml2 -I/source/php-
5.2.9/ext/date/lib -I/usr/local/openldap/include -
I/usr/local/mysql/include/mysql -I/source/php-5.2.9/TSRM -
I/source/php-5.2.9/Zend    -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -
D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_ALL_SOURCE -
DFUNCPROTO=15 -O -I/opt/freeware/include    -c /source/php-
5.2.9/sapi/cli/getopt.c -o sapi/cli/getopt.lo 
        /bin/sh /source/php-5.2.9/libtool --silent --preserve-dup-deps 
--mode=compile cc  -Imain/ -I/source/php-5.2.9/main/ -DPHP_ATOM_INC -
I/source/php-5.2.9/include -I/source/php-5.2.9/main -I/source/php-
5.2.9 -I/opt/freeware/include/libxml2 -I/source/php-5.2.9/ext/date/lib 
-I/usr/local/openldap/include -I/usr/local/mysql/include/mysql -
I/source/php-5.2.9/TSRM -I/source/php-5.2.9/Zend    -qmaxmem=16384 -
DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -
D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -bnoquiet   -c 
main/internal_functions_cli.c -o main/internal_functions_cli.lo 
        echo '\
\

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

---------------------------
(tsm01/root) /source/php-5.2.9 > make test
        echo '\
\

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

ERROR: Cannot run tests without CLI sapi.
(tsm01/root) /source/php-5.2.9 > 

----------------

(tsm01/root) /source/php-5.2.9 > make install-cli                        

        echo '\
\
Installing PHP CLI binary:        /usr/local/bin/
cp: sapi/cli/php: No such file or directory
make: 1254-004 The error code from the last command is 1.


Stop.
(tsm01/root) /source/php-5.2.9 > 

(tsm01/root) /source/php-5.2.9 > 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 
/source/php-5.2.9/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.
(tsm01/root) /source/php-5.2.9 > 


-- 
Edit bug report at http://bugs.php.net/?id=48370&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48370&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48370&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48370&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48370&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48370&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48370&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48370&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48370&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48370&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48370&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48370&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48370&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48370&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48370&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48370&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48370&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48370&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48370&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48370&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48370&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48370&r=mysqlcfg

Reply via email to