On 17 Feb 2025, at 11:13, Graham Leggett <[email protected]> wrote:

> When linking to the unbound library in code that depends on unbound, three 
> packages are reported missing.
> 
> checking for libunbound >= 1.16... no
> configure: error: Package requirements (libunbound >= 1.16) were not met:
> 
> Package 'hogweed', required by 'libunbound', not found
> Package 'nettle', required by 'libunbound', not found
> Package 'libevent', required by 'libunbound', not found
> 
> The build dependencies need to be updated to include these packages.

This bug blocks the build of Bug#1099076.

It looks like the pkconfig file has dependencies in it that shouldn't be there:

minfrin@debian12:~/test$ cat /usr/lib/x86_64-linux-gnu/pkgconfig/libunbound.pc 
prefix=/usr
exec_prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: unbound
Description: Library with validating, recursive, and caching DNS resolver
URL: http://www.unbound.net
Version: 1.17.1
Requires.private:   hogweed nettle libevent
Libs: -L${libdir} -lunbound
Libs.private:  -levent  -lhogweed -lnettle -lgmp
Cflags: -I${includedir}

Most specifically, everything in Libs.private.

This causes packages that depend on libunbound to fail as follows:

checking pkg-config is at least version 0.9.0... yes
checking for openssl >= 1.0.2... yes
checking for openssl/pem.h... yes
checking for nss >= 3.11... yes
checking for p11-kit-1... yes
checking for libical >= 0.40... yes
checking for libical/ical.h... yes
checking for ldns >= 1.7.0... yes
checking for ldns/ldns.h... yes
checking for libunbound >= 1.16... no
configure: error: Package requirements (libunbound >= 1.16) were not met:

Package 'libevent', required by 'libunbound', not found

Regards,
Graham
--

Reply via email to