Page 1 of 1

Compiling installing php on linux

Posted: Fri Aug 23, 2002 8:03 am
by b0f
I'm running mandrake 9 (b3) and apache 2, trying to install latest php.
I didnt know where to ask so i have posted here :D
I configure php that goes fine. Then i go to "make" it and i get this:

"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 `/home/ronan/tmp/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ronan/tmp/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ronan/tmp/php-4.2.2/sapi'
make: *** [all-recursive] Error 1
[root@server01 php-4.2.2]#"

Any idea what im doing wrong and/or how to fix it?

thx

Posted: Fri Aug 23, 2002 9:32 am
by Johnm
Do this: find . -name "sapi_apache2.c" from the command line to locate that file. Open that file anf look at the function or function call that is there. If it is a function call search for the function itself to see what it reqires and what it does. You have to satisfy the function before you will be able to compile it properly. Knowing C helps.

Good luck,

Direwolf