Bug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call

From: Date: Sat, 31 Oct 2020 13:37:43 +0000
Subject: Bug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230038@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80171&edit=1

 ID:                 80171
 Comment by:         php-bugs-2020 at ryandesign dot com
 Reported by:        smillerdev at me dot com
 Summary:            reentrancy.c:139:23: error: too few arguments to
                     function call
 Status:             No Feedback
 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:

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]


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2020-10-05 08:53:55] nikic@php.net

I addressed a number of issues in https://github.com/php/php-src/commit/aa405b7da270595d349d0596ad31305a41d4b1c0.
Could you please check whether that makes the build succeed?

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


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


Thread (13 messages)

« previous php.bugs (#230038) next »