Bug #76826 [Fbk]: error: use of undeclared identifier 'finite'

From: Date: Thu, 11 Oct 2018 22:26:12 +0000
Subject: Bug #76826 [Fbk]: error: use of undeclared identifier 'finite'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217533@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76826&edit=1

 ID:                 76826
 Updated by:         ab@php.net
 Reported by:        php-bugs-2018 at ryandesign dot com
 Summary:            error: use of undeclared identifier 'finite'
 Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OS X 10.7.5
 PHP Version:        7.2.9
 Block user comment: N
 Private report:     N

 New Comment:

@elis yep, that's the same bug. Thanks for re-posting the log. I've no Mac as well, so
only able to guess the conditions. With the patch - you need to ensure the -p option has the correct
level number, depending on the CWD when the patch gets applied. Alternatively you can edit the paths
in the patch, so they suffice for the build constellation.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2018-10-11 21:15:10] elis at hirwing dot se

@ab I've completely missed the answers here. I have tried to build 7.2.11 and 7.1.23 which have
failed the same way.

Too bad it's the same log viewer as before: https://logs.nix.ci/?key=nixos/nixpkgs.48228&attempt_id=94e95849-958b-4b83-8952-90bc4cf3021f
-- but it's the only way I have to get the log out from the darwin builds since I don't
have any darwin machines myself.

I've also tried to apply your patch on 7.2.11 and 7.1.23 for darwin, but it didn't apply
at all: https://logs.nix.ci/?key=nixos/nixpkgs.48228&attempt_id=7d415ce6-e908-439e-bbf4-5fe6797871c8

------------------------------------------------------------------------
[2018-10-05 07:13:21] ab@php.net

Thanks for the build new logs. Is that with the vanilla package? Were you able to play with the
condition as i've suggested? Perhaps you could try the patch i've just attached. I'd
be really reluctant to do fixes for EOL versions, but at least we could figure out what goes wrong
there. Probably only you can do that, as the chances to find someone with this OSX version are
probably marginal.

Thanks.

------------------------------------------------------------------------
[2018-10-05 07:09:59] ab@php.net

The following patch has been added/updated:

Patch Name: bug76826.poc.0.patch
Revision:   1538723399
URL:        https://bugs.php.net/patch-display.php?bug=76826&patch=bug76826.poc.0.patch&revision=1538723399

------------------------------------------------------------------------
[2018-10-05 02:35:46] php-bugs-2018 at ryandesign dot com

Yes, we know Mac OS X 10.7 is old. But maybe there's somebody out there trying to learn PHP,
and the only computer they have available is an old hand-me-down Mac that cannot be upgraded past
10.7.

Here are some fresh build logs for you, on Mac OS X 10.7.5, Xcode 4.6.3, Apple LLVM version 4.2
(clang-425.0.28) (based on LLVM 3.2svn).

php 7.1.22: https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/78701/steps/install-port/logs/stdio

php 7.2.10: https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/78702/steps/install-port/logs/stdio

Can't provide a build log of php 7.3.x because of bug #76825.

------------------------------------------------------------------------
[2018-10-04 20:27:30] ab@php.net

@elis the build log seems to available anymore. Perhaps a gist could work? Also the OS and compiler
version were interesting to know.

@php-bugs-2018 Otherwise I was doing some research and stumbled upon the fact, that OS X 10.7 is EOL
already for about 4 years. It seems that even 10.9 already EOL. The issue seems quite weird because
the condition https://github.com/php/php-src/blob/master/configure.ac#L85
checks already whether it's lower than C++11. You could try to remove __cplusplus check in
configure.ac and Zend/configure.ac and see whether it changes something. If it doesn't, that it
is probably missing the other part of the condition.

Thanks.

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=76826


--
Edit this bug report at https://bugs.php.net/bug.php?id=76826&edit=1


Thread (14 messages)

« previous php.bugs (#217533) next »