From: mamfelt at acm dot org
Operating system: AIX 5.3 TL06
PHP version: 5.2.4
PHP Bug Type: *Compile Issues
Bug description: installation of /usr/local/apache2/modules/libphp5.so fails
Description:
------------
The last part of make install fails, no php5 libraries are installed into
/usr/lib/apache2/modules. Further, the file libs/libphp5.so is not built
either.
Note: regarding the following code: (in
/usr/local/apache2/build/instdso.sh)
if test "$SYS" = "AIX"
then
# on AIX, shared libraries remain in storage even when
# all processes using them have exited; standard practice
# prior to installing a shared library is to rm -f first
CMD="rm -f $TARGETDIR/$TARGET_NAME"
echo $CMD
$CMD || exit $?
fi
The command you should consider is:
slibclean (Shared Library Clean) to cleanup shared memory.
Reproduce code:
---------------
[EMAIL PROTECTED]:[/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.
Expected result:
----------------
The correct files installed in /usr/local/apache2/modules
Actual result:
--------------
[EMAIL PROTECTED]:[/home/michael/prj/php-5.2.4]ls -l libs
total 41152
-rw-r--r-- 1 root system 21062992 Oct 19 11:16 libphp5.a
-rw-r--r-- 1 root system 1209 Oct 19 11:16 libphp5.la
[EMAIL PROTECTED]:[/home/michael/prj/php-5.2.4]ls -l
/usr/local/apache2/modules
total 984
-rw-r--r-- 1 root system 8951 Oct 19 10:25 httpd.exp
-rwxr-xr-x 1 root system 90560 Oct 19 10:26 mod_cgi.so
-rwxr-xr-x 1 root system 64654 Oct 19 10:26 mod_headers.so
-rwxr-xr-x 1 root system 56795 Oct 19 10:26 mod_info.so
-rwxr-xr-x 1 root system 190456 Oct 19 10:27 mod_rewrite.so
-rwxr-xr-x 1 root system 40889 Oct 19 10:27 mod_speling.so
--
Edit bug report at http://bugs.php.net/?id=43032&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43032&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43032&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43032&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43032&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43032&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43032&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43032&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43032&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43032&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43032&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43032&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43032&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43032&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43032&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43032&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43032&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43032&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43032&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43032&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43032&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43032&r=mysqlcfg