php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34509 APACHE_VERSION variable in configure is nonsense
Submitted: 2005-09-15 11:09 UTC Modified: 2005-09-24 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: peter dot buki at vodafone dot hu Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.1.0RC1 OS: SunOS 5.9 Generic_112233-01
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peter dot buki at vodafone dot hu
New email:
PHP Version: OS:

 

 [2005-09-15 11:09 UTC] 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 +



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-15 14:30 UTC] sniper@php.net
So what apache version do you have? What is the output of 
httpd -v ?
 [2005-09-15 14:33 UTC] 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 20:40 UTC] sniper@php.net
Please download this script:

  http://www.php.net/~jani/patches/apache.sh

Make it executable and run it and paste the output here.

 [2005-09-16 10:47 UTC] peter dot buki at vodafone dot hu
Hope it helps:
APXS=/usr/apache/bin/apxs
EDITOR=vi
HOME=/export/home/vodafone
HOSTNAME=mis
HOSTTYPE=sparc
HTTPD=/usr/apache/bin/httpd
IFS=- /.

LOGNAME=vodafone
MACHTYPE=sparc-sun-solaris2.9
MAILCHECK=600
OLDPWD=/export/home/vodafone
OPTIND=1
OSTYPE=solaris2.9
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ccs/bin
PS1=[\u@\h \W]\$ 
PWD=/export/home/vodafone/src
SHELL=/bin/bash
SHLVL=2
SSH_TTY=/dev/pts/4
STY=11381.pts-4.mis
TERM=xterm
TERMCAP=SC|xterm|VT 100/ANSI X3.64 virtual terminal:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
	:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
	:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
	:li#53:co#138:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
	:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
	:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
	:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
	:ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
	:se=\E[23m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
	:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:G0:\
	:as=\E(0:ae=\E(B:\
	:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
	:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\
	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
	:kb=^H:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:\
	:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:\
	:kl=\EOD:km:
TZ=Europe/Budapest
USER=vodafone
WINDOW=3
_=./apache.sh
ac_IFS= 	

ac_output=

expr: syntax error
 [2005-09-16 11:27 UTC] sniper@php.net
What does this output:

# /usr/apache/bin/httpd -v

 [2005-09-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 21:01:34 2025 UTC