The libunbound library from the Unbound package provides an API for validating, recursing, and caching DNS addresses. Unbound can provide issues with Systemd, although some packages require the library. BLFS has removed the package from the Systemd edition, leaving packages that need it in the dark. This provides the component that packages need. The daemon itself shouldn't be needed.
Make the package compatible with OpenSSL-4 by applying a patch:
patch -Np1 -i ../unbound-1.25.1-openssl4-1.patch
Install libunbound by running the following commands:
CFLAGS+=" -I/usr/include/nss" \
CFLAGS+=" -I/usr/include/nspr" \
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static &&
make lib &&
make unbound-anchor
Now, as the root user:
make install-lib && install -vDm755 .libs/unbound-anchor -t /usr/bin/ && install -vdm755 /etc/unbound && unbound-anchor
--with-libevent: This option enables
libevent support, which allows for the use of large outgoing port
ranges.