[MacPorts] #62853: dash @0.5.11.3: error: variable has incomplete type 'struct stat64'

MacPorts noreply at macports.org
Mon May 10 16:58:28 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
 Keywords:  bigsur arm64  |       Port:  dash
--------------------------+---------------------------------------
 dash doesn't build on our Apple Silicon Big Sur build machine:

 https://build.macports.org/builders/ports-
 11_arm64-builder/builds/19940/steps/install-port/logs/stdio

 {{{
 exec.c:336:16: error: variable has incomplete type 'struct stat64'
         struct stat64 statb;
                       ^
 exec.c:336:9: note: forward declaration of 'struct stat64'
         struct stat64 statb;
                ^
 exec.c:346:11: error: implicit declaration of function 'stat64' is invalid
 in C99 [-Werror,-Wimplicit-function-declaration]
                         while (stat64(name, &statb) < 0) {
                                ^
 cd.c:99:16: error: variable has incomplete type 'struct stat64'
         struct stat64 statb;
                       ^
 cd.c:99:9: note: forward declaration of 'struct stat64'
         struct stat64 statb;
                ^
 cd.c:135:7: error: implicit declaration of function 'stat64' is invalid in
 C99 [-Werror,-Wimplicit-function-declaration]
                 if (stat64(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) {
                     ^
 exec.c:346:11: note: did you mean 'stat'?
 }}}

 Also, silent build rules should be disabled.

-- 
Ticket URL: <https://trac.macports.org/ticket/62853>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list