+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/tools/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/getopt-1.1.6/work.log
+ su pbulk -c '"$@"' make /opt/tools/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/getopt-1.1.6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for getopt-1.1.6
gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/tools/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\"  -Dprogram_version=\"1.1.6\" -I./gnu  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/tools/include -I/usr/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline getopt.c -o getopt.o
gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/tools/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\"  -Dprogram_version=\"1.1.6\" -I./gnu  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/tools/include -I/usr/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline gnu/getopt.c -o gnu/getopt.o
gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/tools/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\"  -Dprogram_version=\"1.1.6\" -I./gnu  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/tools/include -I/usr/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline gnu/getopt1.c -o gnu/getopt1.o
In file included from gnu/getopt.c:110:
gnu/getopt.h:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  106 | extern int getopt ();
      | ^~~~~~
gnu/getopt.c:210:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  210 | char *getenv ();
      | ^~~~
gnu/getopt.c:213:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  213 | my_index (str, chr)
      | ^~~~~~~~
gnu/getopt.c: In function 'my_index':
gnu/getopt.c:220:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  220 |         return (char *) str;
      |                ^
gnu/getopt.c: In function '_getopt_initialize':
gnu/getopt.c:389:10: warning: unused parameter 'argc' [-Wunused-parameter]
  389 |      int argc;
      |          ^~~~
gnu/getopt.c:390:19: warning: unused parameter 'argv' [-Wunused-parameter]
  390 |      char *const *argv;
      |                   ^~~~
gnu/getopt.c: In function '_getopt_internal':
gnu/getopt.c:560:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  560 |             exchange ((char **) argv);
      |                       ^
gnu/getopt.c:577:30: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  577 |       if (optind != argc && !strcmp (argv[optind], "--"))
      |                              ^~~~~~
gnu/getopt.c:111:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  110 | #include "getopt.h"
  +++ |+#include <string.h>
  111 | 
gnu/getopt.c:582:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  582 |             exchange ((char **) argv);
      |                       ^
gnu/getopt.c:653:14: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  653 |         if (!strncmp (p->name, nextchar, nameend - nextchar))
      |              ^~~~~~~
gnu/getopt.c:653:14: note: include '<string.h>' or provide a declaration of 'strncmp'
gnu/getopt.c:653:50: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
  653 |         if (!strncmp (p->name, nextchar, nameend - nextchar))
      |                                          ~~~~~~~~^~~~~~~~~~
<built-in>: note: built-in 'strncmp' declared here
gnu/getopt.c:656:35: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  656 |                 == (unsigned int) strlen (p->name))
      |                                   ^~~~~~
gnu/getopt.c:656:35: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:656:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
gnu/getopt.c:656:35: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:680:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  680 |           nextchar += strlen (nextchar);
      |                       ^~~~~~
gnu/getopt.c:680:23: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:698:22: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
  698 |                   if (opterr)
      |                      ^
gnu/getopt.c:710:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  710 |                   nextchar += strlen (nextchar);
      |                               ^~~~~~
gnu/getopt.c:710:31: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:726:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  726 |                   nextchar += strlen (nextchar);
      |                               ^~~~~~
gnu/getopt.c:726:31: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:731:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  731 |           nextchar += strlen (nextchar);
      |                       ^~~~~~
gnu/getopt.c:731:23: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:760:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  760 |           nextchar = (char *) "";
      |                      ^
gnu/getopt.c:840:52: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
  840 |           if (!strncmp (p->name, nextchar, nameend - nextchar))
      |                                            ~~~~~~~~^~~~~~~~~~
<built-in>: note: built-in 'strncmp' declared here
gnu/getopt.c:842:58: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  842 |               if ((unsigned int) (nameend - nextchar) == strlen (p->name))
      |                                                          ^~~~~~
gnu/getopt.c:842:58: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:865:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  865 |             nextchar += strlen (nextchar);
      |                         ^~~~~~
gnu/getopt.c:865:25: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:885:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  885 |                     nextchar += strlen (nextchar);
      |                                 ^~~~~~
gnu/getopt.c:885:33: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:899:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  899 |                     nextchar += strlen (nextchar);
      |                                 ^~~~~~
gnu/getopt.c:899:33: note: include '<string.h>' or provide a declaration of 'strlen'
gnu/getopt.c:903:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
  903 |             nextchar += strlen (nextchar);
      |                         ^~~~~~
gnu/getopt.c:903:25: note: include '<string.h>' or provide a declaration of 'strlen'
In file included from getopt.c:69:
./gnu/getopt.h:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  106 | extern int getopt ();
      | ^~~~~~
In file included from gnu/getopt1.c:24:
gnu/getopt.h:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  106 | extern int getopt ();
      | ^~~~~~
gcc -L/opt/tools/gcc12/lib/gcc/x86_64-sun-solaris2.11/12.2.0 -Wl,-R/opt/tools/gcc12/lib/gcc/x86_64-sun-solaris2.11/12.2.0 -Wl,-R/opt/tools/lib -lintl -liconv -L/opt/tools/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o getopt getopt.o gnu/getopt.o gnu/getopt1.o