ID:               40728
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sheezes at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *Compile Issues
 Operating System: AIX 5.3
 PHP Version:      5.2.1
 New Comment:

> 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


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

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

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

[2007-03-06 15:32:14] sheezes at gmail dot com

i already said my configure line on my 1st own.
quick remind: ./configure
--with-apxs=/usr/local/apache2/bin/apxs
read again my 1st post for more details


>`/usr/local/apache2/bin/apxs -q SBINDIR`/`/usr/local/apache2/bin/apxs
-q TARGET` -v 
Server version: Apache/2.0.59 
Server built:   Mar  5 2007 16:33:35 




this is the output i get on my screen from the configure script:

Generating files 
creating ./config.status 
creating php5.spec 
creating main/build-defs.h 
creating scripts/phpize 
creating scripts/man1/phpize.1 
creating scripts/php-config 
creating scripts/man1/php-config.1 
creating sapi/cli/php.1 
creating main/php_config.h 
main/php_config.h is unchanged 
creating main/internal_functions.c 
creating main/internal_functions_cli.c 

+--------------------------------------------------------------------+

| WARNING: Your /usr/local/apache2/bin/apxs script is most likely
broken. 
|                                                                    |

| Please go read http://www.php.net/faq.build#faq.build.apxs         |

| and make the changes described there and try again.                |

+--------------------------------------------------------------------+

| License:                                                           |

| This software is subject to the PHP License, available in this     |

| distribution in the file LICENSE.  By continuing this installation |

| process, you are bound by the terms of this license agreement.     |

| If you do not agree with the terms of this license, you must abort |

| the installation process at this point.                            |

+--------------------------------------------------------------------+


Thank you for using PHP. 




and i want to thank you for your help till now :)

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

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

Reply via email to