Compiling installing php on linux

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
b0f
Forum Newbie
Posts: 1
Joined: Fri Aug 23, 2002 8:03 am

Compiling installing php on linux

Post 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
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post 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
Post Reply