+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/p5-Net-SSH2-0.73nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/p5-Net-SSH2-0.73nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for Net-SSH2-0.73.tar.gz
=> Checksum SHA512 OK for Net-SSH2-0.73.tar.gz
===> Installing dependencies for p5-Net-SSH2-0.73nb2
==========================================================================
The following variables will affect the build process of this package,
p5-Net-SSH2-0.73nb2.  Their current value is shown below:

        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/openssl/private

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency libssh2>=1.11.0nb1: found libssh2-1.11.0nb2
=> Full dependency perl>=5.38.0<5.39.0: found perl-5.38.2
===> Overriding tools for p5-Net-SSH2-0.73nb2
===> Extracting for p5-Net-SSH2-0.73nb2
===> Patching for p5-Net-SSH2-0.73nb2
===> Creating toolchain wrappers for p5-Net-SSH2-0.73nb2
===> Configuring for p5-Net-SSH2-0.73nb2
=> Checking for portability problems in extracted files
Looking for libraries...

The libssh2 library is required by this module.  If you don't have it, you can
download it from http://www.libssh2.org; you may also need OpenSSL, which can
be obtained from http://www.openssl.org , or libgcrypt, which can be obtained
from http://www.gnupg.org .

Debian:   sudo aptitude install libssh2-1-dev
OpenSUSE: sudo zypper in libssh2-1 libssh2-devel

You can pass your libssh2 lib and include dirs (and extra link args) on the
command line. E.g.:

    perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include \
        ldargs="-lz"

These can also be set through the LIBSSH2_LIB/LIBSSH2_INCLUDE/LIBSSH2_LDARGS
environment variables.

To build with libgcrypt instead of OpenSSL, use the crypto_backend
option when calling Makefile.PL, e.g.:

    perl Makefile.PL crypto_backend=gcrypt

ld.so.1: assertlibSQtX2gc1: fatal: libssh2.so.1: open failed: No such file or directory
Analyzing file assertlibSQtX2gc1
Unable to detect crypto backend used by libssh2!
ld.so.1: assertlibtPwNUiSW: fatal: libssh2.so.1: open failed: No such file or directory
Analyzing file assertlibtPwNUiSW
Unable to detect crypto backend used by libssh2!
Unable to find a working version of library ssh2 in the following directories:
  /usr/lib
  /usr/ccs/lib
  /usr/local/lib
  /usr/gnu/lib
  /opt/pkg
  /usr
  /usr/local
  /opt
  /opt/local
  /usr/local/libssh2
  /opt/libssh2
  /usr/local/ssl
  /home/pbulk/build/security/p5-Net-SSH2/work/.home
  /home/pbulk/build/security/p5-Net-SSH2/work/.home/libssh2
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/p5-Net-SSH2