ID:               16791
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
-Bug Type:         Compile Failure
+Bug Type:         Apache related
 Operating System: SuSE 7.0
 PHP Version:      4.2.0
 New Comment:

Fixed in CVS. Fix will be in PHP 4.2.1.

--Jani



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

[2002-04-25 03:03:01] [EMAIL PROTECTED]

config.log says:
configure:4916: checking for Apache 1.x module support via DSO through
APXS
configure:5006: error: Use --with-apxs2 with Apache 2.x!

and 
/usr/local/httpd/bin/httpd -v
says:
Server version: Apache/1.3.23 (Unix)
Server built:   Feb 10 2002 22:49:42

(BTW this date is before the timestamp of the file ap_mpm.h)

Also even though I cannot recall installing apache 2.X on this system
(I may have done so in a previous life..) this does not appear to be a
safe way of checking the version of apache...

------------------------------------------------------------------------

[2002-04-24 20:55:58] [EMAIL PROTECTED]

Also, check what config.log has got about this check.

--Jani



------------------------------------------------------------------------

[2002-04-24 20:55:07] [EMAIL PROTECTED]

Are you sure? :)

What does

# /usr/local/httpd/bin/httpd -v

output? And I just checked, there is no such file in 1.3.23 release.
ap_mpm.h is ONLY found in apache2.

--Jani



------------------------------------------------------------------------

[2002-04-24 08:23:37] [EMAIL PROTECTED]

I was trying to compile php 4.2.0 with apache 1.3.23 on a SuSE 7.0
system using the following configure command:

./configure --with-apxs=/usr/local/httpd/bin/apxs --with-gettext
--with-xml --with-mysql --with-imap --with-gd --with-zlib

It then gives the error:
error: Use --with-apxs2 with Apache 2.x!
even though apache is version 1.3.23

After looking into the code of configure and commenting out these
lines:
# Test that we're trying to configure with apache 1.x
if test -f "$APXS_INCLUDEDIR/ap_mpm.h"; then
{ { echo "$as_me:5006: error: Use --with-apxs2 with Apache 2.x!" >&5
echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
{ (exit 1); exit 1; }; }
fi

"configure", "make" and "make install" ran well without a problem. PHP
is now running fine. Is there a mistake in the check the configure
script is doing? The file it is checking for is there although I have
never had apache 2.X on the system.

A bug?

Erik Slooff

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16791&edit=1

Reply via email to