ID: 40728
User updated by: sheezes at gmail dot com
Reported By: sheezes at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: *Compile Issues
Operating System: AIX 5.3
PHP Version: 5.2.1
New Comment:
Finally I can say.....WORKING :D
I forgot that on the last compile I changed something on the apxs
script. Well, I changed it back and run the configure and make commands
and now the libphp5.so is working and not crashing my apache server!
If someone has the same problems as I have, add to the APACHE_VERSION
expression 2000000 (on the php configure script) and then the script
won't crash saying the apache version is 1.3 and should use normal apxs
instead of the apxs2.
I think the PHP team should look into that bug, as you said, it should
discover my version alone without those changes
and thanks for your help Tony! :)
Previous Comments:
------------------------------------------------------------------------
[2007-03-07 12:02:10] tony2001@php.net
> I added 2000000 to the expresion
This shouldn't be required.
What kind of shell are you using? I mean /bin/sh.
>When I try to start apache it quits and dump a core file.
A GDB backtrace would tell why.
http://bugs.php.net/bugs-generating-backtrace.php
------------------------------------------------------------------------
[2007-03-07 11:56:00] sheezes at gmail dot com
the APACHE_VERSION var value is 61 (added an echo and an exit command
on the configure script). I added 2000000 to the expresion and now I
managed to run configure with the apxs2 option that I couldn't before!
Well, it runs fine and even compiling the libphp5.so file! It's a great
progress but I'm not sure the compilation is 100% working :/ When I try
to start apache it quits and dump a core file. When I remove the PHP
AddModule statement from the httpd.conf, apache is fine again :/
------------------------------------------------------------------------
[2007-03-07 08:26:23] tony2001@php.net
The other possible cause might be broken shell used in configure,
though I haven't ever heard of such problems.
PHP uses this macro to extract Apache version:
ac_output=/path/to/httpd -v 2>&1 | grep version
ac_IFS=$IFS
IFS="- /.
"
set $ac_output
IFS=$ac_IFS
APACHE_VERSION=expr $4 \* 1000000 + $5 \* 1000 + $6
Make sure it works for you.
------------------------------------------------------------------------
[2007-03-07 08:15:44] sheezes at gmail dot com
yea, i saw that bug report. I reported it actually
but this case is a bit diffrent. I decided to leave the other machine
running aix 5.2 and IBMIHS (IBM's httpd) because the problem I
reported.
Anyway, this machine is running AIX 5.3 and original apache 2.0.59 (not
that IBM httpd modification) and this time I'm not getting exactly the
same errors I got in the other machine (LIBPATH etc).
You saw the config.log? you saw anything unusual in it?
------------------------------------------------------------------------
[2007-03-06 15:42:39] tony2001@php.net
>--with-apxs=/usr/local/apache2/bin/apxs
That's clearly incorrect.
Use --with-apxs2=/usr/local/apache2/bin/apxs instead.
>read again my 1st post for more details
I did, that's why I asked you to copy/paste error messages instead of
retelling.
>Server version: Apache/2.0.59 >Server built: Mar 5 2007 16:33:35
Are you sure you're running ./configure in the same environment and
under the same account?
As I've said your problem looks exactly like bug #40638.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40728--
Edit this bug report at http://bugs.php.net/?id=40728&edit=1