Bug #68419 [NEW]: build error with gmp 4.1
| From: | petr at jisa dot eu | Date: | Fri, 14 Nov 2014 09:15:26 +0000 |
| Subject: | Bug #68419 [NEW]: build error with gmp 4.1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188590@lists.php.net to get a copy of this message | ||
From: petr at jisa dot eu
Operating system: centos5
PHP version: 5.6.3
Package: Compile Failure
Bug Type: Bug
Bug description:build error with gmp 4.1
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 bug report at https://bugs.php.net/bug.php?id=68419&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68419&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68419&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68419&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68419&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68419&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68419&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68419&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68419&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68419&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68419&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68419&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68419&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68419&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68419&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68419&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68419&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68419&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68419&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68419&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68419&r=mysqlcfg