#40728 [Opn->Fbk]: configure won't identify apache version

From: Date: Wed, 07 Mar 2007 08:26:23 +0000
Subject: #40728 [Opn->Fbk]: configure won't identify apache version
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110033@lists.php.net to get a copy of this message
ID: 40728 Updated by: tony2001@php.net 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: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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 :) ------------------------------------------------------------------------ [2007-03-06 15:20:55] tony2001@php.net What exactly was you configure line and what exactly did you get? (copy/paste please). What is the output of the command below? /usr/local/apache2/bin/apxs -q SBINDIR/`/usr/local/apache2/bin/apxs -q TARGET` -v ------------------------------------------------------------------------ [2007-03-06 15:09:00] sheezes at gmail dot com http://rapidshare.com/files/19699014/config.rar.html Sorry about rapidshare, I don't have any other place to put it My server is in a private network without access to the internet ------------------------------------------------------------------------ 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

« previous php.bugs (#110033) next »