Why don't you just grab the latest CVS (unstable) snapshot from
snaps.php.net?  The Apache API changed in 2.0.39/40 so PHP 4.2.x will not
build cleanly against it.  This is fixed in 4.3-dev

-Rasmus

On Mon, 26 Aug 2002, Gilberto J. Palau wrote:

> Well my problem is different but here it goes to see if any you guys can
> crack it.
>
> First I go to my source directory for apache and I do this:
>
> make clean
> make distclean
> ./configure --prefix=/usr/local/www --enable-module=so
> make
> make install
>
> Now apache 2.0 is installed right where I want it.  Now to PHP 4.2.2:
>
> make clean
> make distclean
> ./configure --with-mysql --with-apxs2=/usr/local/www/bin/apxs
> make
> (when the make finishes it has this last lines in an error)
>
> make[3]: *** [sapi_apache2.lo] Error 1
> make[3]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/php-4.2.2/sapi'
> make: *** [all-recursive] Error 1
>
> make install
> (I get another error when the make install is done)
>
> sapi_apache2.c: In function `php_register_hook':
> sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter'
> makes pointer from integer without a cast
> sapi_apache2.c:534: too few arguments to function
> `ap_register_output_filter'
> sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter'
> makes pointer from integer without a cast
> sapi_apache2.c:535: too few arguments to function `ap_register_input_filter'
> make[3]: *** [sapi_apache2.lo] Error 1
> make[3]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/php-4.2.2/sapi'
> make: *** [install-recursive] Error 1
>
>
> When this is done, I DON'T have php installed and it gives me bunch of
> errors.  I am stuck here and I don't know what to do.  I am running RedHat
> Linux 7.3 on a Dual P3 1Ghz/768Mb Ram PC.
>
> Any help on this, or suggestions... I know PHP 4.2.2 is sketchy on apache
> 2.0, but I would like to try my best to get it running as I know there are a
> few people here that have gotten it working.
> If youcan reply here or to my e-mail at [EMAIL PROTECTED]
>
> ____________
> "Alex Stinson" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > hey, i have a small problem, and i'm not exactly sure how to work around
> it
> > involving php4.2.2, and apache 2.0.40
> >
> > uname -a:
> > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD 4.6-RELEASE #0:
> > Tue Jun 11 06:14:12 GMT 2002
> > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
> >
> > The result of running make after configuring an almost clean source
> > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work
> > with apache2) with the following:
> > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
> > everything worked fine until i upgraded to apache 2.0.40 (actually, just
> > removed the entire /usr/www directory after a problem)...
> >
> > Making all in apache2filter
> > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main -I/usr/php-4.2.2
> > -I/usr/www/include -I/usr/php-4.2.2/Zend -I/usr/php-4.2.2/ext/mysql/libmys
> ql
> > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
> > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 -pthread -DZT
> S
> > -prefer-pic  -c sapi_apache2.c
> > sapi_apache2.c: In function `php_register_hook':
> > sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:534: too few arguments to function
> > `ap_register_output_filter'
> > sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:535: too few arguments to function
> `ap_register_input_filter'
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2.
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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

Reply via email to