![]() |
Error To Harden PHP5 With Suhosin On CentOS 5.0
I am getting this error when i try To Harden PHP5 With Suhosin On CentOS 5.0
rpmbuild -ba php.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.41518 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + cd /usr/src/redhat/BUILD + rm -rf php-5.1.6 + /bin/gzip -dc /usr/src/redhat/SOURCES/php-5.1.6.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd php-5.1.6 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (php-5.1.6-suhosin.patch):' Patch #0 (php-5.1.6-suhosin.patch): + patch -p1 -b --suffix .suhosin -s + echo 'Patch #1 (php-5.1.4-gnusrc.patch):' Patch #1 (php-5.1.4-gnusrc.patch): + patch -p1 -b --suffix .gnusrc -s + echo 'Patch #2 (php-5.1.4-warnings.patch):' Patch #2 (php-5.1.4-warnings.patch): + patch -p1 -b --suffix .warnings -s + echo 'Patch #5 (php-4.3.3-install.patch):' Patch #5 (php-4.3.3-install.patch): + patch -p1 -b --suffix .install -s + echo 'Patch #6 (php-5.0.4-norpath.patch):' Patch #6 (php-5.0.4-norpath.patch): + patch -p1 -b --suffix .norpath -s + echo 'Patch #7 (php-4.3.2-libtool15.patch):' Patch #7 (php-4.3.2-libtool15.patch): + patch -p1 -b --suffix .libtool15 -s + echo 'Patch #13 (php-5.0.2-phpize64.patch):' Patch #13 (php-5.0.2-phpize64.patch): + patch -p1 -b --suffix .phpize64 -s + echo 'Patch #14 (php-5.1.6-ecalloc.patch):' Patch #14 (php-5.1.6-ecalloc.patch): + patch -p1 -b --suffix .ecalloc -s 1 out of 2 hunks FAILED -- saving rejects to file Zend/zend_alloc.c.rej error: Bad exit status from /var/tmp/rpm-tmp.41518 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.41518 (%prep) |
Did you download the correct Suhosin patch for your PHP version?
|
I have this exact same problem with CentOS 5.3 now, and can't figure this out. Everything worked fine with CentOS 5.2, so something critical must have changed. This is the error I get:
Code:
[root@localhost SPECS]# rpmbuild -ba php.spec |
So no one is running the CentOS 5.3 PHP rpm's with the Suhosin patch?
|
I haven't treid this yet, but normally instructions for CentOS 5.x work for 5.0, 5.1, 5.2, 5.3, etc., so I'm not sure what went wrong here.
|
Hi,
I just had the same problem. My solution was to move the suhosin patch to the end of the patch process. It seems that there are a few patches that mess around with Zend/zend_hash.c It now looks like this: Code:
Patch1: php-5.1.4-gnusrc.patchCode:
Wrote: /usr/src/redhat/SRPMS/php-5.1.6-23.2.src.rpmCode:
This server is protected with the Suhosin Extension 0.9.27 |
| All times are GMT +2. The time now is 21:18. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.