[package - 135amd64-default][filesystems/nbd-client-kmod] Failed for nbd-client-kmod-g20251201.1305000 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 23 Dec 2025 19:51:09 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:     dtxdf@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy16/data/135amd64-default/a7ae0233f66f/logs/nbd-client-kmod-g20251201.1305000.log
Build URL:      https://pkg-status.freebsd.org/beefy16/build.html?mastername=135amd64-default&build=a7ae0233f66f
Log:

=>> Building filesystems/nbd-client-kmod
build started at Tue Dec 23 19:51:05 -00 2025
port directory: /usr/ports/filesystems/nbd-client-kmod
package name: nbd-client-kmod-g20251201.1305000
building for: FreeBSD 135amd64-default-job-07 13.5-RELEASE-p8 FreeBSD 13.5-RELEASE-p8 amd64
maintained by: dtxdf@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  958 Dec  9 01:03 /usr/ports/filesystems/nbd-client-kmod/Makefile
Ports top last git commit: a7ae0233f66f482aa49743f371c73aa581777b5c
Ports top unclean checkout: no
Port dir last git commit: d460616e1ffabd63527d8f87f73cb54e25f6e897
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.4-15-g61aba751
Host OSVERSION: 1600000
Jail OSVERSION: 1305000
Job Id: 07

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1305000
UNAME_v=FreeBSD 13.5-RELEASE-p8
UNAME_r=13.5-RELEASE-p8
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.4-15-g61aba751
MASTERMNT=/usr/local/poudriere/data/.m/135amd64-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/135amd64-default/07/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=135amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/135amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.4-15-g61aba751
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

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

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
dtxdf@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.cache  HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
GEOM_CLASS_DIR="/usr/local/lib/geom"  MANDIR="/usr/local/share/man/man" KMODDIR="/boot/modules" SYSDIR="/usr/src/sys" NO_XREF=yes OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.cache  HOME=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/.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  -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS="  " LIBS=""  C
XX="c++" CXXFLAGS="-O2 -pipe -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--
KMODDIR="boot/modules" OSREL=13.5 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/nbd-client"  EXAMPLESDIR="share/examples/nbd-client"  DATADIR="share/nbd-client"  WWWDIR="www/nbd-client"  ETCDIR="etc/nbd-client"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/nbd-client DOCSDIR=/usr/local/share/doc/nbd-client EXAMPLESDIR=/usr/local/share/examples/nbd-client  WWWDIR=/usr/local/www/nbd-client ETCDIR=/usr/local/etc/nbd-client
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# 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)  33554432
stack size              (kbytes, -s)  524288
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
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD2CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   nbd-client-kmod-g20251201.1305000 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.5.0.pkg
[135amd64-default-job-07] Installing pkg-2.5.0...
[135amd64-default-job-07] Extracting pkg-2.5.0: .......... done
===>   nbd-client-kmod-g20251201.1305000 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of nbd-client-kmod-g20251201.1305000
===========================================================================
=======================<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 BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by nbd-client-kmod-g20251201.1305000 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by nbd-client-kmod-g20251201.1305000 for building
=> SHA256 Checksum OK for ryan-moeller-kernel-nbd-client-g20251201-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f_GH0.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 BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by nbd-client-kmod-g20251201.1305000 for building
===>  Extracting for nbd-client-kmod-g20251201.1305000
=> SHA256 Checksum OK for ryan-moeller-kernel-nbd-client-g20251201-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f_GH0.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 nbd-client-kmod-g20251201.1305000
===>  Applying FreeBSD patches for nbd-client-kmod-g20251201.1305000 from /usr/ports/filesystems/nbd-client-kmod/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for nbd-client-kmod-g20251201.1305000
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for nbd-client-kmod-g20251201.1305000
--- all_subdir_lib ---
===> lib (all)
--- objwarn ---
Warning: Object directory not changed from original /wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/kernel-nbd-client-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f/lib
--- geom_nbd.pico ---
--- subr.pico ---
--- hostcheck.pico ---
--- geom_nbd.pico ---
cc -fpic -DPIC  -O2 -pipe  -fno-strict-aliasing  -I/usr/src/sbin/geom -I../mod -I/usr/src/contrib/libevent/sample -DWITH_OPENSSL   -MD  -MF.depend.geom_nbd.pico -MTgeom_nbd.pico -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/19/include -fstack-protector-strong    -Qunused-arguments    -c geom_nbd.c -o geom_nbd.pico
--- subr.pico ---
cc -fpic -DPIC  -O2 -pipe  -fno-strict-aliasing  -I/usr/src/sbin/geom -I../mod -I/usr/src/contrib/libevent/sample -DWITH_OPENSSL   -MD  -MF.depend.subr.pico -MTsubr.pico -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/19/include -fstack-protector-strong    -Qunused-arguments    -c /usr/src/sbin/geom/misc/subr.c -o subr.pico
--- hostcheck.pico ---
cc -fpic -DPIC  -O2 -pipe  -fno-strict-aliasing  -I/usr/src/sbin/geom -I../mod -I/usr/src/contrib/libevent/sample -DWITH_OPENSSL   -MD  -MF.depend.hostcheck.pico -MThostcheck.pico -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/19/include -fstack-protector-strong    -Qunused-arguments    -c /usr/src/contrib/libevent/sample/hostcheck.c -o hostcheck.pico
--- geom_nbd.pico ---
geom_nbd.c:202:24: warning: call to undeclared function 'SSL_CTX_load_verify_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
<snip>
      |        ^
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:77:41: note: expanded from macro 'COUNTER_U64_SYSINIT'
   77 |             SI_ORDER_ANY, counter_u64_sysinit, &c);             \
      |                                                ^
