dash 0.5.11.1 doesn't build on macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This commit introduced the build failure:
3e3e7af1a49273a5e49d50565b3b079a2ab19142

The first error is:
expand.c:1365:9: error: incomplete definition of type 'struct dirent64'
                if (dp->d_name[0] == '.' && ! matchdot)
                    ~~^

Full build log:

$ uname -a
Darwin breedzicht 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 18 20:50:10 PDT 2020; root:xnu-4903.278.43~1/RELEASE_X86_64 x86_64
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ CFLAGS=-Os ./configure && make
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for build system compiler... gcc
checking for __attribute__((__alias__()))... no
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking whether _PATH_BSHELL is declared... yes
checking whether _PATH_DEVNULL is declared... yes
checking whether _PATH_TTY is declared... yes
checking whether isblank is declared... yes
checking size of intmax_t... 8
checking size of long long int... 8
checking whether PRIdMAX is declared... yes
checking for bsearch... yes
checking for faccessat... yes
checking for getpwnam... yes
checking for getrlimit... yes
checking for isalpha... yes
checking for killpg... yes
checking for mempcpy... no
checking for sigsetmask... yes
checking for stpcpy... yes
checking for strchrnul... no
checking for strsignal... yes
checking for strtod... yes
checking for strtoimax... yes
checking for strtoumax... yes
checking for sysconf... yes
checking for signal... yes
checking for stat64... yes
checking for open64... no
checking for stat::st_mtim... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
Making all in src
  CC       builtins.def
  GEN      builtins.h
  CC       mknodes
  GEN      nodes.h
  GEN      token.h
  CC       mksyntax
  GEN      syntax.h
make  all-am
  CC       alias.o
  CC       arith_yacc.o
  CC       arith_yylex.o
  CC       cd.o
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/MacOSX.sdk/usr/include/sys/stat.h:402: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);
        ^
1 warning generated.
  CC       error.o
  CC       eval.o
  CC       exec.o
exec.c:346:11: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
                        while (stat64(name, &statb) < 0) {
                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stat.h:402: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);
        ^
exec.c:439:10: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
                while (stat64(fullname, &statb) < 0) {
                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/stat.h:402: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);
        ^
2 warnings generated.
  CC       expand.o
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/MacOSX.sdk/usr/include/sys/stat.h:401: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);
        ^
expand.c:1364:34: warning: implicit declaration of function 'readdir64' is invalid in C99 [-Wimplicit-function-declaration]
        while (! int_pending() && (dp = readdir64(dirp)) != NULL) {
                                        ^
expand.c:1364:32: warning: incompatible integer to pointer conversion assigning to 'struct dirent64 *' from 'int' [-Wint-conversion]
        while (! int_pending() && (dp = readdir64(dirp)) != NULL) {
                                      ^ ~~~~~~~~~~~~~~~
expand.c:1365:9: error: incomplete definition of type 'struct dirent64'
                if (dp->d_name[0] == '.' && ! matchdot)
                    ~~^
expand.c:1287:9: note: forward declaration of 'struct dirent64'
        struct dirent64 *dp;
               ^
expand.c:1367:23: error: incomplete definition of type 'struct dirent64'
                if (pmatch(start, dp->d_name)) {
                                  ~~^
expand.c:1287:9: note: forward declaration of 'struct dirent64'
        struct dirent64 *dp;
               ^
expand.c:1369:13: error: incomplete definition of type 'struct dirent64'
                                scopy(dp->d_name, enddir);
                                      ~~^
./mystring.h:63:41: note: expanded from macro 'scopy'
#define scopy(s1, s2)   ((void)strcpy(s2, s1))
                                          ^~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                              ^~~~~~~~~~~
expand.c:1287:9: note: forward declaration of 'struct dirent64'
        struct dirent64 *dp;
               ^
expand.c:1375:26: error: incomplete definition of type 'struct dirent64'
                                p = stpcpy(enddir, dp->d_name);
                                                   ~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:91:33: note: expanded from macro 'stpcpy' __builtin___stpcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                              ^~~~~~~~~~~
expand.c:1287:9: note: forward declaration of 'struct dirent64'
        struct dirent64 *dp;
               ^
3 warnings and 4 errors generated.
make[3]: *** [expand.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux