httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 43012] AIX instdso.sh libphp5.so
Date Sat, 29 Sep 2012 15:21:56 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43012

--- Comment #11 from Michael Felt <mamfelt@gmail.com> ---
Still having the same issues - libraries are being deleted ALWAYS
I added 
set -x to instdso.sh to follow what is happening

Aded some debug info as follows:
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

CMD="$SH_LIBTOOL --mode=install cp $DSOARCHIVE $TARGETDIR/"
echo $CMD
$CMD || exit $?
echo "DEBUG INFO Added" ===========
ls -l  $DSOARCHIVE $TARGETDIR/
echo ==============

if test "$SYS" = "OS/2"
then
    # on OS/2, aplibtool --install doesn't copy the .la files & we can't
    # rename DLLs to have a .so extension or they won't load so none of the
    # steps below make sense.

So now it is easy to verify what 
CMD="$SH_LIBTOOL --mode=install cp $DSOARCHIVE $TARGETDIR/"
echo $CMD
$CMD || exit $?
actually does.

Farther down seems to be the logic error:

if test "$DLNAME" != "$TARGET_NAME"
then
    mv $TARGETDIR/$DLNAME $TARGETDIR/$TARGET_NAME
fi

rm -f $TARGETDIR/$DSOARCHIVE_BASENAME
rm -f $TARGETDIR/$DSOBASE.a
rm -f $TARGETDIR/lib$DSOBASE.a
rm -f $TARGETDIR/lib$TARGET_NAME

from the output below it seems $DLNAME and $TARGET_NAME are the same, so the
move never occurs - and the file is not there to be chmoded

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

root@x104:[/data/prj/php/php-5.3.17]make
INSTALL_ROOT=/var/tmp/root/php-5.3.17.0 install
Installing PHP SAPI module:       apache2handler
/var/httpd/build/instdso.sh SH_LIBTOOL='/var/apr/build-1/libtool' libphp5.la
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec
+ test 3 != 3
+ + echo SH_LIBTOOL=/var/apr/build-1/libtool
+ sed -e s/^SH_LIBTOOL=//
SH_LIBTOOL=/var/apr/build-1/libtool
+ DSOARCHIVE=libphp5.la
+ + basename libphp5.la
DSOARCHIVE_BASENAME=libphp5.la
+ TARGETDIR=/var/tmp/root/php-5.3.17.0/opt/httpd/libexec
+ + sed -e s/\.la$//
+ echo libphp5.la
DSOBASE=libphp5
+ TARGET_NAME=libphp5.so
+ + uname -s
SYS=AIX
+ test AIX = AIX
+ CMD=rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so
+ echo rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so
rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so
+ CMD=/var/apr/build-1/libtool --mode=install cp libphp5.la
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/
+ echo /var/apr/build-1/libtool --mode=install cp libphp5.la
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/
/var/apr/build-1/libtool --mode=install cp libphp5.la
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/
+ /var/apr/build-1/libtool --mode=install cp libphp5.la
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/
libtool: install: cp .libs/libphp5.a
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.a
libtool: install: cp .libs/libphp5.lai
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/data/prj/php/php-5.3.17/libs'
+ echo DEBUG INFO Added ===========
DEBUG INFO Added ===========
+ ls -l libphp5.la /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/
-rw-r--r-- 1 root system 1199 Sep 28 19:16 libphp5.la

/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/:
total 28444
-rw-r--r-- 1 root system 29114841 Sep 29 17:04 libphp5.a
-rw-r--r-- 1 root system     1200 Sep 29 17:04 libphp5.la
+ echo ==============
==============
+ test AIX = OS/2
+ + sed -n /^dlname=/{s/.*='\([^']*\)'/\1/;p;}
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.la
DLNAME=libphp5.so
+ + sed -n /^library_names/{s/library_names='\([^']*\)'/\1/;p;}
/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.la
LIBRARY_NAMES=libphp5.a libphp5.a
+ + echo libphp5.a libphp5.a
+ sed -e s/ *libphp5.so//g
LIBRARY_NAMES=libphp5.a libphp5.a
+ test -z libphp5.so
+ test -n libphp5.a libphp5.a
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.a
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.a
+ test libphp5.so != libphp5.so ## FAILED TEST I am guessing 
# if test "$DLNAME" != "$TARGET_NAME"
# then
#    mv $TARGETDIR/$DLNAME $TARGETDIR/$TARGET_NAME
#fi
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.la
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.a
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/liblibphp5.a
+ rm -f /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/liblibphp5.so
+ exit 0
chmod 755 /var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so
chmod: cannot access `/var/tmp/root/php-5.3.17.0/opt/httpd/libexec/libphp5.so':
A file or directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
root@x104:[/data/prj/php/php-5.3.17]

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message