Topic: Building PHP 5.3.1-1 source RPM on Redhat 4
I have a RHEL4U8 machine with mysql 5.1.42 and httpd (apache) 2.2.14.
I need to rebuild php from source due to a version mismatch with apache.
It appears the spec file for the php-5.3.1-1.remi.src.rpm is for RedHat 5.
This syntax in the spec file causes an error...
%if %{?rhel}%{?fedora} > 4
%define with_enchant 1
%else
%define with_enchant 0
%endif
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
I got around it by commenting it out and explicitely setting with_enchant to 0.
It then came back with a missing dependency...
error: Failed build dependencies:
libtool-ltdl-devel is needed by php-5.3.1-1.i386
This is a RedHat 5 rpm that obsoleted the RedHat 4 libtool rpm.
Lastly; it fails in building with an "undeclared" error...
/usr/src/redhat/BUILD/php-5.3.1/ext/date/lib/parse_tz.c:702: error: `timezonedb_system' undeclared (first use in this function)
Any suggestions would be appreciated