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

and not getting very far. It bombs out with the following error every time: make[3]: *** [php_functions.lo] Error 1 make[3]: Leaving directory `/tmp/php-4.2.2/sapi/apache2filter' make[2]: *** [al...




Topic Options
#106 - 08/06/02 05:15 PM Trying to compile PHP 4.2.2 under Red Hat 7.2...
Admiral LSD Offline
old hand

Registered: 08/14/01
Posts: 991
and not getting very far. It bombs out with the following error every time:

Code:
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/tmp/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/php-4.2.2/sapi'
make: *** [all-recursive] Error 1


Any idea what I could be doing wrong?

Top
Advertisement
#108 - 08/06/02 06:51 PM Re: Trying to compile PHP 4.2.2 under Red Hat 7.2...
Admiral LSD Offline
old hand

Registered: 08/14/01
Posts: 991
*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

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
How to convert Mod video produced by hard-disk cam
by Iris730
Yesterday at 01:55 PM
LinkSys Router: Internet Access Issue
by Myke
01/05/10 10:48 PM
BSOD: IRQL_not_less_or_equ
al

by baharkhafan
01/04/10 07:35 PM
8 Bit Palleted Textures
by Pookie_Lestat
01/04/10 04:50 PM
Carmageddon 2 weird
by Kuikie
12/29/09 04:32 PM
Who's Online
1 Registered (baharkhafan), 132 Guests and 50 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91460 Members
24 Forums
59602 Topics
190148 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22