=> Bootstrap dependency digest>=20010302: found digest-20190127
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum SHA1 OK for php-5.6.40.tar.xz
=> Checksum RMD160 OK for php-5.6.40.tar.xz
=> Checksum SHA512 OK for php-5.6.40.tar.xz
===> Installing dependencies for php56-bz2-5.6.40
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
=> Tool dependency automake>=1.9: found automake-1.16.2nb1
=> Tool dependency autoconf>=2.58: found autoconf-2.69nb10
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency xz>=4.999.9betanb1: found xz-5.2.5
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency php>=5.6.40nb4<5.7: found php-5.6.40nb4
===> Skipping vulnerability checks.
WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for php56-bz2-5.6.40
===> Extracting for php56-bz2-5.6.40
===> Patching for php56-bz2-5.6.40
===> Creating toolchain wrappers for php56-bz2-5.6.40
===> Configuring for php56-bz2-5.6.40
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
=> 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
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for a sed that does not truncate output... /opt/work/archivers/php-bz2/work/.tools/bin/sed
checking for aarch64-apple-darwin20-cc... clang
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 we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for icc... no
checking for suncc... no
checking whether clang and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... aarch64-apple-darwin20
checking host system type... aarch64-apple-darwin20
checking target system type... aarch64-apple-darwin20
checking for PHP prefix... /opt/pkg
checking for PHP includes... -I/opt/pkg/include/php -I/opt/pkg/include/php/main -I/opt/pkg/include/php/TSRM -I/opt/pkg/include/php/Zend -I/opt/pkg/include/php/ext -I/opt/pkg/include/php/ext/date/lib
checking for PHP extension directory... /opt/pkg/lib/php/20140828
checking for PHP installed headers prefix... /opt/pkg/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... /opt/pkg/bin/nawk
checking if /opt/pkg/bin/nawk is broken... no
checking for BZip2 support... yes, shared
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/archivers/php-bz2
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/archivers/php-bz2