[package - main-i386-default][www/unit-php] Failed for unit-php85-1.34.2_2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 20:14:58 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     osa@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy17/data/main-i386-default/p3f6341e38a73_s72d01e62b08/logs/unit-php85-1.34.2_2.log
Build URL:      https://pkg-status.freebsd.org/beefy17/build.html?mastername=main-i386-default&build=p3f6341e38a73_s72d01e62b08
Log:

=>> Building www/unit-php
build started at Fri Sep  5 20:08:11 UTC 2025
port directory: /usr/ports/www/unit-php
package name: unit-php85-1.34.2_2
building for: FreeBSD main-i386-default-job-05 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE 1500063 i386
maintained by: osa@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 793 Oct 26  2024 /usr/ports/www/unit-php/Makefile
Ports top last git commit: 3f6341e38a7
Ports top unclean checkout: no
Port dir last git commit: 82177cb1ed0
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.3
Host OSVERSION: 1500061
Jail OSVERSION: 1500063
Job Id: 05




!!! Jail is newer than host. (Jail: 1500063, Host: 1500061) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1500063
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
UNAME_m=i386
UNAME_p=i386
UNAME_r=15.0-PRERELEASE
LOCALBASE=/usr/local
UNAME_v=FreeBSD 15.0-PRERELEASE 1500063
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.3
MASTERMNT=/usr/local/poudriere/data/.m/main-i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/main-i386-default/05/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.3
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=php85
MAKE_ARGS= FLAVOR=php85
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for unit-php85-1.34.2_2:
     DEBUG=off: Enable debug logging
     IPV6=on: IPv6 protocol support
     NJS=off: Enable NGINX JavaScript
     OTEL=off: Enable OpenTelemetry
     UNIXSOCK=on: Enable unix sockets
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
osa@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--prefix=/usr/local  --ld-opt="-L/usr/local/lib"  --log=/var/log/unit/unit.log  --logdir=/var/log/unit  --modulesdir=/usr/local/libexec/unit/modules  --openssl  --pid=/var/run/unit/unit.pid  --runstatedir=/var/run/unit  --statedir=/var/db/unit  --tmpdir=/var/tmp/unit  --user=www --group=www --control=unix:/var/run/unit/control.unit.sock
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=/usr/local/bin/gmake XDG_DATA_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85/.cache  HOME=/wrkdirs/usr/ports/www/unit-php/work-php85 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/unit-php/work-php85/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/unit-php/work-php85/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85/.cache  HOME=/wrkdirs/usr/ports/www/unit-php/work-php85 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/unit-php/work-php85/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/unit-php/work-php85/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS="  " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing   " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644" 
 BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
 PHP_EXT_DIR=20240925 OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/unit"  EXAMPLESDIR="share/examples/unit"  DATADIR="share/unit"  WWWDIR="www/unit"  ETCDIR="etc/unit"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local  UNIT_PIDFILE=/var/run/unit/unit.pid  UNIT_SOCK=/var/run/unit/control.unit.sock  UNIT_TMPDIR=/var/tmp/unit  WWWOWN=www  WWWGRP=www PHP_EXT_DIR=20240925 PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/unit DOCSDIR=/usr/local/share/doc/unit EXAMPLESDIR=/usr/local/share/examples/unit  WWWDIR=/usr/local/www/unit ETCDIR=/usr/local/etc/unit
--End SUB_LIST--

---Begin make.conf---
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
pipebuf                         (-y)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   unit-php85-1.34.2_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.2.2.pkg
[main-i386-default-job-05] Installing pkg-2.2.2...
[main-i386-default-job-05] Extracting pkg-2.2.2: .......... done
===>   unit-php85-1.34.2_2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of unit-php85-1.34.2_2
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by unit-php85-1.34.2_2 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by unit-php85-1.34.2_2 for building
=> SHA256 Checksum OK for unit-1.34.2.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by unit-php85-1.34.2_2 for building
===>  Extracting for unit-php85-1.34.2_2
=> SHA256 Checksum OK for unit-1.34.2.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for unit-php85-1.34.2_2
<snip>
[main-i386-default-job-05] Extracting php85-8.5.0.b2: .......... done
===>   unit-php85-1.34.2_2 depends on file: /usr/local/include/php/main/php.h - found
===>   Returning to build of unit-php85-1.34.2_2
===>   unit-php85-1.34.2_2 depends on package: gmake>=4.4.1 - not found
===>   Installing existing package /packages/All/gmake-4.4.1.pkg
[main-i386-default-job-05] Installing gmake-4.4.1...
[main-i386-default-job-05] `-- Installing gettext-runtime-0.23.1...
[main-i386-default-job-05] `-- Extracting gettext-runtime-0.23.1: .......... done
[main-i386-default-job-05] Extracting gmake-4.4.1: .......... done
===>   unit-php85-1.34.2_2 depends on package: gmake>=4.4.1 - found
===>   Returning to build of unit-php85-1.34.2_2
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   unit-php85-1.34.2_2 depends on shared library: libpcre2-8.so - found (/usr/local/lib/libpcre2-8.so)
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for unit-php85-1.34.2_2
configuring Unit 1.34.2 for FreeBSD 15.0-PRERELEASE i386
checking for C compiler: cc
 + using Clang C compiler
 + FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
