ID:               34509
 Updated by:       [EMAIL PROTECTED]
 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:

So what apache version do you have? What is the output of 
httpd -v ?


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

[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

Reply via email to