[MacPorts] #69631: gcc-devel does not build on Sonoma: error: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Sun Mar 31 19:22:12 UTC 2024
#69631: gcc-devel does not build on Sonoma: error: call to undeclared function
'dup2'; ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: sonoma
Port: gcc-devel |
---------------------------+--------------------
Comment (by ryandesign):
In addition, the problem may be that the earlier `#elif defined(F_GETFD)`
path isn't being taken. On my macOS 12 SDK I see `F_GETFD` is defined in
<fcntl.h> which filedescriptor.c does include but only if `HAVE_FCNTL_H`
is defined. Maybe there is a bug in the configure script test and
`HAVE_FCNTL_H` isn't getting defined; check your config.log.
--
Ticket URL: <https://trac.macports.org/ticket/69631#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list