#34509 [Opn->Fbk]: APACHE_VERSION variable in configure is nonsense
| From: | sniper@php.net | Date: | Thu, 15 Sep 2005 18:40:37 +0000 |
| Subject: | #34509 [Opn->Fbk]: APACHE_VERSION variable in configure is nonsense | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85120@lists.php.net to get a copy of this message | ||
ID: 34509
Updated by: sniper@php.net
Reported By: peter dot buki at vodafone dot hu
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: SunOS 5.9 Generic_112233-01
PHP Version: 5.1.0RC1
New Comment:
Please download this script:
http://www.php.net/~jani/patches/apache.sh
Make it executable and run it and paste the output here.
Previous Comments:
------------------------------------------------------------------------
[2005-09-15 14:33:43] peter dot buki at vodafone dot hu
Sorry for leaving out the possibility to filter out the most simple
cause. Apache/2.0.54 compiled on Aug 22 2005 16:34:58.
[root@mis php-5.1.0RC1]# /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.54
Server built: Aug 22 2005 16:34:58
------------------------------------------------------------------------
[2005-09-15 14:30:47] sniper@php.net
So what apache version do you have? What is the output of
httpd -v ?
------------------------------------------------------------------------
[2005-09-15 11:09:14] peter dot buki at vodafone dot hu
Description:
------------
Variable APACHE_VERSION is calculated in a wrong way, because configure
halts, event if the apache has the required and set with --with-apxs2
version
configure returns with syntax error:
expr: syntax error
configure: error: You have enabled Apache 2 support while your server
is Apache 1.3. Please use the appropiate switch --with-apxs (without
the 2)
Please see possibly related bugs:
Bug #20457: APACHE_VERSION variable in configure is nonsense
Bug #23416: configure not knowing apache version
Reproduce code:
---------------
./config.nice:
CC='gcc -m64 -mcpu=v9' \
'./configure' \
'--with-apxs2=/usr/apache/bin/apxs' \
'--libexecdir=/usr/apache/libexec' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-mbstring=all' \
'--enable-sigchild' \
'--enable-sockets' \
'--enable-mbstring' \
'--with-postgresql=/usr/local/pgsql/' \
'--disable-shared' \
'--with-libxml-dir=/usr/local' \
"$@"
Expected result:
----------------
Configure going on with no errors.
Actual result:
--------------
configure returns with syntax error:
expr: syntax error
configure: error: You have enabled Apache 2 support while your server
is Apache 1.3. Please use the appropiate switch --with-apxs (without
the 2)
Added this line to configure (line 4226, 5534, 6366):
echo APACHE_VERSION \($APACHE_VERSION\) is calculated: $4 \* 1000000
+ $5 \* 1000 + $6
which prints this:
APACHE_VERSION () is calculated: * 1000000 + * 1000 +
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34509&edit=1