Trying to compile PHP 4.2.2 under Red Hat 7.2...

This is a discussion about Trying to compile PHP 4.2.2 under Red Hat 7.2... in the Linux Networking category; and not getting very far. It bombs out with the following error every time: Code:make: *** Error 1make: Leaving directory `/tmp/php-4. 2. 2/sapi/apache2filter'make: *** Error 1make: Leaving directory `/tmp/php-4.

Linux Networking 361 This topic was started by , . Last reply by ,


data/avatar/default/avatar32.webp

989 Posts
Location -
Joined 2001-08-14
and not getting very far. It bombs out with the following error every time:
 

Code:
make[3]: *** [php_functions.lo] Error 1make[3]: Leaving directory `/tmp/php-4.2.2/sapi/apache2filter'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/tmp/php-4.2.2/sapi/apache2filter'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/tmp/php-4.2.2/sapi'make: *** [all-recursive] Error 1
 
Any idea what I could be doing wrong?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Aug 6
Created
Aug 6
Last Response
0
Likes
1 minute
Read Time
User
Users

Responses to this topic


data/avatar/default/avatar32.webp

989 Posts
Location -
Joined 2001-08-14
OP
*slaps self*
 
had LSD been paying attention he would have noticed the fix was just a few rolls of the scroll wheel away...
 

Quote:Edit the file sapi/apache2filter/php_functions.c and jump down to line 93.You'll see a bit that looks like this:
 
#if !MODULE_MAGIC_AT_LEAST(20020506,0)
ADD_STRING(boundary);
#endif
 
Change the "MODULE_MAGIC_AT_LEAST" bit to read
"AP_MODULE_MAGIC_AT_LEAST". The former is deprecated and
expands to "this macro shouldn't be used" or something like
that.
 
It's possible that there are other places where this needs to change, too.
 
After having done that and watching as it compiled without incident I then proceeded to perform a make install whereby it told me something about an "error recursive." Fixing that was simple too: you have to run the make install with the -i (ignore) parameter. Now that it seems to be installed properly, time to set about testing it