Re: PHP 4.2.1 not working with Apache 2.0.39
| From: | Kangaroo | Date: | Thu, 20 Jun 2002 15:27:33 +0000 |
| Subject: | Re: PHP 4.2.1 not working with Apache 2.0.39 | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7407@lists.php.net to get a copy of this message | ||
On Wed, 19 Jun 2002 12:37:54 +0200, Roar Pettersen wrote:
> Hello !
>
>> I'm getting the following error:
>> >apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c"
>> >is
> not
>> compatible with this version of apache.
>
> I also get this error message on a Solaris 2.8 Sparc :
>
> httpd: module "sapi_apache2.c" is not compatible with this version of
> Apache.
> Please contact the vendor for the correct version.
>
> Trying to re-build php-4.2.1 I get this error message :
>
> /bin/sh /usr/share/src/php-4.2.1/libtool --silent --mode=compile gcc -I.
> -I/usr/share/src/php-4.2.1/sapi/apache2filter -I/usr/share/src/php-
> 4.2.1/main -I/usr/share/src/php-4.2.1 -I/usr/local/apache2/include
> -I/usr/sh are/src/php-4.2.1/Zend -I/usr/local/ssl/include
> -I/usr/share/src/gd-2.0.1 -I /usr/local/mysql/include/mysql
> -I/usr/local/include/ucd-snmp -I/usr/share/sr c/php-4.2.1/ext/xml/expat
> -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMAN TICS -D_REENTRANT
> -I/usr/share/src/php-4.2.1/TSRM -g -O2 -pthreads -DZTS -pr efer-pic -c
> php_functions.c
> php_functions.c:93: parse error
> make[3]: *** [php_functions.lo] Error 1 make[3]: Leaving directory
> `/usr/share/src/php-4.2.1/sapi/apache2filter' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory `/usr/share/src/php-4.2.1/sapi/apache2filter'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/share/src/php-4.2.1/sapi' make: ***
> [all-recursive] Error 1
>
>
> Regards
>
> Roar Pettersen
> Bergen - Norway
Hello,
I got the same problem. After reading
httpd-2.0.39/include/ap_mmn.h
I changed line 93 from:
#if !MODULE_MAGIC_AT_LEAST(20020506,0)
to:
#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)
Regards
Ger Visschers
Enschede - Netherlands