+ 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/pam-pwauth_suid-1.2nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pam-pwauth_suid-1.2nb1/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for pam-pwauth_suid-1.2nb1
(cd /home/pbulk/build/security/pam-pwauth_suid/work &&  gcc  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/usr/include -c -fPIC -DPATH_HELPER=\"/opt/pkg/libexec/pwauth_suid_helper\" pam_pwauth_suid.c &&  gcc    -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg/lib -shared pam_pwauth_suid.o -o pam_pwauth_suid.so &&  gcc  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/usr/include    -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg/lib pwauth_suid_helper.c -o pwauth_suid_helper -lcrypt)
pam_pwauth_suid.c: In function 'askhelper':
pam_pwauth_suid.c:66:24: error: 'EAUTH' undeclared (first use in this function)
   66 |                 return EAUTH;
      |                        ^~~~~
pam_pwauth_suid.c:66:24: note: each undeclared identifier is reported only once for each function it appears in
pam_pwauth_suid.c: At top level:
pam_pwauth_suid.c:79:11: error: expected ';' before 'int'
   79 | PAM_EXTERN int
      |           ^~~~
      |           ;
pam_pwauth_suid.c: In function 'pam_sm_authenticate':
pam_pwauth_suid.c:86:34: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |         res = pam_get_user(pamh, &user, NULL);
      |                                  ^~~~~
      |                                  |
      |                                  const char **
In file included from pam_pwauth_suid.c:5:
/usr/include/security/pam_appl.h:227:16: note: expected 'char **' but argument is of type 'const char **'
  227 |         char **user,                    /* User Name */
      |         ~~~~~~~^~~~
pam_pwauth_suid.c:89:15: warning: implicit declaration of function 'pam_get_authtok'; did you mean 'pam_chauthtok'? [-Wimplicit-function-declaration]
   89 |         res = pam_get_authtok(pamh, PAM_AUTHTOK, &pass, NULL);
      |               ^~~~~~~~~~~~~~~
      |               pam_chauthtok
pam_pwauth_suid.c: At top level:
pam_pwauth_suid.c:99:11: error: expected ';' before 'int'
   99 | PAM_EXTERN int
      |           ^~~~
      |           ;
pam_pwauth_suid.c:107:18: error: expected declaration specifiers or '...' before string constant
  107 | PAM_MODULE_ENTRY("pam_passwdhelper");
      |                  ^~~~~~~~~~~~~~~~~~
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/pam-pwauth_suid