+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/entropy-0.9.1.439nb5/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/entropy-0.9.1.439nb5/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for entropy-0.9.1.439nb5 gcc -Iinclude -I/opt/pkg/include -E -MM src/*.c >.depend gcc -Iinclude -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -W -Wall -Wuninitialized -Wno-unused -o obj/entropy.o -c src/entropy.c gcc -Iinclude -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -W -Wall -Wuninitialized -Wno-unused -o obj/logger.o -c src/logger.c Assembler messages: Fatal error: can't create obj/entropy.o: No such file or directory Assembler messages: Fatal error: can't create obj/logger.o: No such file or directory gcc -Iinclude -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -W -Wall -Wuninitialized -Wno-unused -o obj/funclib.o -c src/funclib.c src/logger.c: In function 'logprintf': src/logger.c:35:9: error: unknown type name 'FILE' 35 | FILE *fp = NULL; | ^~~~ src/logger.c:26:1: note: 'FILE' is defined in header ''; this is probably fixable by adding '#include ' 25 | #include "logger.h" +++ |+#include 26 | src/logger.c:36:22: error: storage size of 'fl' isn't known 36 | struct flock fl; | ^~ src/logger.c:50:14: error: implicit declaration of function 'fopen' [-Wimplicit-function-declaration] 50 | fp = fopen(LOGFILE, "a"); | ^~~~~ src/logger.c:50:14: note: 'fopen' is defined in header ''; this is probably fixable by adding '#include ' src/logger.c:50:12: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 50 | fp = fopen(LOGFILE, "a"); | ^ src/logger.c:59:21: error: 'F_WRLCK' undeclared (first use in this function) 59 | fl.l_type = F_WRLCK; | ^~~~~~~ src/logger.c:59:21: note: each undeclared identifier is reported only once for each function it appears in In file included from include/peer.h:29, from include/file.h:35, from src/entropy.c:28: include/bignum.h:63:18: error: conflicting types for 'cnt_t'; have 'uint32_t' {aka 'unsigned int'} 63 | typedef uint32_t cnt_t; | ^~~~~ In file included from /usr/include/time.h:46, from include/config.h:181, from include/osd.h:25, from src/entropy.c:22: /usr/include/sys/types.h:109:25: note: previous declaration of 'cnt_t' with type 'cnt_t' {aka 'short int'} 109 | typedef short cnt_t; /* ? type */ | ^~~~~ src/logger.c:61:18: error: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] 61 | if (0 != fcntl(fileno(fp), F_SETLKW, &fl)) { | ^~~~~ src/logger.c:61:24: error: implicit declaration of function 'fileno' [-Wimplicit-function-declaration] 61 | if (0 != fcntl(fileno(fp), F_SETLKW, &fl)) { | ^~~~~~ src/entropy.c: In function 'main': src/entropy.c:175:17: error: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration] 175 | fprintf(stderr, "configuration init failed\n"); | ^~~~~~~ src/entropy.c:37:1: note: include '' or provide a declaration of 'fprintf' 36 | #include "logger.h" +++ |+#include 37 | src/entropy.c:175:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch] 175 | fprintf(stderr, "configuration init failed\n"); | ^~~~~~~ src/entropy.c:175:17: note: include '' or provide a declaration of 'fprintf' src/entropy.c:175:25: error: 'stderr' undeclared (first use in this function) 175 | fprintf(stderr, "configuration init failed\n"); | ^~~~~~ src/entropy.c:175:25: note: 'stderr' is defined in header ''; this is probably fixable by adding '#include ' src/entropy.c:175:25: note: each undeclared identifier is reported only once for each function it appears in src/entropy.c:201:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch] 201 | fprintf(stderr, "shared memory initialization failed\n"); | ^~~~~~~ src/entropy.c:201:17: note: include '' or provide a declaration of 'fprintf' src/logger.c:61:36: error: 'F_SETLKW' undeclared (first use in this function) 61 | if (0 != fcntl(fileno(fp), F_SETLKW, &fl)) { | ^~~~~~~~ src/logger.c:65:18: error: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration] 65 | length = fprintf(fp, "%s:%d:{%d}:%s(%s:%d): %s", | ^~~~~~~ src/logger.c:65:18: note: include '' or provide a declaration of 'fprintf' src/logger.c:65:18: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch] src/logger.c:65:18: note: include '' or provide a declaration of 'fprintf' src/logger.c:68:21: error: 'F_UNLCK' undeclared (first use in this function); did you mean 'F_ULOCK'? 68 | fl.l_type = F_UNLCK; | ^~~~~~~ | F_ULOCK gcc -Iinclude -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -W -Wall -Wuninitialized -Wno-unused -o obj/osd.o -c src/osd.c src/logger.c:70:17: error: implicit declaration of function 'fclose'; did you mean 'close'? [-Wimplicit-function-declaration] 70 | fclose(fp); | ^~~~~~ | close gmake: *** [Makefile:166: obj/entropy.o] Error 2 gmake: *** Waiting for unfinished jobs.... gmake: *** [Makefile:166: obj/logger.o] Error 2 src/osd.c: In function 'info': src/osd.c:59:18: error: implicit declaration of function 'vfprintf' [-Wimplicit-function-declaration] 59 | length = vfprintf(stdout, fmt, arg); | ^~~~~~~~ src/osd.c:27:1: note: include '' or provide a declaration of 'vfprintf' 26 | #include "logger.h" +++ |+#include 27 | #if STORE_TYPE == 2 /* MySQL store */ src/osd.c:59:27: error: 'stdout' undeclared (first use in this function) 59 | length = vfprintf(stdout, fmt, arg); | ^~~~~~ src/osd.c:59:27: note: 'stdout' is defined in header ''; this is probably fixable by adding '#include ' src/osd.c:59:27: note: each undeclared identifier is reported only once for each function it appears in src/osd.c:61:9: error: implicit declaration of function 'fflush'; did you mean 'gzflush'? [-Wimplicit-function-declaration] 61 | fflush(stdout); | ^~~~~~ | gzflush src/osd.c: In function 'die': src/osd.c:72:27: error: 'stderr' undeclared (first use in this function) 72 | length = vfprintf(stderr, fmt, arg); | ^~~~~~ src/osd.c:72:27: note: 'stderr' is defined in header ''; this is probably fixable by adding '#include ' In file included from include/tools.h:27, from src/osd.c:25: src/osd.c: In function 'osd_usleep': src/osd.c:98:30: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=] 98 | LOG(L_DEBUG,("usleep(%lld)\n", usecs)); | ^~~~~~~~~~~~~~~~ ~~~~~ | | | int64_t {aka long int} include/logger.h:67:78: note: in definition of macro 'LOG' 67 | logprintf(level, __function__, __FILE__, __LINE__, logappend msg) | ^~~ src/osd.c:98:41: note: format string is defined here 98 | LOG(L_DEBUG,("usleep(%lld)\n", usecs)); | ~~~^ | | | long long int | %ld src/osd.c: In function 'osd_sem_global_init': src/osd.c:584:16: warning: pointer targets in assignment from 'caddr_t' {aka 'char *'} to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 584 | zeroes = xcalloc(1, semsize); | ^ src/osd.c:592:18: error: implicit declaration of function 'open'; did you mean 'gzopen'? [-Wimplicit-function-declaration] 592 | sem_fd = open(sg->filename, O_CREAT|O_TRUNC|O_RDWR|O_BINARY, 0600); | ^~~~ | gzopen src/osd.c:592:37: error: 'O_CREAT' undeclared (first use in this function); did you mean 'FCREAT'? 592 | sem_fd = open(sg->filename, O_CREAT|O_TRUNC|O_RDWR|O_BINARY, 0600); | ^~~~~~~ | FCREAT src/osd.c:592:45: error: 'O_TRUNC' undeclared (first use in this function); did you mean 'FTRUNC'? 592 | sem_fd = open(sg->filename, O_CREAT|O_TRUNC|O_RDWR|O_BINARY, 0600); | ^~~~~~~ | FTRUNC src/osd.c:592:53: error: 'O_RDWR' undeclared (first use in this function); did you mean 'O_RD'? 592 | sem_fd = open(sg->filename, O_CREAT|O_TRUNC|O_RDWR|O_BINARY, 0600); | ^~~~~~ | O_RD src/osd.c: In function '_osd_sem_init': src/osd.c:641:22: error: storage size of 'fl' isn't known 641 | struct flock fl; | ^~ src/osd.c:680:42: error: 'F_WRLCK' undeclared (first use in this function) 680 | fl.l_type = 0 == value ? F_WRLCK : F_UNLCK; | ^~~~~~~ src/osd.c:680:52: error: 'F_UNLCK' undeclared (first use in this function); did you mean 'F_ULOCK'? 680 | fl.l_type = 0 == value ? F_WRLCK : F_UNLCK; | ^~~~~~~ | F_ULOCK src/osd.c:683:30: error: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] 683 | rc = fcntl(sem_fd, F_SETLK, &fl); | ^~~~~ src/osd.c:683:44: error: 'F_SETLK' undeclared (first use in this function) 683 | rc = fcntl(sem_fd, F_SETLK, &fl); | ^~~~~~~ src/osd.c: In function '_osd_sem_trywait': src/osd.c:706:22: error: storage size of 'fl' isn't known 706 | struct flock fl; | ^~ src/osd.c:735:21: error: 'F_WRLCK' undeclared (first use in this function) 735 | fl.l_type = F_WRLCK; | ^~~~~~~ src/osd.c:738:36: error: 'F_SETLK' undeclared (first use in this function) 738 | rc = fcntl(sem_fd, F_SETLK, &fl); | ^~~~~~~ src/osd.c: In function '_osd_sem_wait': src/osd.c:759:22: error: storage size of 'fl' isn't known 759 | struct flock fl; | ^~ src/osd.c:788:21: error: 'F_WRLCK' undeclared (first use in this function) 788 | fl.l_type = F_WRLCK; | ^~~~~~~ src/osd.c:791:36: error: 'F_SETLKW' undeclared (first use in this function) 791 | rc = fcntl(sem_fd, F_SETLKW, &fl); | ^~~~~~~~ src/osd.c: In function '_osd_sem_post': src/osd.c:812:22: error: storage size of 'fl' isn't known 812 | struct flock fl; | ^~ src/osd.c:842:21: error: 'F_UNLCK' undeclared (first use in this function); did you mean 'F_ULOCK'? 842 | fl.l_type = F_UNLCK; | ^~~~~~~ | F_ULOCK src/osd.c:845:36: error: 'F_SETLKW' undeclared (first use in this function) 845 | rc = fcntl(sem_fd, F_SETLKW, &fl); | ^~~~~~~~ src/osd.c: In function 'fork2': src/osd.c:1184:43: error: 'O_RDONLY' undeclared (first use in this function); did you mean 'SHM_RDONLY'? 1184 | open("/dev/null", O_RDONLY); /* stdin */ | ^~~~~~~~ | SHM_RDONLY src/osd.c:1185:43: error: 'O_WRONLY' undeclared (first use in this function) 1185 | open("/dev/null", O_WRONLY); /* stdout */ | ^~~~~~~~ src/osd.c:1188:61: error: 'O_RDWR' undeclared (first use in this function); did you mean 'O_RD'? 1188 | sem_fd = open(semglobals->filename, O_RDWR|O_BINARY); | ^~~~~~ | O_RD src/osd.c: In function 'proc_init': src/osd.c:1261:33: error: 'O_RDWR' undeclared (first use in this function); did you mean 'O_RD'? 1261 | pid_fd = open(filename, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0600); | ^~~~~~ | O_RD src/osd.c:1261:40: error: 'O_CREAT' undeclared (first use in this function); did you mean 'FCREAT'? 1261 | pid_fd = open(filename, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0600); | ^~~~~~~ | FCREAT src/osd.c:1261:48: error: 'O_TRUNC' undeclared (first use in this function); did you mean 'FTRUNC'? 1261 | pid_fd = open(filename, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0600); | ^~~~~~~ | FTRUNC src/osd.c: In function 'proc_exit': src/osd.c:1477:29: error: 'O_RDWR' undeclared (first use in this function); did you mean 'O_RD'? 1477 | fd = open(filename, O_RDWR|O_BINARY); | ^~~~~~ | O_RD gmake: *** [Makefile:166: obj/osd.o] Error 1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/entropy *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/entropy