Re: Building GnuTLS with p11-kit

Andreas Metzler <[email protected]> Sun, 10 Aug 2025 11:06:38 +0200
Newsgroups gmane.network.gnutls.general
Message-ID <[email protected]>
On 2025-08-09 Fabiano Sidler <[email protected]> wrote:
> Hi folks!

> I'm trying to build GnuTLS with p11-kit support. While building p11-kit
> itself with the following commands

> =A0 =A0 PREFIX=3D/tmp
> =A0 =A0 P11KIT_VERSION=3D0.25.5
> =A0 =A0 GNUTLS_VERSION=3D3.7.11

> =A0 =A0 wget https://github.com/p11-glue/p11-kit/releases/download/${P11K=
IT_VERSION}/p11-kit-${P11KIT_VERSION}.tar.xz
> =A0 =A0 tar xf p11-kit-${P11KIT_VERSION}.tar.xz
> =A0 =A0 cd p11-kit-${P11KIT_VERSION}
> =A0 =A0 ./configure --prefix=3D${PREFIX}/gnutls --disable-trust-module
> --enable-debug=3Dyes --without-bash-completion
> =A0 =A0 make -j$(nproc)
> =A0 =A0 make install
> =A0 =A0 cd ..

> worked perfectly, building GnuTLS with
[...]

Hello,

You have installed p11-kit into a set of directories which
* are not scanned by pkgconf by default (/usr/gnutls/lib/pkgconfig/),
* whose header subdir are not in the preprocessor's default search path
  (/usr/gnutls/include) and
* whose lib subdir is neither in the compiler/linker's search-path
* nor in the runtime dynamic linker's search-path (/usr/gnutls/lib/)

One can do strange stuff like this but it is completely unrelated to
gnutls how to deal with this. (e.g. static linking, rpath, modifying the
pc file, symlink farm, ...) =


cu Andreas
-- =

`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'