+ 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/opendis-0.0.3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/opendis-0.0.3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for opendis-0.0.3
Making all in src
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c camera.c
In file included from cameraP.h:34,
                 from camera.c:38:
cdpP.h:75:1: warning: 'packed' attribute ignored [-Wattributes]
   75 | } ODSPoll __attribute__((aligned(2), packed));
      | ^
cdpP.h:82:1: warning: 'packed' attribute ignored [-Wattributes]
   82 | } ODSPollAck __attribute__((aligned(2), packed));
      | ^
camera.c: In function 'odsGetProductInfo':
camera.c:222:3: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
  222 |   usleep(2000);
      |   ^~~~~~
      |   sleep
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c misc.c
misc.c: In function 'read_fully':
misc.c:135:11: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  135 |           exit(-1);
      |           ^~~~
misc.c:51:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   50 | #include "format-mem.h"
  +++ |+#include <stdlib.h>
   51 | 
misc.c:135:11: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  135 |           exit(-1);
      |           ^~~~
misc.c:135:11: note: include '<stdlib.h>' or provide a declaration of 'exit'
misc.c:170:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
  170 |         exit(-1);
      |         ^~~~
misc.c:170:9: note: include '<stdlib.h>' or provide a declaration of 'exit'
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c format-mem.c
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c send.c
In file included from cameraP.h:34,
                 from send.c:37:
cdpP.h:75:1: warning: 'packed' attribute ignored [-Wattributes]
   75 | } ODSPoll __attribute__((aligned(2), packed));
      | ^
cdpP.h:82:1: warning: 'packed' attribute ignored [-Wattributes]
   82 | } ODSPollAck __attribute__((aligned(2), packed));
      | ^
send.c: In function 'send_bytes':
send.c:285:7: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  285 |       memcpy(buffer + camera->bufbytes, caddr, len);
      |       ^~~~~~
send.c:39:1: note: include '<string.h>' or provide a declaration of 'memcpy'
   38 | #include "send.h"
  +++ |+#include <string.h>
   39 | 
send.c:285:7: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
  285 |       memcpy(buffer + camera->bufbytes, caddr, len);
      |       ^~~~~~
send.c:285:7: note: include '<string.h>' or provide a declaration of 'memcpy'
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c nss.c
In file included from nss.h:27,
                 from nss.c:48:
cdpP.h:75:1: warning: 'packed' attribute ignored [-Wattributes]
   75 | } ODSPoll __attribute__((aligned(2), packed));
      | ^
cdpP.h:82:1: warning: 'packed' attribute ignored [-Wattributes]
   82 | } ODSPollAck __attribute__((aligned(2), packed));
      | ^
nss.c: In function 'nss_open':
nss.c:116:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  116 |   memset(&tty, 0, sizeof(tty));
      |   ^~~~~~
nss.c:50:1: note: include '<string.h>' or provide a declaration of 'memset'
   49 | #include "cameraP.h"
  +++ |+#include <string.h>
   50 | 
nss.c:116:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
  116 |   memset(&tty, 0, sizeof(tty));
      |   ^~~~~~
nss.c:116:3: note: include '<string.h>' or provide a declaration of 'memset'
nss.c:120:3: warning: implicit declaration of function 'cfmakeraw' [-Wimplicit-function-declaration]
  120 |   cfmakeraw(&tty);
      |   ^~~~~~~~~
nss.c:163:3: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
  163 |   usleep(100000);
      |   ^~~~~~
      |   sleep
nss.c: In function 'nss_receive_message':
nss.c:565:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  565 |   memcpy(&message_len, camera->buffer, sizeof(message_len));
      |   ^~~~~~
nss.c:565:3: note: include '<string.h>' or provide a declaration of 'memcpy'
nss.c:565:3: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
nss.c:565:3: note: include '<string.h>' or provide a declaration of 'memcpy'
nss.c: In function 'poll_and_wait':
nss.c:601:5: warning: operation on 's' may be undefined [-Wsequence-point]
  601 |   s = swap_short(s);
