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

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

Based on these variables, the following variables have been set:

        * MYSQL_VERSION = mariadb1011

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 automake>=1.9: found automake-1.16.5nb3
=> Tool dependency autoconf>=2.58: found autoconf-2.72
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency mariadb-client>=10.11.4nb1<10.12.0: found mariadb-client-10.11.8nb1
=> Full dependency libxml2>=2.10.4nb3: found libxml2-2.12.8
=> Full dependency expat>=2.0.0nb1: found expat-2.6.2
===> Overriding tools for phraseanet-indexer-3.1.4nb13
===> Extracting for phraseanet-indexer-3.1.4nb13
===> Patching for phraseanet-indexer-3.1.4nb13
=> Applying pkgsrc patches for phraseanet-indexer-3.1.4nb13
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-aa
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.1.1.1 2011/10/04 08:02:19 manu Exp $
|
|Look for MySQL in $PREFIX
|
|--- configure.ac.orig	2011-08-11 13:53:57.000000000 +0200
|+++ configure.ac	2011-08-11 13:54:26.000000000 +0200
--------------------------
Patching file configure.ac using Plan A...
Hunk #1 succeeded at 19.
Hunk #2 succeeded at 38.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-ab
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.1.1.1 2011/10/04 08:02:19 manu Exp $
|
|Make sure time_t is defined, since <sys/timeb.h> uses it.
|
|--- src/phrasea_clock_t.h.orig	2011-08-11 17:00:07.000000000 +0200
|+++ src/phrasea_clock_t.h	2011-08-11 17:00:18.000000000 +0200
--------------------------
Patching file src/phrasea_clock_t.h using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-configure.ac
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/www/phraseanet-indexer/patches/patch-configure.ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure.ac,v 1.1 2021/09/26 05:58:37 mef Exp $
|
|Use function name mysql_init instead of my_init to check the link is OK
|
|checking for my_init in -lmysqlclient... no
|configure: error: cannot link to libmysqlclient
|*** Error code 1
|
|--- configure.ac.orig	2021-09-26 14:41:49.645873851 +0900
|+++ configure.ac	2021-09-26 14:47:42.704711042 +0900
--------------------------
Patching file configure.ac using Plan A...
Hunk #1 succeeded at 77.
done
===> Creating toolchain wrappers for phraseanet-indexer-3.1.4nb13
===> Configuring for phraseanet-indexer-3.1.4nb13
cd /home/pbulk/build/www/phraseanet-indexer/work/phraseanet-v3.1.4-linux/bin/src/phraseanet_indexer && aclocal && automake -a && autoconf
configure.ac:62: installing './compile'
configure.ac:73: installing './config.guess'
configure.ac:73: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am:10: warning: source file 'src/main.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:10: warning: source file 'src/callback_record.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/connbas.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/connbas_abox.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/connbas_dbox.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/dom.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/indexer.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/lownodiacritics_utf8.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/phrasea_clock_t.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/sbas.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/thesaurus.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/trace_memory.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file 'src/sockets.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
Makefile.am:10: warning: source file './xNIX/syslog_xnix.cpp' is in a subdirectory,
Makefile.am:10: but option 'subdir-objects' is disabled
configure.ac:10: warning: AC_OUTPUT should be used without arguments.
configure.ac:10: You should run autoupdate.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
configure: WARNING: unrecognized options: --with-libiconv-prefix
checking for a BSD-compatible install... /opt/pkg/bin/bsdinstall -c -o pbulk -g pbulk
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... /usr/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --with-libiconv-prefix
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking MySQL client library... /opt/pkg/lib/
checking MySQL headers... /opt/pkg/include/mysql/
checking for x86_64-sun-solaris2.11-gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/socket.h... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking for wchar.h... yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99 or later... yes
checking for inline... inline
checking for size_t... yes
checking for error_at_line... no
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking for GNU libc compatible malloc... yes
checking for GNU libc compatible realloc... yes
checking for memset... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strrchr... yes
checking for xmlParseDoc in -lxml2... yes
checking for XML_Parse in -lexpat... yes
checking for mysql_init in -lmysqlclient... yes
checking for pthread_create in -lpthread... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --with-libiconv-prefix