I am rebuilding php on RHL ES3. There have been a number issues I have been able to work through.
1) The rpm --rebuild command does not exist as the spec says it does, it is (and has been since about RH8 rpmbuild)
2) imap-devel and unixODBC-devel are no longer shipped with RHL ES, so I removed all portions of the spec file dealing with those packages
3) The "rpmbuild php.spec" is supposed to tell you all the rpms you need to compile the rpm -- it doesn't. I needed flex and bison at least, possibly more.
My current issue:
Installing PHP SAPI module
+ popd
/usr/src/redhat/BUILD/php-4.3.2
+ install -m 755 -d /var/tmp/php-root/etc/
+ install -m 644 php.ini-dist /var/tmp/php-root/etc/php.ini
+ install -m 755 -d /var/tmp/php-root/usr/lib/httpd/modules
+ install -m 755 build-apache/libs/libphp4.so /var/tmp/php-root/usr/lib/httpd/mo
install: cannot stat `build-apache/libs/libphp4.so': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.35989 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.35989 (%install)
I have looked on google and a few other places for errors regarding 'build-apache/libs/libphp4.so' and found nothing.
I am rpmbuild -bb php.spec in my /usr/src/redhat/SPECS dir.
If more info is needed, please let me know. I do have httpd and httpd-devel installed.
MIKE