+ 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-yubico-2.27nb3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pam-yubico-2.27nb3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for pam-yubico-2.27nb3
Making all in .
  CC       ykpamcfg.o
  CC       drop_privs.lo
  CC       util.lo
  CC       pam_yubico.lo
pam_yubico.c: In function 'authorize_user_token':
pam_yubico.c:203:15: error: too many arguments to function 'getpwnam_r'
  203 |       pwres = getpwnam_r (username, &pass, buf, buflen, &p);
      |               ^~~~~~~~~~
In file included from util.h:39,
                 from pam_yubico.c:46:
/usr/include/pwd.h:167:23: note: declared here
  167 | extern struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
      |                       ^~~~~~~~~~
pam_yubico.c:203:13: warning: assignment to 'int' from 'struct passwd *' makes integer from pointer without a cast [-Wint-conversion]
  203 |       pwres = getpwnam_r (username, &pass, buf, buflen, &p);
      |             ^
pam_yubico.c: In function 'authorize_user_token_ldap':
pam_yubico.c:306:12: warning: implicit declaration of function 'ldap_initialize' [-Wimplicit-function-declaration]
  306 |       rc = ldap_initialize (&ld, cfg->ldap_uri);
      |            ^~~~~~~~~~~~~~~
pam_yubico.c:327:25: error: 'LDAP_OPT_X_TLS_CACERTFILE' undeclared (first use in this function)
  327 |     ldap_set_option (0, LDAP_OPT_X_TLS_CACERTFILE, cfg->ldap_cacertfile);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
pam_yubico.c:327:25: note: each undeclared identifier is reported only once for each function it appears in
pam_yubico.c:331:33: error: 'LDAP_OPT_X_TLS_CERTFILE' undeclared (first use in this function)
  331 |     rc = ldap_set_option (NULL, LDAP_OPT_X_TLS_CERTFILE, cfg->ldap_clientcertfile);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
pam_yubico.c:336:33: error: 'LDAP_OPT_X_TLS_KEYFILE' undeclared (first use in this function)
  336 |     rc = ldap_set_option (NULL, LDAP_OPT_X_TLS_KEYFILE, cfg->ldap_clientkeyfile);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
pam_yubico.c:344:10: warning: implicit declaration of function 'ldap_start_tls_s' [-Wimplicit-function-declaration]
  344 |     rc = ldap_start_tls_s (ld, NULL, NULL);
      |          ^~~~~~~~~~~~~~~~
pam_yubico.c:372:43: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types]
  372 |     rc = pam_get_item (pamh, PAM_AUTHTOK, (const void **) &bind_password);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           |
      |                                           const void **
In file included from drop_privs.h:40,
                 from pam_yubico.c:47:
/usr/include/security/pam_appl.h:189:17: note: expected 'void **' but argument is of type 'const void **'
  189 |         void ** item                    /* Address of place to put pointer */
      |         ~~~~~~~~^~~~
pam_yubico.c: In function 'display_error':
pam_yubico.c:499:42: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types]
  499 |   retval = pam_get_item (pamh, PAM_CONV, (const void **) &conv);
      |                                          ^~~~~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          const void **
/usr/include/security/pam_appl.h:189:17: note: expected 'void **' but argument is of type 'const void **'
  189 |         void ** item                    /* Address of place to put pointer */
      |         ~~~~~~~~^~~~
pam_yubico.c:512:26: warning: passing argument 2 of 'conv->conv' from incompatible pointer type [-Wincompatible-pointer-types]
  512 |   retval = conv->conv(1, pmsg, &resp, conv->appdata_ptr);
      |                          ^~~~
      |                          |
      |                          const struct pam_message **
pam_yubico.c:512:26: note: expected 'struct pam_message **' but argument is of type 'const struct pam_message **'
pam_yubico.c: In function 'do_challenge_response':
pam_yubico.c:558:11: error: too many arguments to function 'getpwnam_r'
  558 |   pwres = getpwnam_r (username, &pass, pwbuf, pwbuflen, &p);
      |           ^~~~~~~~~~
/usr/include/pwd.h:167:23: note: declared here
  167 | extern struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
      |                       ^~~~~~~~~~
pam_yubico.c:558:9: warning: assignment to 'int' from 'struct passwd *' makes integer from pointer without a cast [-Wint-conversion]
  558 |   pwres = getpwnam_r (username, &pass, pwbuf, pwbuflen, &p);
      |         ^
pam_yubico.c: In function 'pam_sm_authenticate':
pam_yubico.c:1018:32: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type [-Wincompatible-pointer-types]
 1018 |   retval = pam_get_user (pamh, &user, NULL);
      |                                ^~~~~
      |                                |
      |                                const char **
/usr/include/security/pam_appl.h:227:16: note: expected 'char **' but argument is of type 'const char **'
  227 |         char **user,                    /* User Name */
      |         ~~~~~~~^~~~
pam_yubico.c:1039:49: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types]
 1039 |       retval = pam_get_item (pamh, PAM_AUTHTOK, (const void **) &password);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 const void **
/usr/include/security/pam_appl.h:189:17: note: expected 'void **' but argument is of type 'const void **'
  189 |         void ** item                    /* Address of place to put pointer */
      |         ~~~~~~~~^~~~
pam_yubico.c:1165:46: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types]
 1165 |       retval = pam_get_item (pamh, PAM_CONV, (const void **) &conv);
      |                                              ^~~~~~~~~~~~~~~~~~~~~
      |                                              |
      |                                              const void **
/usr/include/security/pam_appl.h:189:17: note: expected 'void **' but argument is of type 'const void **'
  189 |         void ** item                    /* Address of place to put pointer */
      |         ~~~~~~~~^~~~
pam_yubico.c:1194:35: warning: passing argument 2 of 'conv->conv' from incompatible pointer type [-Wincompatible-pointer-types]
 1194 |       retval = conv->conv (nargs, pmsg, &resp, conv->appdata_ptr);
      |                                   ^~~~
      |                                   |
      |                                   const struct pam_message **
pam_yubico.c:1194:35: note: expected 'struct pam_message **' but argument is of type 'const struct pam_message **'
In file included from pam_yubico.c:48:
ykbzero.h:43:36: warning: implicit declaration of function 'memset_s'; did you mean 'memset'? [-Wimplicit-function-declaration]
   43 | #define insecure_memzero(buf, len) memset_s(buf, len, 0, len)
      |                                    ^~~~~~~~
pam_yubico.c:1312:7: note: in expansion of macro 'insecure_memzero'
 1312 |       insecure_memzero(onlypasswd, strlen(onlypasswd));
      |       ^~~~~~~~~~~~~~~~
*** [pam_yubico.lo] Error code 1

bmake[1]: stopped in /home/pbulk/build/security/pam-yubico/work/yubico-pam-2.27
1 error

bmake[1]: stopped in /home/pbulk/build/security/pam-yubico/work/yubico-pam-2.27
*** [all-recursive] Error code 1

bmake: stopped in /home/pbulk/build/security/pam-yubico/work/yubico-pam-2.27
1 error

bmake: stopped in /home/pbulk/build/security/pam-yubico/work/yubico-pam-2.27
*** Error code 2

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

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