+ 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/xbattbar-1.4.2nb10/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xbattbar-1.4.2nb10/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xbattbar-1.4.2nb10 gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -D_NO_APM -I/opt/pkg/include -c xbattbar.c xbattbar.c: In function 'usage': xbattbar.c:141:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 141 | exit(0); | ^~~~ xbattbar.c:46:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 45 | #include <X11/Xlib.h> +++ |+#include <stdlib.h> 46 | xbattbar.c:141:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 141 | exit(0); | ^~~~ xbattbar.c:141:3: note: include '<stdlib.h>' or provide a declaration of 'exit' xbattbar.c: In function 'InitDisplay': xbattbar.c:173:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 173 | exit(1); | ^~~~ xbattbar.c:173:7: note: include '<stdlib.h>' or provide a declaration of 'exit' xbattbar.c:179:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 179 | exit(1); | ^~~~ xbattbar.c:179:5: note: include '<stdlib.h>' or provide a declaration of 'exit' xbattbar.c:187:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 187 | exit(1); | ^~~~ xbattbar.c:187:5: note: include '<stdlib.h>' or provide a declaration of 'exit' xbattbar.c: At top level: xbattbar.c:229:1: warning: return type defaults to 'int' [-Wimplicit-int] 229 | main(int argc, char **argv) | ^~~~ xbattbar.c: In function 'main': xbattbar.c:244:18: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 244 | bi_thick = atoi(optarg); | ^~~~ xbattbar.c:273:9: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] 273 | if (strcasecmp(*argv, "top") == 0) | ^~~~~~~~~~ xbattbar.c:292:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 292 | exit(1); | ^~~~ xbattbar.c:292:5: note: include '<stdlib.h>' or provide a declaration of 'exit' xbattbar.c: In function 'showdiagbox': xbattbar.c:358:37: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 358 | pixw = XTextWidth(fontp, diagmsg, strlen(diagmsg)); | ^~~~~~ xbattbar.c:46:1: note: include '<string.h>' or provide a declaration of 'strlen' 45 | #include <X11/Xlib.h> +++ |+#include <string.h> 46 | xbattbar.c:358:37: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 358 | pixw = XTextWidth(fontp, diagmsg, strlen(diagmsg)); | ^~~~~~ xbattbar.c:358:37: note: include '<string.h>' or provide a declaration of 'strlen' rm -f xbattbar._man if test -z "" ; then cd `dirname xbattbar` && ln -s `basename xbattbar.man` `basename xbattbar._man`; else cpp -undef -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org" < xbattbar.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' >xbattbar._man; fi rm -f xbattbar LD_RUN_PATH=/opt/pkg/lib gcc -o xbattbar -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -B direct -Wl,-M,/usr/lib/ld/map.bssalign -Wl,-M,/usr/lib/ld/map.noexstk -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/opt/pkg/lib xbattbar.o -lXext -lX11 -lsocket -lnsl -R/opt/pkg/lib -z lazyload -z combreloc -Wl,-M,/usr/lib/ld/map.pagealign -Wl,-M,/usr/lib/ld/map.noexdata Undefined first referenced symbol in file battery_check xbattbar.o ld: fatal: symbol referencing errors. No output written to xbattbar collect2: error: ld returned 1 exit status *** [xbattbar] Error code 1 bmake: stopped in /home/pbulk/build/sysutils/xbattbar/work/xbattbar-1.4.2 1 error bmake: stopped in /home/pbulk/build/sysutils/xbattbar/work/xbattbar-1.4.2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xbattbar *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xbattbar