+ 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/rp-l2tp-0.3nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rp-l2tp-0.3nb1/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for rp-l2tp-0.3nb1
gcc -M -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" auth.c debug.c dgram.c main.c md5.c network.c options.c peer.c session.c tunnel.c utils.c > .depend
gcc -c -o auth.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" auth.c
auth.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o debug.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" debug.c
debug.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o dgram.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" dgram.c
dgram.c:119:1: warning: 'describe_pulled_avp' defined but not used [-Wunused-function]
  119 | describe_pulled_avp(uint16_t vendor,
      | ^~~~~~~~~~~~~~~~~~~
dgram.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o main.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" main.c
main.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o md5.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" md5.c
md5.c: In function 'MD5Final':
md5.c:143:26: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  143 |     memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
      |                          ^
md5.c: In function 'MD5Update':
md5.c:82:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
   82 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
md5.c:82:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
md5.c:165:6: note: in a call to function 'MD5Transform'
  165 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
md5.c:91:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
   91 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
md5.c:91:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
md5.c:165:6: note: in a call to function 'MD5Transform'
  165 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
md5.c: In function 'MD5Final':
md5.c:126:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  126 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
md5.c:126:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
md5.c:165:6: note: in a call to function 'MD5Transform'
  165 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
md5.c:140:5: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  140 |     MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
md5.c:140:5: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
md5.c:165:6: note: in a call to function 'MD5Transform'
  165 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
gcc -c -o network.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" network.c
network.c:18:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   18 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o options.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" options.c
options.c:42:49: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
   42 |     { "load-handler",      OPT_TYPE_CALLFUNC,   (void *) do_load_handler },
      |                                                 ^
options.c: In function 'set_option':
options.c:89:14: warning: implicit declaration of function 'strcasecmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   89 |         if (!strcasecmp(value, "true") ||
      |              ^~~~~~~~~~
      |              strncmp
options.c:131:46: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  131 |         memcpy(desc->addr, he->h_addr, sizeof(he->h_addr));
      |                                              ^
options.c:146:14: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
  146 |         fn = (int (*)(EventSelector *, l2tp_opt_descriptor *, char const *)) desc->addr;
      |              ^
options.c: At top level:
options.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o peer.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" peer.c
peer.c:46:47: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
   46 |     { "secret",            OPT_TYPE_CALLFUNC, (void *) handle_secret_option},
      |                                               ^
peer.c:48:47: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
   48 |     { "lac-handler",       OPT_TYPE_CALLFUNC, (void *) set_lac_handler},
      |                                               ^
peer.c:49:47: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
   49 |     { "lns-handler",       OPT_TYPE_CALLFUNC, (void *) set_lns_handler},
      |                                               ^
peer.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o session.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" session.c
session.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o tunnel.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" tunnel.c
tunnel.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gcc -c -o utils.o -g -I.. -Ilibevent -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"0.3\" -DPREFIX=\"/opt/pkg\" -DSYSCONFDIR=\""/etc/opt/pkg"\" utils.c
utils.c: In function 'l2tp_set_errmsg':
utils.c:87:5: warning: implicit declaration of function 'vsnprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
   87 |     vsnprintf(errmsg, MAX_ERRMSG_LEN, fmt, ap);
      |     ^~~~~~~~~
      |     vsprintf
utils.c: In function 'l2tp_load_handler':
utils.c:199:9: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
  199 |         snprintf(buf, sizeof(buf), "%s/lib/l2tp/plugins/%s", PREFIX, fname);
      |         ^~~~~~~~
utils.c:32:1: note: 'snprintf' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   31 | #include "l2tp.h"
  +++ |+#include <stdio.h>
   32 | 
utils.c:216:15: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
  216 |     init_fn = (void (*)(EventSelector *)) init;
      |               ^
utils.c: At top level:
utils.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
rm -f libl2tp.a
ar -rc libl2tp.a auth.o debug.o dgram.o main.o md5.o network.o options.o peer.o session.o tunnel.o utils.o
ranlib libl2tp.a || true
test -d libevent || ln -s ../libevent .
/opt/pkg/bin/gmake -C libevent
gmake[1]: Entering directory '/home/pbulk/build/net/rp-l2tp/work/rp-l2tp-0.3/libevent'
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I.. -c -o event.o event.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I.. -c -o event_tcp.o event_tcp.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I.. -c -o hash.o hash.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I.. -c -o event_sig.o event_sig.c
rm -f libevent.a
ar -cq libevent.a event.o event_tcp.o hash.o event_sig.o
ranlib libevent.a
gmake[1]: Leaving directory '/home/pbulk/build/net/rp-l2tp/work/rp-l2tp-0.3/libevent'
/opt/pkg/bin/gmake -C handlers
gmake[1]: Entering directory '/home/pbulk/build/net/rp-l2tp/work/rp-l2tp-0.3/handlers'
gcc -g -O2 -I.. -I../libevent -I../../libevent -Wall -fPIC -c -o pty.o pty.c
pty.c: In function 'pty_get':
pty.c:53:16: error: 'N_HDLC' undeclared (first use in this function)
   53 |     int disc = N_HDLC;
      |                ^~~~~~
pty.c:53:16: note: each undeclared identifier is reported only once for each function it appears in
pty.c:61:24: error: 'TIOCGPTN' undeclared (first use in this function); did you mean 'TIOCGETD'?
   61 |         if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
      |                        ^~~~~~~~
      |                        TIOCGETD
pty.c:64:28: error: 'TIOCSPTLCK' undeclared (first use in this function); did you mean 'TIOCSETLD'?
   64 |             if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0) {
      |                            ^~~~~~~~~~
      |                            TIOCSETLD
pty.c: At top level:
pty.c:16:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=]
   16 | static char const RCSID[] =
      |                   ^~~~~
gmake[1]: *** [Makefile:29: pty.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/net/rp-l2tp/work/rp-l2tp-0.3/handlers'
gmake: *** [Makefile:55: l2tpd] Error 2
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/rp-l2tp
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/rp-l2tp