[MacPorts] #62853: dash @0.5.11.3: error: variable has incomplete type 'struct stat64'
MacPorts
noreply at macports.org
Wed May 12 07:32:40 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 ryandesign):
The build log from macOS 11 x86_64 shows:
https://build.macports.org/builders/ports-
11_x86_64-builder/builds/29994/steps/install-port/logs/stdio
{{{
cd.c:135:7: warning: 'stat64' is deprecated: first deprecated in macOS
10.6 [-Wdeprecated-declarations]
if (stat64(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/stat.h:427:9:
note: 'stat64' has been explicitly marked deprecated here
int stat64(const char *, struct stat64 *)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA,
__IPHONE_NA);
^
expand.c:1330:7: warning: 'lstat64' is deprecated: first deprecated in
macOS 10.6 [-Wdeprecated-declarations]
if (lstat64(expdir, &statb) >= 0)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/stat.h:426:9:
note: 'lstat64' has been explicitly marked deprecated here
int lstat64(const char *, struct stat64 *)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA,
__IPHONE_NA);
^
}}}
Looks like Apple took the Apple Silicon transition as an opportunity to
remove these long-deprecated types.
Here's another project fixing this problem:
https://github.com/stenzek/duckstation/commit/152ccd591722369aaad2785083fb2ab789effbbe
Looks like one should just use `stat` instead of `stat64` on Mac OS X 10.6
or later.
--
Ticket URL: <https://trac.macports.org/ticket/62853#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list