nss.c:620:5: warning: operation on 's' may be undefined [-Wsequence-point]
  620 |   s = swap_short(s);
nss.c: In function 'nss_receive_packet':
nss.c:504:8: warning: 'poll' may be used uninitialized [-Wmaybe-uninitialized]
  504 |   if (!poll_and_reply(camera, &poll, &poll_ack, !0))
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nss.c:459:1: note: by argument 2 of type 'const ODSPoll *' to 'poll_and_reply' declared here
  459 | poll_and_reply(ODSCamera camera, const ODSPoll *poll,
      | ^~~~~~~~~~~~~~
nss.c:498:17: note: 'poll' declared here
  498 |   ODSPoll       poll;
      |                 ^~~~
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c usb.c
In file included from usb.h:27,
                 from usb.c:39:
cdpP.h:75:1: warning: 'packed' attribute ignored [-Wattributes]
   75 | } ODSPoll __attribute__((aligned(2), packed));
      | ^
cdpP.h:82:1: warning: 'packed' attribute ignored [-Wattributes]
   82 | } ODSPollAck __attribute__((aligned(2), packed));
      | ^
usb.c: In function 'usb_receive_message':
usb.c:137:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  137 |   memcpy(&message_len, camera->buffer, sizeof(message_len));
      |   ^~~~~~
usb.c:42:1: note: include '<string.h>' or provide a declaration of 'memcpy'
   41 | #include "format-mem.h"
  +++ |+#include <string.h>
   42 | 
usb.c:137:3: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch]
  137 |   memcpy(&message_len, camera->buffer, sizeof(message_len));
      |   ^~~~~~
usb.c:137:3: note: include '<string.h>' or provide a declaration of 'memcpy'
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -Wall -ansi -pedantic -W   -I/opt/pkg/include  -g -c ods.c
In file included from cameraP.h:34,
                 from ods.c:39:
cdpP.h:75:1: warning: 'packed' attribute ignored [-Wattributes]
   75 | } ODSPoll __attribute__((aligned(2), packed));
      | ^
cdpP.h:82:1: warning: 'packed' attribute ignored [-Wattributes]
   82 | } ODSPollAck __attribute__((aligned(2), packed));
      | ^
ods.c: In function 'strcdup':
ods.c:71:14: warning: implicit declaration of function 'strdup'; did you mean 'strcdup'? [-Wimplicit-function-declaration]
   71 |       return strdup(src);
      |              ^~~~~~
      |              strcdup
ods.c:71:14: warning: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion]
   71 |       return strdup(src);
      |              ^~~~~~~~~~~
ods.c: In function '_ods_init_args':
ods.c:232:3: error: 'opterr' undeclared (first use in this function)
  232 |   opterr = 0;                           /* Tell getopt not to report errors. */
      |   ^~~~~~
ods.c:232:3: note: each undeclared identifier is reported only once for each function it appears in
ods.c:238:22: error: 'optind' undeclared (first use in this function)
  238 |       int startind = optind ? optind : 1;
      |                      ^~~~~~
ods.c:245:11: warning: implicit declaration of function 'getopt'; did you mean 'gettxt'? [-Wimplicit-function-declaration]
  245 |       c = getopt(*argc, (char *const *) argv, "-d:r:t:suilhqv");
      |           ^~~~~~
      |           gettxt
ods.c:260:48: error: 'optarg' undeclared (first use in this function)
  260 |           opts->device = strcdup(opts->device, optarg);
      |                                                ^~~~~~
*** [ods.o] Error code 1

bmake[1]: stopped in /home/pbulk/build/graphics/opendis/work/opendis-0.0.3/src
1 error

bmake[1]: stopped in /home/pbulk/build/graphics/opendis/work/opendis-0.0.3/src
*** [all-recursive] Error code 1

bmake: stopped in /home/pbulk/build/graphics/opendis/work/opendis-0.0.3
1 error

bmake: stopped in /home/pbulk/build/graphics/opendis/work/opendis-0.0.3
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/opendis