When building Emacs, I hit: ``` /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_ge t_attribute@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_space_ strdup@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_ma tch_module_info@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_strerr or@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_pa rse@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_fr ee@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_iter_f ree@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_messag e@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_se t_attribute@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_uri_ge t_pin_source@LIBP11_KIT_1.0' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/libgnutls.so: undefined reference to `p11_kit_module s_load_and_initialize@LIBP11_KIT_1.0' ``` (using bfd for Emacs, but I'd used mold for gnutls and I think p11-kit.)
I'm not debugging this right now, I plan to come back to it but someone else can/should if they want to.
``` $ rg mold:.* gnutls-3.8.* [...] 9707:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_FIPS140_3_4` to symbol `_gnutls_dh_compute_key`: symbol not found 9708:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_FIPS140_3_4` to symbol `_gnutls_dh_generate_key`: symbol not found 9709:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_FIPS140_3_4` to symbol `_gnutls_ecdh_generate_key`: symbol not found 9710:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_FIPS140_3_4` to symbol `_gnutls_ecdh_compute_key`: symbol not found 9711:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_PRIVATE_3_4` to symbol `_gnutls_pbkdf2_sha1`: symbol not found 9712:mold: warning: /var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/libgnutls.map: cannot assign version `GNUTLS_PRIVATE_3_4` to symbol `_gnutls_mpi_release`: symbol not found 18740:mold: warning: symbol type mismatch: err 19079:mold: warning: symbol type mismatch: err 19602:mold: warning: symbol type mismatch: err 20128:mold: warning: symbol type mismatch: err [...] ```