=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/agedu", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for agedu-20200705.2a7d4a2 --- all --- /opt/pkg/bin/bmake all-am --- agedu.o --- --- du.o --- --- agedu.o --- clang -DHAVE_CONFIG_H -I. -pipe -Os -MT agedu.o -MD -MP -MF .deps/agedu.Tpo -c -o agedu.o agedu.c --- du.o --- clang -DHAVE_CONFIG_H -I. -pipe -Os -MT du.o -MD -MP -MF .deps/du.Tpo -c -o du.o du.c --- agedu.o --- In file included from agedu.c:7: ./du.h:18:14: warning: declaration of 'struct stat64' will not be visible outside of this function [-Wvisibility] --- du.o --- In file included from du.c:6: ./du.h:18:14: warning: declaration of 'struct stat64' will not be visible outside of this function [-Wvisibility] 18 | const STRUCT_STAT *st); | ^ --- agedu.o --- 18 | const STRUCT_STAT *st); | ^ --- du.o --- ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ --- agedu.o --- ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:72:60: warning: declaration of 'struct stat64' will not be visible outside of this function [-Wvisibility] 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ --- du.o --- du.c:178:17: error: variable has incomplete type 'struct stat64' --- agedu.o --- agedu.c:84:11: error: incomplete definition of type 'const struct stat64' --- du.o --- 178 | STRUCT_STAT st; | ^ --- agedu.o --- 84 | if (st->st_dev == ctx->datafile_dev && st->st_ino == ctx->datafile_ino) | ~~^ --- du.o --- du.c:178:5: note: forward declaration of 'struct stat64' 178 | STRUCT_STAT st; --- agedu.o --- agedu.c:72:60: note: forward declaration of 'struct stat64' --- du.o --- | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ --- agedu.o --- 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' --- du.o --- du.c:188:12: warning: call to undeclared function 'stat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- agedu.o --- 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:84:46: error: incomplete definition of type 'const struct stat64' --- du.o --- 188 | statret = STAT_FUNC(*path, &st); | ^ ./agedu.h:113:19: note: expanded from macro 'STAT_FUNC' 113 | #define STAT_FUNC stat64 | ^ du.c:190:12: warning: call to undeclared function 'lstat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- agedu.o --- 84 | if (st->st_dev == ctx->datafile_dev && st->st_ino == ctx->datafile_ino) | ~~^ agedu.c:72:60: note: forward declaration of 'struct stat64' --- du.o --- 190 | statret = LSTAT_FUNC(*path, &st); | ^ --- agedu.o --- 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ --- du.o --- ./agedu.h:112:20: note: expanded from macro 'LSTAT_FUNC' 112 | #define LSTAT_FUNC lstat64 | ^ --- agedu.o --- ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:90:28: error: incomplete definition of type 'const struct stat64' 90 | if (!ctx->crossfs && st->st_dev != ctx->filesystem_dev) | ~~^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:94:23: error: incomplete definition of type 'const struct stat64' 94 | file.size = st->st_size; | ~~^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:96:49: error: incomplete definition of type 'const struct stat64' 96 | file.size = (unsigned long long)512 * st->st_blocks; | ~~^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ --- du.o --- 3 warnings and 1 error generated. --- agedu.o --- agedu.c:98:56: error: incomplete definition of type 'const struct stat64' 98 | if (ctx->usemtime || (ctx->fakeatimes && S_ISDIR(st->st_mode))) | ~~^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/stat.h:251:28: note: expanded from macro 'S_ISDIR' 251 | #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) /* directory */ | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:99:17: error: incomplete definition of type 'const struct stat64' 99 | file.atime = st->st_mtime; | ~~^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:101:21: error: incomplete definition of type 'const struct stat64' 101 | file.atime = max(st->st_mtime, st->st_atime); | ~~^ ./agedu.h:120:21: note: expanded from macro 'max' 120 | #define max(x,y) ( (x) > (y) ? (x) : (y) ) | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:101:35: error: incomplete definition of type 'const struct stat64' 101 | file.atime = max(st->st_mtime, st->st_atime); | ~~^ ./agedu.h:120:27: note: expanded from macro 'max' 120 | #define max(x,y) ( (x) > (y) ? (x) : (y) ) | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:101:21: error: incomplete definition of type 'const struct stat64' 101 | file.atime = max(st->st_mtime, st->st_atime); | ~~^ ./agedu.h:120:33: note: expanded from macro 'max' 120 | #define max(x,y) ( (x) > (y) ? (x) : (y) ) | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:101:35: error: incomplete definition of type 'const struct stat64' 101 | file.atime = max(st->st_mtime, st->st_atime); | ~~^ ./agedu.h:120:39: note: expanded from macro 'max' 120 | #define max(x,y) ( (x) > (y) ? (x) : (y) ) | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ agedu.c:127:17: error: incomplete definition of type 'const struct stat64' 127 | if (!S_ISDIR(st->st_mode)) | ~~^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/stat.h:251:28: note: expanded from macro 'S_ISDIR' 251 | #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) /* directory */ | ^ agedu.c:72:60: note: forward declaration of 'struct stat64' 72 | static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) | ^ ./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT' 111 | #define STRUCT_STAT struct stat64 | ^ --- du.o --- *** [du.o] Error code 1 bmake[1]: stopped making "all-am" in /var/tmp/work/sysutils/agedu/work/agedu-20200705.2a7d4a2 --- agedu.o --- agedu.c:1110:15: warning: incompatible function pointer types passing 'int (void *, const char *, const struct stat64 *)' to parameter of type 'gotdata_fn_t' (aka 'int (*)(void *, const char *, const struct stat64 *)') [-Wincompatible-function-pointer-types] 1110 | du(scandir, gotdata, scan_error, ctx); | ^~~~~~~ ./du.h:30:40: note: passing argument to parameter 'gotdata' here 30 | void du(const char *path, gotdata_fn_t gotdata, err_fn_t err, | ^ 3 warnings and 12 errors generated. *** [agedu.o] Error code 1 bmake[1]: stopped making "all-am" in /var/tmp/work/sysutils/agedu/work/agedu-20200705.2a7d4a2 bmake[1]: 2 errors bmake[1]: stopped making "all-am" in /var/tmp/work/sysutils/agedu/work/agedu-20200705.2a7d4a2 bmake: stopped making "all" in /var/tmp/work/sysutils/agedu/work/agedu-20200705.2a7d4a2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/agedu *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/agedu