You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/08/02 09:01:35 UTC
DO NOT REPLY [Bug 43012] New: - AIX instdso.sh libphp5.so
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
Summary: AIX instdso.sh libphp5.so
Product: Apache httpd-2
Version: 2.2.4
Platform: Other
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: bugs@httpd.apache.org
ReportedBy: jeremy.jacque@maximo.fr
Hi, i'm reporting here cause when trying a "gmake install" in PHP source tree i
get this:
Installing PHP SAPI module: apache2handler
/patch/php/apache/build/instdso.sh SH_LIBTOOL='/patch/php/apache/build/libtool'
libphp5.la /patch/php/apache/modules
rm -f /patch/php/apache/modules/libphp5.so
/patch/php/apache/build/libtool --mode=install cp libphp5.la
/patch/php/apache/modules/
cp .libs/libphp5.a /patch/php/apache/modules/libphp5.a
cp .libs/libphp5.lai /patch/php/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/patch/php/php-5.2.3/libs'
chmod 755 /patch/php/apache/modules/libphp5.so
chmod: /patch/php/apache/modules/libphp5.so: A file or directory in the path
name does not exist.
apxs:Error: Command failed with rc=65536
.
gmake: *** [install-sapi] Error 1
And after commenting those lines in apache/build/instdso.sh, all work fine :
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
If you need some number versions of the tools i use, please let me know.
Thanks
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
jim@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From jim@apache.org 2007-08-03 08:14 -------
Not an Apache bug
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
------- Additional Comments From mamfelt@acm.org 2007-10-26 04:32 -------
The real command being called by the PHP Makefile is:
INSTALL_IT = $(mkinstalldirs) '$(INSTALL_ROOT)/usr/local/apache2/modules' && $(m
kinstalldirs) '$(INSTALL_ROOT)/usr/local/apache2/conf' && /usr/local/apache2/bin
/apxs -S LIBEXECDIR='$(INSTALL_ROOT)/usr/local/apache2/modules' -S SYSCONFDIR='$
(INSTALL_ROOT)/usr/local/apache2/conf' -i -a -n php5 libphp5.la
## concluding lines of install-sapi:
@echo "Installing PHP SAPI module: $(PHP_SAPI)"
@$(INSTALL_IT)
apxs is calling instdso.sh
For debug information I added:
CMD="$SH_LIBTOOL --mode=install cp $DSOARCHIVE $TARGETDIR/"
echo Starting: $CMD
ksh -x $CMD || exit $?
echo Finished: $CMD
The make install-sapi output now ends with:
+ print -r libtool: install: warning: remember to run `libtool --finish
/home/michael/prj/php-5.2.4/libs'
+ 1>& 2
libtool: install: warning: remember to run `libtool --finish
/home/michael/prj/php-5.2.4/libs'
+ test -n
+ exit 0
Finished: /usr/local/apache2/build/libtool --mode=install cp libphp5.la
/usr/local/apache2/modules/
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
mamfelt@acm.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
nick@webthing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From nick@webthing.com 2007-08-03 09:00 -------
Jim, the reference to PHP is a red herring. He's pointing to /instdso.sh, which
*is* an apache matter.
Needs someone who knows AIX to look.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 43012] AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
--- Comment #6 from Chris Dukes <cd...@us.ibm.com> 2008-02-27 09:50:55 ---
Created an attachment (id=21596)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21596)
Patch to instdso.sh to handle extracting .so files from libtool libraries on
AIX and other platforms where libtool installs a .a
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
------- Additional Comments From mamfelt@acm.org 2007-10-25 05:44 -------
Glad you noticed the red herring (php) as I was complaining about being called
bogus on this!
The starting situation on my system is:
michael@x054:[/home/michael/prj/php-5.2.4]ls -l *la
-rw-r--r-- 1 root system 1208 Oct 25 13:49 libphp5.la
------------------------------------------------------------------------
michael@x054:[/home/michael/prj/php-5.2.4]cat libphp5.la
# libphp5.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libphp5.so'
# Names of this library.
library_names='libphp5.a libphp5.a'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=' -lz -lssl -lcrypto -lz -lssl -lcrypto -lm -liconv -lm -liconv
-lm -liconv -lm -liconv -lm -liconv -lm -liconv -lm -L/usr/local/lib
-L/usr/local/ssl/lib -L/usr/local/mysql/lib -lrt -lmysqlclient
/usr/local/lib/libfreetype.la -lz /usr/local/lib/libpng.la -lz -lm -lz -ljpeg
-lssl -lcrypto -lz -lssl -lcrypto -lm -liconv -lm -liconv -lm -liconv -lm
-liconv -lm -liconv -lm /usr/local/lib/libxml2.la -lpthread -liconv -lm -liconv -lm'
# Version information for libphp5.
current=0
age=0
revision=0
# Is this an already installed library?
installed=no
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/home/michael/prj/php-5.2.4/libs'
--------------------
michael@x054:[/home/michael/prj/php-5.2.4]ls -l .libs libs
.libs:
total 81744
-rw-r--r-- 1 root system 21062992 Oct 25 13:49 libphp5.a
-rw-r--r-- 1 root system 105041 Oct 25 13:49 libphp5.exp
lrwxrwxrwx 1 root system 13 Oct 25 13:49 libphp5.la -> ../libphp5.la
-rw-r--r-- 1 root system 1209 Oct 25 13:49 libphp5.lai
-rwxr-xr-x 1 root system 20671264 Oct 25 13:49 libphp5.so
libs:
total 41152
-rw-r--r-- 1 root system 21062992 Oct 25 13:49 libphp5.a
-rw-r--r-- 1 root system 1209 Oct 25 13:49 libphp5.la
regards,
Michael
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 43012] AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
--- Comment #7 from Chris Dukes <cd...@us.ibm.com> 2008-02-27 09:52:53 ---
(In reply to comment #6)
The long term solution is to approach the libtool developers on providing an
option for libtool to provide the .so instead of the .a on platforms such as
AIX.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
mamfelt@acm.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.2.4 |2.2.6
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43012] - AIX instdso.sh libphp5.so
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43012
------- Additional Comments From mamfelt@acm.org 2007-10-26 04:45 -------
Thus, looking in apxs I find this piece of code I dont really want to mess with:
# use .so unambigiously for installed shared library modules
$t =~ s|\.[^./\\]+$|\.so|;
if ($opt_i) {
push(@cmds, "$installbuilddir/instdso.sh SH_LIBTOOL='" .
"$libtool' $f $CFG_LIBEXECDIR");
push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t");
}
What I see isthat $t is being set to a .so file always, and on AIX, it isn't
there, and chmod fails.
Hope this helps get this resolved!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org