Edit report at https://bugs.php.net/bug.php?id=80171&edit=1
ID: 80171
Updated by: nikic@php.net
Reported by: smillerdev at me dot com
Summary: reentrancy.c:139:23: error: too few arguments to
function call
-Status: No Feedback
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: macOS 10.15
PHP Version: 7.3.23
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
@ryandesign: Should be fixed by https://github.com/php/php-src/commit/00ba784a2ce95e009f98e0e6d263634673a3f2e1.
Previous Comments:
------------------------------------------------------------------------
[2020-10-31 13:37:43] php-bugs-2020 at ryandesign dot com
In php 7.4.12 and 7.3.24 there is still one implicit declaration of exit in the configure tests that
should be fixed:
php-7.3.24/config.log:
configure:96698: checking whether dlsym() requires a leading underscore in symbol names
configure:96769: ccache /usr/bin/clang -o conftest -pipe -Os -Werror=implicit-function-declaration
-arch x86_64 -fvisibility=hidden -I/opt/local/include -no-cpp-precomp conftest.c >&5
configure:96765:5: error: implicitly declaring library function 'exit' with type
'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
exit (status);
^
configure:96765:5: note: include the header <stdlib.h> or explicitly provide a declaration for
'exit'
1 error generated.
php-7.4.12/config.log:
configure:83023:5: error: implicitly declaring library function 'exit' with type
'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
------------------------------------------------------------------------
[2020-10-18 04:22:14] 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.
------------------------------------------------------------------------
[2020-10-05 10:21:19] smillerdev at me dot com
Whoops I accidentally build 7.2 twice. Yeah, 7.3 seems to be working indeed. I'll try applying
the CFLAGS to 7.2 and otherwise homebrew will have to retire it a couple months early.
------------------------------------------------------------------------
[2020-10-05 09:31:08] nikic@php.net
The referenced commit is on PHP-7.3, so it should at least apply cleanly there :)
For older versions, we cannot address this from our side, but I expect passing something like
CFLAGS="-Wno-error" or maybe CFLAGS="-Wno-error=implicit-function-declarations"
to configure should allow working around the issue.
------------------------------------------------------------------------
[2020-10-05 09:18:33] smillerdev at me dot com
This doesn't apply cleanly to the 7.2/7.3 codebase the issue was occurring in, which is to be
expected for a commit based on master. I'm trying to make it work, but I don't think I
know enough about the changes between 7.2 and 8.0 on this level to make it work.
------------------------------------------------------------------------
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=80171
--
Edit this bug report at https://bugs.php.net/bug.php?id=80171&edit=1