Well, why not use the php-5.2.9-2.fc11.src.rpm ?
wget
http://download.fedora.redhat.com/pu...2.fc11.src.rpm
And thus get advantage of the 14 patches.. ( bug fixing ? )
1)
Code:
# yum install bzip2-devel curl-devel db4-devel gmp-devel httpd-devel pam-devel pcre-devel libc-client-devel cyrus-sasl-devel openldap-devel postgresql-devel unixODBC-devel libxml2-devel libxslt-devel libxml2-devel libXpm-devel libjpeg-devel libpng-devel freetype-devel t1lib-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel aspell-devel recode-devel
May be you missed one of the above packages ?
2) .. adding a few empty files, asked for ...
# touch /usr/share/aclocal/ltoptions.m4
# touch /usr/share/aclocal/ltsugar.m4
# touch /usr/share/aclocal/ltversion.m4
# touch /usr/share/aclocal/lt~obsolete.m4
3) php.spec , line 10 was edited to : Release: 2el5%{?dist}
4) # rpmbuild -bb php.spec
.. which runs with no errors on CentOS 5.x and provides
the 28 packages : /usr/src/redhat/RPMS/<arch>/php-*
.. php-5.2.9-2el5.i386.rpm, php-gd-5.2.9-2el5.i386.rpm, etc. etc.
.....