+ 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/merkletree-20140304/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/merkletree-20140304/work.log
===> Building for merkletree-20140304
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -c libmerkle.c
libmerkle.c: In function 'calc_row':
libmerkle.c:101:11: warning: implicit declaration of function 'MIN' [-Wimplicit-function-declaration]
  101 |    xfer = MIN(size - cc, tree->blocksize);
      |           ^~~
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -c main.c
gcc libmerkle.o main.o -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -o merkletree -lmultigest
Undefined			first referenced
 symbol  			    in file
MIN                                 libmerkle.o
ld: fatal: symbol referencing errors. No output written to merkletree
collect2: error: ld returned 1 exit status
*** [merkletree] Error code 1

bmake: stopped in /home/pbulk/build/security/merkletree/work/merkletree-20140304
1 error

bmake: stopped in /home/pbulk/build/security/merkletree/work/merkletree-20140304
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/merkletree