Bug #69993 [Ver]: test for gmp.h needs to test w/o include
| From: | cmb@php.net | Date: | Tue, 01 Sep 2015 21:03:20 +0000 |
| Subject: | Bug #69993 [Ver]: test for gmp.h needs to test w/o include | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195685@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69993&edit=1
ID: 69993
Updated by: cmb@php.net
Reported by: mah at everybody dot org
Summary: test for gmp.h needs to test w/o include
Status: Verified
Type: Bug
Package: GNU MP related
Operating System: Debian
PHP Version: *
Block user comment: N
Private report: N
New Comment:
On a 64bit Debian Jessie libgmp-devel installs gmp.h in
/usr/include/x86_64-linux-gnu/, and so it's not possible to
configure successfully. The supplied patch fixes the issue so
that one can do
./configure --disable-all --enable-cli
--with-gmp=/usr/include/x86_64-linux-gnu
However, that looks fishy to me.
Previous Comments:
------------------------------------------------------------------------
[2015-07-13 22:03:45] kalle@php.net
Marking this as verified then, should probably only go down to 5.6 since 5.5 and 5.4 is in security
only mode
------------------------------------------------------------------------
[2015-07-12 04:22:18] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2015-07-05 20:59:41] mah at everybody dot org
Given that the code with this issue was checked in 2003 -- https://github.com/php/php-src/blame/master/ext/gmp/config.m4#L7
-- I would say most versions of PHP have this problem.
------------------------------------------------------------------------
[2015-07-04 10:24:13] kalle@php.net
Hi, is this also the case for older versions, like 5.6?
------------------------------------------------------------------------
[2015-07-04 01:23:41] mah at everybody dot org
Description:
------------
The test for gmp.h only tests $i/include/gmp.h exists. Instead it should test for that OR $i/gmp.h.
Failure to do so results in issues like this one: http://stackoverflow.com/questions/19894168/build-php5-3-8-on-ubuntu-get-error-configure-error-unable-to-locate-gmp-h
I was going to compile php7 and ran into the same problem. Attached patch fixes this.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69993&edit=1