Here's how to get it to work (thanks to somebody on Google Groups)...

1.   Open up the file php_functions.c in /sapi/apache2filter/
2.   Change MODULE_MAGIC_AT_LEAST to AP_MODULE_MAGIC_AT_LEAST (Note the
addition of "AP_")
3.   Save the php_functions.c file and try running configure again

Keep in mind this is experimental and thus should not be used on production
web sites (even though we've been using Apache 2.0.39+PHP 4.2.1/4.2.2 for a
few weeks without issues on two of our servers).

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer



----- Original Message -----
From: "Osman Omar" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 8:35 PM
Subject: [PHP] Compiling PHP on Linux


> Hi
>
> I try to compile php and got error message
> any idea?
>
>
> system:
>   Redhat 7.2
>   Apache 2.0.39 (for redhat 7.0 from apache website)
>   php 4.2.2
>
> error messages
> ---
> /bin/sh /usr/tmp/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> -I/usr/tmp/php-4.2.2/sapi/apache2filter -I/usr/tmp/php-4.2.2/main
> -I/usr/tmp/php-4.2.2 -I/usr/local/apache2-39/include
> -I/usr/tmp/php-4.2.2/Zend -I/usr/include/freetype2/freetype
> -I/usr/tmp/gd-2.0.1/ -I/usr/tmp/php-4.2.2/ext/mysql/libmysql
> -I/usr/tmp/php-4.2.2/ext/xml/expat  -D_REENTRANT
> -I/usr/tmp/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic
> -c php_functions.c
> php_functions.c:93:27: missing binary operator before '!'
> make[3]: *** [php_functions.lo] Error 1
> make[3]: Leaving directory `/var/tmp/php-4.2.2/sapi/apache2filter'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var/tmp/php-4.2.2/sapi/apache2filter'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/php-4.2.2/sapi'
> make: *** [all-recursive] Error 1
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to