#50990 [Com]: gmp extension doesn't compile with gmp 5.0.1
| From: | juri dot saltbacka at gmail dot com | Date: | Wed, 10 Feb 2010 10:23:47 +0000 |
| Subject: | #50990 [Com]: gmp extension doesn't compile with gmp 5.0.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147385@lists.php.net to get a copy of this message | ||
ID: 50990
Comment by: juri dot saltbacka at gmail dot com
Reported By: php-bugs-2010 at ryandesign dot com
Status: Open
Bug Type: Compile Failure
Operating System: Mac OS X 10.6.2
PHP Version: 5.3.2RC1
New Comment:
It is important because ZendFramework depends on GMP. At least on Mac
OS
X
Previous Comments:
------------------------------------------------------------------------
[2010-02-10 09:31:31] pajoye@php.net
I would suggest to go with MPIR instead. GMP 5.x breaks ABI badly and
is also not compatible with PHP, from a license point of view.
------------------------------------------------------------------------
[2010-02-10 08:59:47] php-bugs-2010 at ryandesign dot com
Description:
------------
The gmp extension doesn't compile with gmp 5.0.1. This used to work
with
gmp 4.3.2.
Reproduce code:
---------------
1. cd /path/to/php-5.3.2RC1
2. ./configure --disable-all --with-gmp=/opt/local
3. make
Expected result:
----------------
successful compile
Actual result:
--------------
/bin/sh /path/to/php-5.3.2RC1/libtool --silent --preserve-dup-deps --
mode=compile gcc -Iext/gmp/ -I/path/to/php-5.3.2RC1/ext/gmp/ -
DPHP_ATOM_INC -I/path/to/php-5.3.2RC1/include -I/path/to/php-
5.3.2RC1/main -I/path/to/php-5.3.2RC1 -I/path/to/php-
5.3.2RC1/ext/date/lib -I/path/to/php-5.3.2RC1/ext/ereg/regex -
I/opt/local/include -I/path/to/php-5.3.2RC1/TSRM -I/path/to/php-
5.3.2RC1/Zend -no-cpp-precomp -g -O2 -fvisibility=hidden -c
/path/to/php-5.3.2RC1/ext/gmp/gmp.c -o ext/gmp/gmp.lo
/path/to/php-5.3.2RC1/ext/gmp/gmp.c: In function zif_gmp_random:
/path/to/php-5.3.2RC1/ext/gmp/gmp.c:1377: error:
__GMP_BITS_PER_MP_LIMB undeclared (first use in this function)
/path/to/php-5.3.2RC1/ext/gmp/gmp.c:1377: error: (Each undeclared
identifier is reported only once
/path/to/php-5.3.2RC1/ext/gmp/gmp.c:1377: error: for each function it
appears in.)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50990&edit=1