===> Building for agedu-20200705.2a7d4a2
/opt/pkg/bin/bmake  all-am
clang -DHAVE_CONFIG_H -I.      -pipe -Os -MT agedu.o -MD -MP -MF .deps/agedu.Tpo -c -o agedu.o agedu.c
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]
                            const STRUCT_STAT *st);
                                  ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:72:60: warning: declaration of 'struct stat64' will not be visible outside of this function [-Wvisibility]
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:84:11: error: incomplete definition of type 'struct stat64'
    if (st->st_dev == ctx->datafile_dev && st->st_ino == ctx->datafile_ino)
        ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:84:46: error: incomplete definition of type 'struct stat64'
    if (st->st_dev == ctx->datafile_dev && st->st_ino == ctx->datafile_ino)
                                           ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:90:28: error: incomplete definition of type 'struct stat64'
    if (!ctx->crossfs && st->st_dev != ctx->filesystem_dev)
                         ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:94:23: error: incomplete definition of type 'struct stat64'
        file.size = st->st_size;
                    ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:96:49: error: incomplete definition of type 'struct stat64'
        file.size = (unsigned long long)512 * st->st_blocks;
                                              ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:98:56: error: incomplete definition of type 'struct stat64'
    if (ctx->usemtime || (ctx->fakeatimes && S_ISDIR(st->st_mode)))
                                                     ~~^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/stat.h:251:28: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(m)      (((m) & S_IFMT) == S_IFDIR)     /* directory */
                           ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:99:17: error: incomplete definition of type 'struct stat64'
        file.atime = st->st_mtime;
                     ~~^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:101:21: error: incomplete definition of type 'struct stat64'
        file.atime = max(st->st_mtime, st->st_atime);
                         ~~^
./agedu.h:120:21: note: expanded from macro 'max'
#define max(x,y) ( (x) > (y) ? (x) : (y) )
                    ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:101:35: error: incomplete definition of type 'struct stat64'
        file.atime = max(st->st_mtime, st->st_atime);
                                       ~~^
./agedu.h:120:27: note: expanded from macro 'max'
#define max(x,y) ( (x) > (y) ? (x) : (y) )
                          ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:101:21: error: incomplete definition of type 'struct stat64'
        file.atime = max(st->st_mtime, st->st_atime);
                         ~~^
./agedu.h:120:33: note: expanded from macro 'max'
#define max(x,y) ( (x) > (y) ? (x) : (y) )
                                ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:101:35: error: incomplete definition of type 'struct stat64'
        file.atime = max(st->st_mtime, st->st_atime);
                                       ~~^
./agedu.h:120:39: note: expanded from macro 'max'
#define max(x,y) ( (x) > (y) ? (x) : (y) )
                                      ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
agedu.c:127:17: error: incomplete definition of type 'struct stat64'
        if (!S_ISDIR(st->st_mode))
                     ~~^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/stat.h:251:28: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(m)      (((m) & S_IFMT) == S_IFDIR)     /* directory */
                           ^
agedu.c:72:60: note: forward declaration of 'struct stat64'
static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st)
                                                           ^
./agedu.h:111:28: note: expanded from macro 'STRUCT_STAT'
#define STRUCT_STAT struct stat64
                           ^
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]
                du(scandir, gotdata, scan_error, ctx);
                            ^~~~~~~
./du.h:30:40: note: passing argument to parameter 'gotdata' here
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 /Users/pbulk/build/sysutils/agedu/work/agedu-20200705.2a7d4a2
bmake[1]: 1 error

bmake[1]: stopped making "all-am" in /Users/pbulk/build/sysutils/agedu/work/agedu-20200705.2a7d4a2

bmake: stopped making "all" in /Users/pbulk/build/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