building an "echo" program
checking for endianness ... little endian
checking for int size ... 4
checking for long size ... 4
checking for long long size ... 8
checking for void * size ... 4
checking for size_t size ... 4
checking for off_t size ... 8
checking for time_t size ... 4
checking for C99 variadic macro ... found
checking for GCC __builtin_expect() ... found
checking for GCC __builtin_unreachable() ... found
checking for GCC __builtin_prefetch() ... found
checking for GCC __builtin_clz() ... found
checking for GCC __builtin_popcount() ... found
checking for GCC __attribute__ visibility ... found
checking for GCC __attribute__ aligned ... found
checking for GCC __attribute__ malloc ... found
checking for GCC __attribute__ packed ... found
checking for GCC __attribute__ unused ... found
checking for GCC builtin atomic operations ... found
checking for posix_memalign() ... found
checking for Linux malloc_usable_size() ... found
checking for alloca() ... found
checking for Linux mallopt() ... not found
checking for MAP_ANON ... found
checking for MAP_POPULATE ... not found
checking for MAP_PREFAULT_READ ... found
checking for shm_open() ... found
checking for shm_open(SHM_ANON) ... found
checking for memfd_create() ... not found
checking for Linux clock_gettime(CLOCK_REALTIME_COARSE) ... found
checking for FreeBSD clock_gettime(CLOCK_REALTIME_FAST) ... found
checking for clock_gettime(CLOCK_REALTIME) ... found
checking for Linux clock_gettime(CLOCK_MONOTONIC_COARSE) ... found
checking for FreeBSD clock_gettime(CLOCK_MONOTONIC_FAST) ... found
checking for clock_gettime(CLOCK_MONOTONIC) ... found
checking for HP-UX hg_gethrtime() ... not found
checking for struct tm.tm_gmtoff ... found
checking for altzone ... not found
checking for localtime_r() ... found
checking for pthread_yield() ... found
checking for sem_timedwait() ... found
checking for __thread ... found
checking for Linux epoll ... not found
checking for kqueue ... found
checking for kqueue EVFILT_USER ... found
checking for Solaris event port ... not found
checking for /dev/poll ... not found
checking for AIX pollset ... not found
checking for AF_INET6 ... found
checking for sockaddr.sa_len ... found
checking for struct sockaddr size ... 16
checking for struct sockaddr_in size ... 16
checking for struct sockaddr_in6 size ... 28
checking for struct sockaddr_un size ... 106
checking for struct sockaddr_storage size ... 128
checking for socketpair(AF_UNIX, SOCK_SEQPACKET) ... found
checking for struct msghdr.msg_control ... found
checking for sockopt SO_PASSCRED ... not found
checking for struct cmsgcred ... found
checking for sys/filio.h ... found
checking for ioctl(FIONBIO) ... found
checking for socket(SOCK_NONBLOCK) ... found
checking for accept4() ... found
checking for Linux sendfile() ... not found
checking for FreeBSD sendfile() ... found
checking for posix_fadvise() ... found
checking for fcntl(F_READAHEAD) ... found
checking for fcntl(F_RDAHEAD) ... found
checking for openat2() ... not found
checking for getrandom() ... found
checking for ucontext ... found
checking for dlopen() ... found
checking for setproctitle() ... found
checking for getgrouplist() ... found
checking for OpenSSL library ... found
checking for OpenSSL version ... "OpenSSL 3.5.1 1 Jul 2025"
checking for OpenSSL SSL_CONF_cmd() ... found
checking for OpenSSL tlsext support ... found
checking for PCRE2 library ... found
 + PCRE2 version: 10.45
checking for Linux unshare() ... not found
checking for Linux pivot_root() ... not found
checking for <mntent.h> ... not found
checking for prctl(PR_SET_NO_NEW_PRIVS) ... not found
checking for prctl(PR_SET_CHILD_SUBREAPER) ... not found
checking for Linux mount() ... not found
checking for FreeBSD nmount() ... found
checking for Linux umount2() ... not found
checking for unmount() ... found
checking for Linux capability ... not found
checking for Linux sched_getaffinity() ... found
creating build/Makefile

