Bug #68419 [Asn->Csd]: build error with gmp 4.1

From: Date: Fri, 14 Nov 2014 09:53:40 +0000
Subject: Bug #68419 [Asn->Csd]: build error with gmp 4.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188592@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68419&edit=1 ID: 68419 Updated by: remi@php.net Reported by: petr at jisa dot eu Summary: build error with gmp 4.1 -Status: Assigned +Status: Closed Type: Bug Package: Compile Failure Operating System: centos5 PHP Version: 5.6.3 Assigned To: remi Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. See http://git.php.net/?p=php-src.git;a=commitdiff;h=1b156207446e0c5ec8a9476ad0966b5daa82f516 Previous Comments: ------------------------------------------------------------------------ [2014-11-14 09:15:25] petr at jisa dot eu Description: ------------ Can't build --with-gmp on centos5. There is gmp.x86_64 4.1.4-10.el5 build error: too few arguments to function ‘__gmp_randinit_lc_2exp’ static void gmp_init_random(TSRMLS_D) ... #if GMP_42_OR_NEWER gmp_randinit_mt(GMPG(rand_state)); #else gmp_randinit_lc_2exp(GMPG(rand_state), 32L); << this line #endif ... last 5.4.35 5.5.19 and previous PHP 5.6.2 versions are ok centos6 (gmp-4.3.1-7.el6_2.2.x86_64) builds without problem Test script: --------------- ./configure ... --with-gmp ... && make .... /usr/src/php-5.6.3/ext/gmp/gmp.c: In function ‘gmp_init_random’: /usr/src/php-5.6.3/ext/gmp/gmp.c:1779: warning: passing argument 2 of ‘__gmp_randinit_lc_2exp’ makes pointer from integer without a cast /usr/src/php-5.6.3/ext/gmp/gmp.c:1779: error: too few arguments to function ‘__gmp_randinit_lc_2exp’ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68419&edit=1

« previous php.bugs (#188592) next »