=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/misc/ttyrec", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for ttyrec-1.0.8nb1 --- ttyrec.o --- --- io.o --- --- ttyplay.o --- --- io.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSVR4 -c io.c --- ttyplay.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSVR4 -c ttyplay.c --- ttyrec.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSVR4 -c ttyrec.c ttyrec.c: In function 'main': ttyrec.c:122:1: warning: old-style function definition [-Wold-style-definition] 122 | main(argc, argv) | ^~~~ ttyrec.c:129:15: error: conflicting types for 'getenv'; have 'char *(void)' 129 | char *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from ttyrec.c:57: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ ttyrec.c:162:17: error: too many arguments to function 'getenv'; expected 0, have 1 162 | shell = getenv("SHELL"); | ^~~~~~ ~~~~~~~ ttyrec.c:129:15: note: declared here 129 | char *getenv(); | ^~~~~~ ttyrec.c:169:32: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 169 | (void) signal(SIGCHLD, finish); | ^~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from ttyrec.c:52: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ ttyrec.c:128:14: note: 'finish' declared here 128 | void finish(); | ^~~~~~ *** [ttyrec.o] Error code 1 bmake: stopped making "all" in /tmp/work/misc/ttyrec/work/ttyrec-1.0.8 bmake: 1 error bmake: stopped making "all" in /tmp/work/misc/ttyrec/work/ttyrec-1.0.8 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/ttyrec *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/ttyrec