Unit configuration summary:

  bin directory: ............. "/usr/local/bin"
  sbin directory: ............ "/usr/local/sbin"
  lib directory: ............. "/usr/local/lib"
  include directory: ......... "/usr/local/include"
  pkgconfig directory: ....... "/usr/local/share/pkgconfig"
  man pages directory: ....... "/usr/local/share/man"
  modules directory: ......... "/usr/local/libexec/unit/modules"
  state directory: ........... "/var/db/unit"
  tmp directory: ............. "/var/tmp/unit"

  pid file: .................. "/var/run/unit/unit.pid"
  log file: .................. "/var/log/unit/unit.log"

  control API socket: ........ "unix:/var/run/unit/control.unit.sock"

  non-privileged user: ....... "www"
  non-privileged group: ...... "www"

  IPv6 support: .............. YES
  Unix domain sockets support: YES
  TLS support: ............... YES
  Regex support: ............. YES
  njs support: ............... NO
  otel support: .............. NO

  process isolation: ......... NO
  cgroupv2: .................. NO

  debug logging: ............. NO

  fuzz engine: ............... ""

cd /wrkdirs/usr/ports/www/unit-php/work-php85/unit-1.34.2 &&  /usr/bin/env MAKE=/usr/local/bin/gmake XDG_DATA_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85/.cache  HOME=/wrkdirs/usr/ports/www/unit-php/work-php85 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/unit-php/work-php85/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/unit-php/work-php85/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh ./configure php  --lib-path=/usr/local/lib  --module=php85
configuring PHP module
checking for PHP ... found
 + PHP SAPI: [cli embed fpm phpdbg cgi]
checking for PHP version ...Segmentation fault (core dumped)
 not found
checking for PHP embed SAPI ... found
checking for PHP Zend Thread Safety ... not found
checking for PHP zend_signal_startup() ... found
 + PHP module: php85.unit.so
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for unit-php85-1.34.2_2
cd /wrkdirs/usr/ports/www/unit-php/work-php85/unit-1.34.2 &&  /usr/bin/env OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/unit-php/work-php85/.cache  HOME=/wrkdirs/usr/ports/www/unit-php/work-php85 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/unit-php/work-php85/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/unit-php/work-php85/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS="  " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing   " BSD_I
NSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/local/bin/gmake -f  Makefile DESTDIR=/wrkdirs/usr/ports/www/unit-php/work-php85/stage php85
gmake[1]: Entering directory '/wrkdirs/usr/ports/www/unit-php/work-php85/unit-1.34.2'
  VER    build/include/nxt_version.h (NXT_VERSION)
build/bin/echo '#define NXT_VERSION "1.34.2"' > build/include/nxt_version.h
  VER    build/include/nxt_version.h (NXT_VERNUM)
build/bin/echo '#define NXT_VERNUM  13402' >> build/include/nxt_version.h
  CC     build/src/nxt_unit.o
cc -c -pipe -fPIC -fvisibility=hidden -fno-strict-overflow -funsigned-char -std=gnu11 -O -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -fno-strict-aliasing -Wstrict-overflow=5 -Wmissing-prototypes -Werror -g  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -I src -I build/include   \
                      \
                    -I/usr/local/include \
-o build/src/nxt_unit.o \
-MMD -MF build/src/nxt_unit.dep -MT build/src/nxt_unit.o \
src/nxt_unit.c
  CC     build/src/nxt_php_sapi-php85.o
cc -c -pipe -fPIC -fvisibility=hidden -fno-strict-overflow -funsigned-char -std=gnu11 -O -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -fno-strict-aliasing -Wstrict-overflow=5 -Wmissing-prototypes -Werror -g  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -I src -I build/include \
-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DNXT_ZEND_SIGNAL_STARTUP=1 \
-MMD -MF build/src/nxt_php_sapi-php85.dep -MT build/src/nxt_php_sapi-php85.o \
-o build/src/nxt_php_sapi-php85.o src/nxt_php_sapi.c
src/nxt_php_sapi.c:714:37: error: no member named 'disable_classes' in 'struct _php_core_globals'
  714 |                                 &PG(disable_classes),
      |                                  ~~~^~~~~~~~~~~~~~~~
/usr/local/include/php/main/php_globals.h:31:30: note: expanded from macro 'PG'
   31 | # define PG(v) (core_globals.v)
      |                 ~~~~~~~~~~~~ ^
src/nxt_php_sapi.c:715:33: error: use of undeclared identifier 'zend_disable_class'
  715 |                                 zend_disable_class);
      |                                 ^
2 errors generated.
gmake[1]: *** [build/Makefile:2107: build/src/nxt_php_sapi-php85.o] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/unit-php/work-php85/unit-1.34.2'
*** Error code 2

Stop.
make: stopped making "build" in /usr/ports/www/unit-php