ID:               50990
 Updated by:       paj...@php.net
 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:

ZF depends on the gmp php extension, which can be built against MPIR
instead of gmplib. See http://www.mpir.org/. It is a rock solid gmp
compatible library with much better support for modern architecture and
optimizations, without the (l)gpl v3 license madness.


Previous Comments:
------------------------------------------------------------------------

[2010-02-10 10:23:47] juri dot saltbacka at gmail dot com

It is important because ZendFramework depends on GMP. At least on Mac
OS 
X

------------------------------------------------------------------------

[2010-02-10 09:31:31] paj...@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

Reply via email to