View Single Post
  #3  
Old 18th April 2009, 23:53
random.guy random.guy is offline
Junior Member
 
Join Date: May 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.89704
+ umask 022
+ cd /usr/src/redhat/BUILD
+ 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 #15 (php-5.2.0-includedir.patch):'
Patch #15 (php-5.2.0-includedir.patch):
+ patch -p1 -b --suffix .includedir -s
+ echo 'Patch #16 (php-5.1.6-bug38534.patch):'
Patch #16 (php-5.1.6-bug38534.patch):
+ patch -p1 -b --suffix .bug38534 -s
+ echo 'Patch #17 (php-5.1.6-umask.patch):'
Patch #17 (php-5.1.6-umask.patch):
+ patch -p1 -b --suffix .umask -s
+ echo 'Patch #18 (php-4.3.9-metaphone.patch):'
Patch #18 (php-4.3.9-metaphone.patch):
+ patch -p1 -b --suffix .metaphone -s
+ echo 'Patch #19 (php-5.1.6-zendecase.patch):'
Patch #19 (php-5.1.6-zendecase.patch):
+ patch -p1 -b --suffix .zendecase -s
+ echo 'Patch #20 (php-5.1.6-zendhash.patch):'
Patch #20 (php-5.1.6-zendhash.patch):
+ patch -p1 -b --suffix .zendhash -s
1 out of 2 hunks FAILED -- saving rejects to file Zend/zend_hash.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.89704 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.89704 (%prep)
Running CentOS 5.3, php src file is php-5.1.6-23.el5.src.rpm, downloaded suhosin-patch-5.1.6-0.9.6.patch.gz and followed these instructions which worked with 5.2. Any kind of help would be really appreciated! Thanks!
Reply With Quote