djcloudychamber
4th September 2007, 09:05
Hey everyone.. having a bit of a problem.
I am trying to install Suhosin to harden my php deployment. I am using php version 5.2.2 I've downloaded the proper patch for my php version: suhosin-patch-5.2.2-0.9.6.2.patch.gz
I've modified the php.spec file to include the suhosin patches.
When I run rpmbuild -ba php.spec to recompile PHP with the patch I get the following error:
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_match_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:529: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:533: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_replace_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:972: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:976: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_split_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1416: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1420: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_grep_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1681: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1685: error: 'pcre_extra' has no member named 'match_limit_recursion'
make: *** [ext/pcre/php_pcre.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.94472 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.94472 (%build)
ANY suggestions are greatly appreciated.
I am trying to install Suhosin to harden my php deployment. I am using php version 5.2.2 I've downloaded the proper patch for my php version: suhosin-patch-5.2.2-0.9.6.2.patch.gz
I've modified the php.spec file to include the suhosin patches.
When I run rpmbuild -ba php.spec to recompile PHP with the patch I get the following error:
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_match_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:529: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:533: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_replace_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:972: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:976: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_split_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1416: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1420: error: 'pcre_extra' has no member named 'match_limit_recursion'
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c: In function 'php_pcre_grep_impl':
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1681: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function)
/usr/src/redhat/BUILD/php-5.2.2/ext/pcre/php_pcre.c:1685: error: 'pcre_extra' has no member named 'match_limit_recursion'
make: *** [ext/pcre/php_pcre.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.94472 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.94472 (%build)
ANY suggestions are greatly appreciated.