ID: 25058
Comment by: php at hottub dot ca
Reported By: carlo dot mosca at eurostar dot co dot uk
Status: Open
Bug Type: Apache2 related
Operating System: AIX 5.2
PHP Version: 4.3.3RC4-dev
New Comment:
Just to confirm, I have the same issue on AIX 5.1. ML4
using the 'C for AIX v6' compiler with 4.3.3RC4.
Previous Comments:
------------------------------------------------------------------------
[2003-08-15 07:30:49] carlo dot mosca at eurostar dot co dot uk
I still get the same error off make install:
Installing PHP SAPI module: apache2handler
/elgar/local/apache2/build/instdso.sh
SH_LIBTOOL='/elgar/local/apache2/build/libtool' libphp4.la
/elgar/local/apache2/modules
rm -f /elgar/local/apache2/modules/libphp4.so
/elgar/local/apache2/build/libtool --mode=install cp libphp4.la
/elgar/local/apache2/modules/
cp .libs/libphp4.a /elgar/local/apache2/modules/libphp4.a
cp .libs/libphp4.lai /elgar/local/apache2/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/elgar/devel/user/carlo/local/php4-STABLE-200308121530/libs'
chmod 755 /elgar/local/apache2/modules/libphp4.so
chmod: /elgar/local/apache2/modules/libphp4.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.
2.360u 3.070s 0:12.30 44.1% 517+671k 0+0io 1251pf+0w
CRM php4-STABLE-200308121530 -> ls -l libs/
total 9872
-rw-r--r-- 1 carlo devel 5044390 Aug 15 13:28 libphp4.a
-rw-r--r-- 1 carlo devel 723 Aug 15 13:28 libphp4.la
CRM php4-STABLE-200308121530 -> ls -l .libs/
total 19624
-rw-r--r-- 1 carlo devel 5044390 Aug 15 13:28 libphp4.a
-rw-r--r-- 1 carlo devel 26411 Aug 15 13:28 libphp4.exp
lrwxrwxrwx 1 carlo devel 13 Aug 15 13:28 libphp4.la ->
../libphp4.la
-rw-r--r-- 1 carlo devel 723 Aug 15 13:28 libphp4.lai
-rwxr-xr-x 1 carlo devel 4961410 Aug 15 13:28 libphp4.so
------------------------------------------------------------------------
[2003-08-15 07:20:30] [EMAIL PROTECTED]
Now, if you do 'make install', does it copy the correct libphp4.so in
place?
------------------------------------------------------------------------
[2003-08-14 06:16:35] carlo dot mosca at eurostar dot co dot uk
Thanks, that seems to work:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
80.030u 26.400s 2:10.45 81.5% 2200+1516k 0+0io 1479pf+0w
CRM php4-STABLE-200308121530 -> ls -l libs
total 9872
-rw-r--r-- 1 carlo devel 5044390 Aug 14 12:13 libphp4.a
-rw-r--r-- 1 carlo devel 723 Aug 14 12:13 libphp4.la
CRM php4-STABLE-200308121530 -> ls -l .libs/
total 19624
-rw-r--r-- 1 carlo devel 5044390 Aug 14 12:13 libphp4.a
-rw-r--r-- 1 carlo devel 26411 Aug 14 12:13 libphp4.exp
lrwxrwxrwx 1 carlo devel 13 Aug 14 12:13 libphp4.la ->
../libphp4.la
-rw-r--r-- 1 carlo devel 723 Aug 14 12:13 libphp4.lai
-rwxr-xr-x 1 carlo devel 4961410 Aug 14 12:13 libphp4.so
CRM php4-STABLE-200308121530 -> cp .libs/libphp4.so
/elgar/local/apache2/modules/
CRM php4-STABLE-200308121530 -> /elgar/local/apache2/bin/apachectl -k
start
CRM php4-STABLE-200308121530 -> psme
UID PID PPID C STIME TTY TIME CMD
carlo 44404 52024 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
carlo 45672 52024 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
carlo 47718 52024 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
carlo 48826 51928 1 12:14:07 pts/4 0:00 ps -f -u carlo
carlo 50510 52024 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
carlo 50716 52024 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
carlo 51928 7218 0 11:48:23 pts/4 0:00 -tcsh
carlo 52024 1 0 12:14:00 - 0:00
/elgar/local/apache2/bin/httpd -k start
------------------------------------------------------------------------
[2003-08-13 13:48:31] [EMAIL PROTECTED]
Please try this:
# rm config.cache
# CC=gcc ./configure --prefix=/elgar/local
--with-apxs2=/elgar/local/apache2/bin/apxs --disable-all --disable-cli
# make clean && make
Then check what you have in .libs/ (and libs/)
Try then copying that libphp4.so to your apache2 modules/ dir. (notice
that the apache instdso.sh copies the libphp4.a, NOT the .so there)
------------------------------------------------------------------------
[2003-08-13 05:56:18] carlo dot mosca at eurostar dot co dot uk
CRM � -> ls -l
/elgar/devel/user/carlo/local/php4-STABLE-200308121530/.libs
total 27936
-rw-r--r-- 1 carlo devel 7184069 Aug 12 17:39 libphp4.a
-rw-r--r-- 1 carlo devel 37958 Aug 12 17:39 libphp4.exp
lrwxrwxrwx 1 carlo devel 13 Aug 12 17:39 libphp4.la ->
../libphp4.la
-rw-r--r-- 1 carlo devel 723 Aug 12 17:39 libphp4.lai
-rwxr-xr-x 1 carlo devel 7068807 Aug 12 17:39 libphp4.so
It's building the .so, just not copying it into libs (and consequently
not copying it to apache2/modules). I tried copying it manually but
apache refused to load the module (with no useful error).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25058
--
Edit this bug report at http://bugs.php.net/?id=25058&edit=1