Build fails with p11-kit 0.23.2
Building GnuTLS 3.8.5 with p11-kit 0.24.0 fails with:
$ /dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/gnutls --exec-prefix=/usr --with-included-libtasn1
checking for p11-kit-1 >= 0.23.1... yes
[…]
In file included from /dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:47:
/usr/include/p11-kit-1/p11-kit/iter.h:57:62: error: unknown type name 'CK_BBOOL'
57 | CK_BBOOL *matches,
| ^~~~~~~~
/usr/include/p11-kit-1/p11-kit/iter.h:66:62: error: unknown type name 'p11_kit_iter_callback'; did you mean 'p11_kit_pin_callback'?
66 | p11_kit_iter_callback callback,
| ^~~~~~~~~~~~~~~~~~~~~
| p11_kit_pin_callback
/usr/include/p11-kit-1/p11-kit/iter.h:71:62: error: unknown type name 'CK_ATTRIBUTE'; did you mean 'CK_ATTRIBUTE_PTR'?
71 | CK_ATTRIBUTE *matching,
| ^~~~~~~~~~~~
| CK_ATTRIBUTE_PTR
/usr/include/p11-kit-1/p11-kit/iter.h:82:62: error: unknown type name 'CK_SLOT_ID'
82 | CK_SLOT_ID slot,
| ^~~~~~~~~~
/usr/include/p11-kit-1/p11-kit/iter.h:83:62: error: unknown type name 'CK_SESSION_HANDLE'
83 | CK_SESSION_HANDLE session);
| ^~~~~~~~~~~~~~~~~
/usr/include/p11-kit-1/p11-kit/iter.h:89:1: error: unknown type name 'CK_SLOT_ID'
89 | CK_SLOT_ID p11_kit_iter_get_slot (P11KitIter *iter);
| ^~~~~~~~~~
/usr/include/p11-kit-1/p11-kit/iter.h:91:1: error: unknown type name 'CK_TOKEN_INFO'; did you mean 'CK_TOKEN_INFO_PTR'?
91 | CK_TOKEN_INFO * p11_kit_iter_get_token (P11KitIter *iter);
| ^~~~~~~~~~~~~
| CK_TOKEN_INFO_PTR
/usr/include/p11-kit-1/p11-kit/iter.h:93:1: error: unknown type name 'CK_SESSION_HANDLE'
93 | CK_SESSION_HANDLE p11_kit_iter_get_session (P11KitIter *iter);
| ^~~~~~~~~~~~~~~~~
/usr/include/p11-kit-1/p11-kit/iter.h:95:1: error: unknown type name 'CK_OBJECT_HANDLE'; did you mean 'CKA_OBJECT_ID'?
95 | CK_OBJECT_HANDLE p11_kit_iter_get_object (P11KitIter *iter);
| ^~~~~~~~~~~~~~~~
| CKA_OBJECT_ID
/usr/include/p11-kit-1/p11-kit/iter.h:98:62: error: unknown type name 'CK_ATTRIBUTE'; did you mean 'CK_ATTRIBUTE_PTR'?
98 | CK_ATTRIBUTE *template,
| ^~~~~~~~~~~~
| CK_ATTRIBUTE_PTR
/usr/include/p11-kit-1/p11-kit/iter.h:102:62: error: unknown type name 'CK_ATTRIBUTE'; did you mean 'CK_ATTRIBUTE_PTR'?
102 | CK_ATTRIBUTE *template,
| ^~~~~~~~~~~~
| CK_ATTRIBUTE_PTR
/usr/include/p11-kit-1/p11-kit/iter.h:105:1: error: unknown type name 'CK_SESSION_HANDLE'
105 | CK_SESSION_HANDLE p11_kit_iter_keep_session (P11KitIter *iter);
| ^~~~~~~~~~~~~~~~~
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c: In function 'find_multi_objs_cb':
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3247:9: warning: implicit declaration of function 'p11_kit_iter_add_filter' [-Wimplicit-function-declaration]
3247 | p11_kit_iter_add_filter(iter, a, tot_values);
| ^~~~~~~~~~~~~~~~~~~~~~~
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3247:9: warning: nested extern declaration of 'p11_kit_iter_add_filter' [-Wnested-externs]
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3248:9: warning: implicit declaration of function 'p11_kit_iter_begin_with'; did you mean 'p11_kit_iter_begin'? [-Wimplicit-function-declaration]
3248 | p11_kit_iter_begin_with(iter, sinfo->module, sinfo->sid, sinfo->pks);
| ^~~~~~~~~~~~~~~~~~~~~~~
| p11_kit_iter_begin
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3248:9: warning: nested extern declaration of 'p11_kit_iter_begin_with' [-Wnested-externs]
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3275:22: warning: implicit declaration of function 'p11_kit_iter_get_attributes'; did you mean 'p11_kit_uri_get_attributes'? [-Wimplicit-function-declaration]
3275 | rv = p11_kit_iter_get_attributes(iter, a, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| p11_kit_uri_get_attributes
/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/source/lib/pkcs11.c:3275:22: warning: nested extern declaration of 'p11_kit_iter_get_attributes' [-Wnested-externs]
make[4]: *** [Makefile:2874: pkcs11.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/build/lib'
make[3]: *** [Makefile:2970: all-recursive] Error 1
make[3]: Leaving directory '/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/build/lib'
make[2]: *** [Makefile:2573: all] Error 2
make[2]: Leaving directory '/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/build/lib'
make[1]: *** [Makefile:2327: all-recursive] Error 1
make[1]: Leaving directory '/dev/shm/bee-pmenzel/gnutls/gnutls-3.8.5-0/build'
make: *** [Makefile:2252: all] Error 2