From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050130 Fedora/1.7.5-3 Description of problem: If an attempt is made to rebuild PHP against httpd v2.1, the following problems are encountered, rendering the build impossible: - GMP detection is broken. With v4.1.2 or v4.1.3 installed, the compile still breaks like so: checking for GNU MP support... yes checking for __gmp_randinit_lc_2exp_size in -lgmp... no checking for gmp_randinit_lc_2exp_size in -lgmp... no configure: error: GNU MP Library version 4.1.2 or greater required. error: Bad exit status from /var/tmp/rpm-tmp.45309 (%build) - Upgrading GMP to v4.1.4 is impossible on RHEL3, as the tests break. - Trying PHP v5.0.3 runs into the same GMP problem saying that 4.1.2 is required, when v4.1.2 is installed. Version-Release number of selected component (if applicable): php-4.3.8 How reproducible: Always Steps to Reproduce: xxx Additional info:
Further build errors in PHP v5.0.3: pcre is broken: /bin/sh /usr/src/redhat/BUILD/php-5.0.3/build-cgi/libtool --silent --preserve-dup-deps --mode=compile gcc -DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -Iext/pcre/ -I/usr/src/redhat/BUILD/php-5.0.3/ext/pcre/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.0.3/build-cgi/include -I/usr/src/redhat/BUILD/php-5.0.3/build-cgi/main -I/usr/src/redhat/BUILD/php-5.0.3 -I/usr/src/redhat/BUILD/php-5.0.3/build-cgi/Zend -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/usr/include/imap -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/ncurses -I/usr/include/pcre -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.0.3/main -I/usr/src/redhat/BUILD/php-5.0.3/Zend -I/usr/src/redhat/BUILD/php-5.0.3/TSRM -I/usr/src/redhat/BUILD/php-5.0.3/build-cgi/ -I/usr/src/redhat/BUILD/php-5.0.3/build-cgi/TSRM -O2 -g -pipe -march=i386 -mcpu=i686 -Wall -fno-strict-aliasing -prefer-non-pic -c /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.o /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c: In function `php_pcre_match': /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c:456: `PCRE_INFO_NAMECOUNT' undeclared (first use in this function) /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c:456: (Each undeclared identifier is reported only once /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c:456: for each function it appears in.) /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c:464: `PCRE_INFO_NAMETABLE' undeclared (first use in this function) /usr/src/redhat/BUILD/php-5.0.3/ext/pcre/php_pcre.c:465: `PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) make: *** [ext/pcre/php_pcre.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.4023 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4023 (%build)
Turns out php v5.0.3 does not support PCRE v3.9 as shipped with RHEL3. The dependancies on the php package need to be updated to depend at least on PCRE v5.0.
Reclassifying as "Raw Hide php missing PHP BuildRequire".
php-5.0.3-2 now requires pcre-devel >= 4.5 - thanks for the report.