building PHP 4.4.4 - mhash/mcrypt/xslt failing
Posted: Tue Jan 02, 2007 11:31 pm
Greetings one and all.
I downloaded Scott's .spec and source RPM files, and have been attempting to build them.
I'm attempting to build PHP 4.4.4, and I've been able to successfully build a very base installation, I've attempted to add mhash, mcrypt, and xslt support in by forcefully including them in the .spec file.
This is a RHEL4 box, building for RHEL4 so no fancy cross compiles or similar.
From the .spec:
%define with_mhash 1
%define with_xslt 1
%define with_mcrypt 1
Everything goes fine and dandy for a good long while, but suddenly
RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.mhash: No such file or directory
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.mcrypt: No such file or directory
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.xslt: No such file or directory
No problem, the "trouble" section is:
%if %{with_mhash}
%files mhash -f files.mhash
%endif
%if %{with_mcrypt}
%files mcrypt -f files.mcrypt
%endif
%if %{with_xslt}
%files xslt -f files.xslt
%endif
I have no idea where these files.[php extension] are built from. Taking a look it appears the other files.[php extension] are the configuration files that go in conf.d. I'm not experienced enough with RPM building (or compiling PHP) to know what, exactly, is creating these files, or failing to do so.
I downloaded Scott's .spec and source RPM files, and have been attempting to build them.
I'm attempting to build PHP 4.4.4, and I've been able to successfully build a very base installation, I've attempted to add mhash, mcrypt, and xslt support in by forcefully including them in the .spec file.
This is a RHEL4 box, building for RHEL4 so no fancy cross compiles or similar.
From the .spec:
%define with_mhash 1
%define with_xslt 1
%define with_mcrypt 1
Everything goes fine and dandy for a good long while, but suddenly
RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.mhash: No such file or directory
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.mcrypt: No such file or directory
Could not open %files file /usr/src/redhat/BUILD/php-4.4.4/files.xslt: No such file or directory
No problem, the "trouble" section is:
%if %{with_mhash}
%files mhash -f files.mhash
%endif
%if %{with_mcrypt}
%files mcrypt -f files.mcrypt
%endif
%if %{with_xslt}
%files xslt -f files.xslt
%endif
I have no idea where these files.[php extension] are built from. Taking a look it appears the other files.[php extension] are the configuration files that go in conf.d. I'm not experienced enough with RPM building (or compiling PHP) to know what, exactly, is creating these files, or failing to do so.