#23416 [NEW]: configure not knowing apache version

From: Date: Tue, 29 Apr 2003 18:24:10 +0000
Subject: #23416 [NEW]: configure not knowing apache version
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38750@lists.php.net to get a copy of this message
From:             philip at cornado dot com
Operating system: Mandrake
PHP version:      4.3.2RC2
PHP Bug Type:     Apache2 related
Bug description:  configure not knowing apache version

Hello!  Compiling PHP with Apache2 support (with apache2handler) has one
issue, here's my configure line:

./configure --with-apxs2=/usr/sbin/apxs2 --enable-sockets --enable-ftp
--enable-cli --disable-cgi --enable-debug

Here are some of the results during configure:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 2.0 module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
expr: non-numeric argument
./configure: line 3885: test: : integer expression expected
./configure: line 3887: test: : integer expression expected
yes

[snip]
checking for chosen SAPI module... apache2handler

Here are lines 3883 - 3889 of configure (formatted to fit nicely in this
report):

  APACHE_VERSION=expr $4 \* 1000000 + $5 \* 1000 + $6

  if test "$APACHE_VERSION" -le 2000000; then
    { echo "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)" 1>&2; exit 1;$
  elif test "$APACHE_VERSION" -lt 2000044; then
    { echo "configure: error: Please note that Apache 
            version >= 2.0.44 is required." 1>&2; exit 1; }
  fi


$APACHE_VERSION has no value, I tested it by echoing it in configure. 
This APACHE_VERSION check only fails if a known  version is less than
2.0.44 so if it doesn't know the version at all (in my case) it will
always pass.  But I happen to have 2.0.45 so it's not a problem, for me.

I have no clue why it can't figure out the APACHE_VERSION nor do I know
this topic at all.  If feedback is required let me know :)  BTW, it
compiled fine, make install worked perfectly.
-- 
Edit bug report at http://bugs.php.net/?id=23416&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23416&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23416&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23416&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23416&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23416&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23416&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23416&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23416&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23416&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23416&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23416&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23416&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23416&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23416&r=gnused



Thread (4 messages)

« previous php.bugs (#38750) next »