+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/intellij-fsnotifier-0.0.20190228nb2/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/intellij-fsnotifier-0.0.20190228nb2/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for intellij-fsnotifier-0.0.20190228nb2 --- inotify.o --- --- main.o --- --- inotify.o --- cc -pipe -O2 -I/usr/include -Wall -Wextra -D_DEFAULT_SOURCE -std=c99 -I/usr/pkg/include -I/usr/include -c inotify.c --- main.o --- cc -pipe -O2 -I/usr/include -Wall -Wextra -D_DEFAULT_SOURCE -std=c99 -I/usr/pkg/include -I/usr/include -c main.c main.c: In function 'userlog': main.c:213:3: warning: implicit declaration of function 'vsyslog' [-Wimplicit-function-declaration] vsyslog(priority, format, ap); ^ main.c: In function 'run_self_test': main.c:236:22: error: 'PATH_MAX' undeclared (first use in this function) char* cwd = malloc(PATH_MAX); ^ main.c:236:22: note: each undeclared identifier is reported only once for each function it appears in main.c: In function 'main_loop': main.c:246:3: warning: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] int input_fd = fileno(stdin), inotify_fd = get_inotify_fd(); ^ main.c:252:5: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] usleep(50000); ^ main.c: In function 'read_input': main.c:305:9: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] CHECK_NULL(array_push(new_roots, strdup(line)), ERR_ABORT); ^ main.c:305:9: warning: passing argument 2 of 'array_push' makes pointer from integer without a cast [enabled by default] In file included from main.c:17:0: fsnotifier.h:48:7: note: expected 'void *' but argument is of type 'int' void* array_push(array* a, void* element); ^ main.c: In function 'register_roots': main.c:390:9: warning: passing argument 2 of 'array_push' makes pointer from integer without a cast [enabled by default] CHECK_NULL(array_push(unwatchable, strdup(unflattened)), false); ^ In file included from main.c:17:0: fsnotifier.h:48:7: note: expected 'void *' but argument is of type 'int' void* array_push(array* a, void* element); ^ main.c:396:22: warning: initialization makes pointer from integer without a cast [enabled by default] char* copy = strdup(mount); ^ main.c:412:18: warning: assignment makes pointer from integer without a cast [enabled by default] root->path = strdup(new_root); ^ main.c:421:7: warning: passing argument 2 of 'array_push' makes pointer from integer without a cast [enabled by default] CHECK_NULL(array_push(unwatchable, strdup(unflattened)), false); ^ In file included from main.c:17:0: fsnotifier.h:48:7: note: expected 'void *' but argument is of type 'int' void* array_push(array* a, void* element); ^ main.c: In function 'unwatchable_mounts': main.c:492:7: warning: passing argument 2 of 'array_push' makes pointer from integer without a cast [enabled by default] CHECK_NULL(array_push(mounts, strdup(ent->mnt_dir)), NULL); ^ In file included from main.c:17:0: fsnotifier.h:48:7: note: expected 'void *' but argument is of type 'int' void* array_push(array* a, void* element); ^ main.c: In function 'report_event': main.c:534:9: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" ^ main.c:535:9: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" ^ main.c:537:16: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] char* copy = path, *p; ^ main.c:541:14: warning: assignment makes pointer from integer without a cast [enabled by default] copy = strdup(path); ^ --- inotify.o --- inotify.c:65:26: error: 'PATH_MAX' undeclared here (not in a function) static char path_buf[2 * PATH_MAX]; ^ inotify.c: In function 'add_watch': inotify.c:204:28: warning: unused variable 'buf2' [-Wunused-variable] char buf1[PATH_MAX], buf2[PATH_MAX]; ^ inotify.c:204:12: warning: unused variable 'buf1' [-Wunused-variable] char buf1[PATH_MAX], buf2[PATH_MAX]; ^ inotify.c: In function 'walk_tree': inotify.c:325:26: error: 'DT_UNKNOWN' undeclared (first use in this function) if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) { ^ inotify.c:325:26: note: each undeclared identifier is reported only once for each function it appears in inotify.c:325:57: error: 'DT_DIR' undeclared (first use in this function) if (entry->d_type != DT_UNKNOWN && entry->d_type != DT_DIR) { ^ inotify.c: At top level: inotify.c:65:13: warning: 'path_buf' defined but not used [-Wunused-variable] static char path_buf[2 * PATH_MAX]; ^ --- main.o --- *** [main.o] Error code 1 bmake: stopped in /home/pbulk/build/sysutils/intellij-fsnotifier/work/fsnotifier-bb7815166319ba46c27809ed8fc0c6b5fa14f869 --- inotify.o --- *** [inotify.o] Error code 1 bmake: stopped in /home/pbulk/build/sysutils/intellij-fsnotifier/work/fsnotifier-bb7815166319ba46c27809ed8fc0c6b5fa14f869 2 errors bmake: stopped in /home/pbulk/build/sysutils/intellij-fsnotifier/work/fsnotifier-bb7815166319ba46c27809ed8fc0c6b5fa14f869 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/intellij-fsnotifier *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/intellij-fsnotifier