g_nbd.c:92:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |         ^
g_nbd.c:92:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:9: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |                ^
g_nbd.c:92:8: error: expected identifier
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:79:43: note: expanded from macro 'COUNTER_U64_SYSINIT'
   79 |             SI_ORDER_ANY, counter_u64_sysuninit, &c)
      |                                                  ^
g_nbd.c:92:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |         ^
g_nbd.c:92:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:11: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |                  ^
g_nbd.c:96:8: error: expected identifier
   96 | static COUNTER_U64_DEFINE_EARLY(g_nbd_enomems);
      |        ^
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:77:41: note: expanded from macro 'COUNTER_U64_SYSINIT'
   77 |             SI_ORDER_ANY, counter_u64_sysinit, &c);             \
      |                                                ^
g_nbd.c:96:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |         ^
g_nbd.c:96:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:9: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |                ^
g_nbd.c:96:8: error: expected identifier
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:79:43: note: expanded from macro 'COUNTER_U64_SYSINIT'
   79 |             SI_ORDER_ANY, counter_u64_sysuninit, &c)
      |                                                  ^
g_nbd.c:96:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |         ^
g_nbd.c:96:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:11: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |                  ^
g_nbd.c:100:8: error: expected identifier
  100 | static COUNTER_U64_DEFINE_EARLY(g_nbd_write_truncs);
      |        ^
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:77:41: note: expanded from macro 'COUNTER_U64_SYSINIT'
   77 |             SI_ORDER_ANY, counter_u64_sysinit, &c);             \
      |                                                ^
g_nbd.c:100:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |         ^
g_nbd.c:100:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:9: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |                ^
g_nbd.c:100:8: error: expected identifier
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:79:43: note: expanded from macro 'COUNTER_U64_SYSINIT'
   79 |             SI_ORDER_ANY, counter_u64_sysuninit, &c)
      |                                                  ^
g_nbd.c:100:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |         ^
g_nbd.c:100:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:11: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |                  ^
g_nbd.c:104:8: error: expected identifier
  104 | static COUNTER_U64_DEFINE_EARLY(g_nbd_read_truncs);
      |        ^
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:77:41: note: expanded from macro 'COUNTER_U64_SYSINIT'
   77 |             SI_ORDER_ANY, counter_u64_sysinit, &c);             \
      |                                                ^
g_nbd.c:104:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |         ^
g_nbd.c:104:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:76:9: note: expanded from macro 'COUNTER_U64_SYSINIT'
   76 |         SYSINIT(c##_counter_sysinit, SI_SUB_COUNTER,            \
      |                ^
g_nbd.c:104:8: error: expected identifier
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:79:43: note: expanded from macro 'COUNTER_U64_SYSINIT'
   79 |             SI_ORDER_ANY, counter_u64_sysuninit, &c)
      |                                                  ^
g_nbd.c:104:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:2: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |         ^
g_nbd.c:104:8: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
/usr/src/sys/sys/counter.h:83:2: note: expanded from macro 'COUNTER_U64_DEFINE_EARLY'
   83 |         COUNTER_U64_SYSINIT(c)
      |         ^
/usr/src/sys/sys/counter.h:78:11: note: expanded from macro 'COUNTER_U64_SYSINIT'
   78 |         SYSUNINIT(c##_counter_sysuninit, SI_SUB_COUNTER,        \
      |                  ^
g_nbd.c:608:3: error: call to undeclared function 'SOCK_SENDBUF_LOCK'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  608 |                 SOCK_SENDBUF_LOCK(so);
      |                 ^
g_nbd.c:611:5: error: call to undeclared function 'SOCK_SENDBUF_UNLOCK'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  611 |                                 SOCK_SENDBUF_UNLOCK(so);
      |                                 ^
g_nbd.c:642:29: error: call to undeclared function 'SOCK_SENDBUF_MTX'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  642 |                         cv_wait(&nc->nc_send_cv, SOCK_SENDBUF_MTX(so));
      |                                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
*** [g_nbd.o] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/kernel-nbd-client-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f/mod
1 error

make[1]: stopped in /wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/kernel-nbd-client-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f/mod

make: stopped in /wrkdirs/usr/ports/filesystems/nbd-client-kmod/work/kernel-nbd-client-bb633716de4de2d228cc69bea1e7fa21e3dfcb8f
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/filesystems/nbd-client-kmod