[MacPorts] #62853: dash @0.5.11.3: error: variable has incomplete type 'struct stat64'
MacPorts
noreply at macports.org
Fri May 14 10:09:33 UTC 2021
#62853: dash @0.5.11.3: error: variable has incomplete type 'struct stat64'
-------------------------+---------------------------------------
Reporter: ryandesign | Owner: Mathias.Laurin+macports@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur arm64
Port: dash |
-------------------------+---------------------------------------
Comment (by saagarjha):
The TL;DR is that the configure check (AC_CHECK_FUNC) doesn't actually
look at the headers to see if stat64 is available, it forward declares it
with a bogus signature and then tries to link it. On Apple silicon this
succeeds because the symbols still exists even though the headers don't
define it. I'm not an autoconf expert, but maybe we should be using a
check that only looks at the headers?
--
Ticket URL: <https://trac.macports.org/ticket/62853#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list