Bug #80171 [NEW]: reentrancy.c:139:23: error: too few arguments to function call
From: smillerdev at me dot com
Operating system: macOS 10.15
PHP version: 7.3.23
Package: Compile Failure
Bug Type: Bug
Bug description:reentrancy.c:139:23: error: too few arguments to function call
Description:
------------
Compiling PHP on the latest macOS 10.15 fails in Homebrew CI because
Apple changed the way readdir_r is defined as far as I can tell.
https://github.com/Homebrew/homebrew-core/pull/61828
https://github.com/Homebrew/homebrew-core/pull/61820
Actual result:
--------------
/private/tmp/php@7.2-20201002-12382-1t37dvh/php-7.2.34/main/reentrancy.c:139:23:
error: too few arguments to function call, expected 3, have 2
readdir_r(dirp, entry);
~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/dirent.h:110:1:
note: 'readdir_r' declared here
int readdir_r(DIR *, struct dirent *, struct dirent **)
__DARWIN_INODE64(readdir_r);
^
1 error generated.
make: *** [main/reentrancy.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=80171&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80171&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80171&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80171&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80171&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80171&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80171&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80171&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80171&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80171&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80171&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80171&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80171&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80171&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80171&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80171&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80171&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80171&r=mysqlcfg
Thread (13 messages)
- smillerdev at me dot com
- nikic@php.netBug #80171 [Opn]: reentrancy.c:139:23: error: too few arguments to function call
- smillerdev at me dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- nikic@php.netBug #80171 [Opn]: reentrancy.c:139:23: error: too few arguments to function call
- smillerdev at me dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- php-bugs-2020 at ryandesign dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- nikic@php.netBug #80171 [Asn->Fbk]: reentrancy.c:139:23: error: too few arguments to function call
- smillerdev at me dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- nikic@php.netBug #80171 [Fbk]: reentrancy.c:139:23: error: too few arguments to function call
- smillerdev at me dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- php-bugs at lists dot php dot netBug #80171 [Fbk->NoF]: reentrancy.c:139:23: error: too few arguments to function call
- php-bugs-2020 at ryandesign dot comBug #80171 [Com]: reentrancy.c:139:23: error: too few arguments to function call
- nikic@php.netBug #80171 [NoF->Csd]: reentrancy.c:139:23: error: too few arguments to function call