httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38108] - sed's parse error in build/instdso.sh
Date Thu, 02 Mar 2006 16:12:50 GMT
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=38108>.
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=38108





------- Additional Comments From sfletcher@abcoa.com  2006-03-02 17:12 -------
>LANG=C
>LC_ALL=C
>LANGUAGE=C
>export LANG LC_ALL LANGUAGE

The sed error you were referring to, I found out it only apply to AIX 4.3, not
AIX 5.2.

Trying your patch that eliminate the sed error and it seem to work pretty well
with no sed error but I get further compile error.  Here's what I got...

--snip--
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
/usr/local/src/php-5.1.2/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
--snip--

So, I check the /usr/local/apache2/module directory and found there is no
libphp5.so file.  So, with further studying and tracing to the instdso.sh script
I noticed that 

--snip--
rm -f /usr/local/apache2/modules/libphp5.so
--snip-- 

is removed first as to remove the older or obselote file.  Then the next part
get executed..

--snip--
/usr/local/apache2/build/libtool --mode=install cp libphp5.la
/usr/local/apache2/modules/
--snip--

which does in fact copy both files, libphp5.a and libphp5.la files, not the
libphp5.so file.  So, hte next few part of the script which use sed.  With some
tracing and execution of a shell script.  I get

--snip--
libphp5.so


libphp5.a libphp5.a


libphp5.a libphp5.a
--snip--

and no sed error.  So, we the patch is working as it fix this bug.  Then further
below in the script is a "rm -f ...." script that remove those libphp5.a files
so it explained why there's no libphp5.* files in that directory.  Which lead us
to the next part of the script that caused the 

--snip--
Warning!  dlname not found in /usr/local/apache2/modules/libphp5.la.
--snip--

to appear.  Then the next part of the script here

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

where the "if test" script produced a result..

--snip--
if test "libphp5.so" != "libphp5.so"
then 
    mv /usr/local/apache2/modules/libphp5.so /usr/local/apache2/modules/
fi
--snip--

So, this part of the script is correct and there's still no libphp5.so in that
directory at all.  The next part of the script just removed everything.  So, no
wonder why I get the apxs errors and chmod error.  The libphp5.so is never
copied over in the first place.

I'm looking forward to a further patch fix that would allow the libphp5.so to be
put into the /usr/local/apache2/module directory...  It is just a bad script.

So, go ahead and check in that patch fix as it fix this AIX sed problem....

-- 
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


Mime
View raw message