php5-gmp build failure with gmp 5.0.1_0
OS: Mac OS X 10.5.8
XCode version: 3.1.2
---> Building php5-gmp
DEBUG: Executing org.macports.build (php5-gmp)
DEBUG: Building in gmp
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp" && /usr/bin/make -j1 all'
/bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/libtool --mode=compile /usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -O2 -arch i386 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c -o gmp.lo
/usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -O2 -arch i386 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c -fno-common -DPIC -o .libs/gmp.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c: In function 'zif_gmp_random':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c:1362: error: '__GMP_BITS_PER_MP_LIMB' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c:1362: error: (Each undeclared identifier is reported only once
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp/gmp.c:1362: error: for each function it appears in.)
make: *** [gmp.lo] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp" && /usr/bin/make -j1 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gmp/work/php-5.3.1/ext/gmp" && /usr/bin/make -j1 all " returned error 2
while executing
"$procedure $targetname"
Warning: the following items did not execute (for php5-gmp): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
I see that here too on 10.6.2. gmp 5.0.1 must've broken it; this worked fine with gmp 4. I'll have to file an upstream bug report.