+ 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/mgdiff-1.0.1nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mgdiff-1.0.1nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for mgdiff-1.0.1nb1
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c mgdiff.c
mgdiff.c: In function 'drawit':
mgdiff.c:425:10: warning: variable 'x_selection' set but not used [-Wunused-but-set-variable]
  425 |     Side x_selection = NEITHER;
      |          ^~~~~~~~~~~
mgdiff.c: In function 'file_cb':
mgdiff.c:576:9: warning: implicit declaration of function 'reload_both' [-Wimplicit-function-declaration]
  576 |         reload_both();
      |         ^~~~~~~~~~~
mgdiff.c: At top level:
mgdiff.c:2099:6: warning: no previous prototype for 'reload_both' [-Wmissing-prototypes]
 2099 | void reload_both(void)
      |      ^~~~~~~~~~~
mgdiff.c:2099:6: warning: conflicting types for 'reload_both'; have 'void(void)'
mgdiff.c:576:9: note: previous implicit declaration of 'reload_both' with type 'void(void)'
  576 |         reload_both();
      |         ^~~~~~~~~~~
mgdiff.c: In function 'Select':
mgdiff.c:2449:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
 2449 |     else
      |     ^~~~
mgdiff.c:2453:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 2453 |         if (curr_x_block) {
      |         ^~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c rundiff.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c misc.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c files.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c spawn.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c manual.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c modal.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -Wall -Wstrict-prototypes -Wmissing-prototypes -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c legend.c
rm -f mgdiff._man
if test -z "" ; then  cd `dirname mgdiff` &&  ln -s `basename mgdiff.man` `basename mgdiff._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"   < mgdiff.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/\@\@$/\\/' >mgdiff._man;  fi
rm -f mgdiff
LD_RUN_PATH=/opt/pkg/lib gcc -o mgdiff -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -I/opt/pkg/include/freetype2  -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   -liconv -lintl -L/opt/pkg/lib   mgdiff.o rundiff.o misc.o files.o spawn.o manual.o modal.o legend.o -L/usr/dt/lib -R/usr/dt/lib -lXm -lm -lXt -lSM -lICE -lXmu -lXext -lX11 -lXp    -lXpm  -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
sys_nerr                            misc.o
sys_errlist                         misc.o
ld: fatal: symbol referencing errors. No output written to mgdiff
collect2: error: ld returned 1 exit status
*** [mgdiff] Error code 1

bmake: stopped in /home/pbulk/build/devel/mgdiff/work/mgdiff
1 error

bmake: stopped in /home/pbulk/build/devel/mgdiff/work/mgdiff
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mgdiff
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mgdiff