go to bug id or search bugs for
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.
Add a Patch
Add a Pull Request
Hi, is this also the case for older versions, like 5.6?
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.
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.
Marking this as verified then, should probably only go down to 5.6 since 5.5 and 5.4 is in security only mode
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
However, that looks fishy to me.
Automatic comment on behalf of email@example.com
Log: Fixed bug #69993