ID:               36852
 Updated by:       [EMAIL PROTECTED]
 Reported By:      scott at abcoa dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: AIX 5.2
 PHP Version:      5.1.2
 New Comment:

If it works with this configure line, there is no bug:

# rm config.cache ; ./configure --disable-all --with-apxs2

If that works, there is propably some static library that PHP is linked
with and then libtool thinks you want the whole thing as static. (this
is a libtool bug, not PHP bug)



Previous Comments:
------------------------------------------------------------------------

[2006-03-24 23:53:54] scott at abcoa dot com

Description:
------------
Apache version 2.2.0

I get a PHP compile failure with the make command.  Configure command
was 

--snip--
./configure --with-apxs2=../../apache2/bin/apxs --disable-all
--with-unixODBC --with-openssl --with-curl --with-curlwrappers
--enable-spl --enable-session --enable-track-vars --enable-ftp
--enable-sockets
--snip--

followed by the make command.  Narrowed down the problem to the apxs
script in PHP's makefile, when translated is this...

--snip--
/usr/local/apache2/bin/apxs -S LIBEXECDIR='/usr/local/apache2/modules'
-S
SYSCONFDIR='/usr/local/apache2/conf' -i -a 
-n php5 libphp5.la
--snip--

Which give this installation output as below...

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

Problem is there's no libphp5.so as the libphp5.la and libphp5.a are
the only two things that are found in that directory.  Seem that it use
the static file instead of the dso file.

Thought it was an Apache bug so filed a bug there, bug #39099 and a
couple of bugs report from the bugs.php.net search seem to confirm
that.  Then I was told that it's not an Apache bug but a PHP bug.  So,
I filed it here instead.

Expected result:
----------------
No apxs error message and to be able to compile successfully with the
dso file (php module).



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36852&edit=1

Reply via email to