Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937990 - net-libs/gnutls-3.8.6-r1: building with mold leads to broken underlinked library wrt app-crypt/p11-kit symbols
Summary: net-libs/gnutls-3.8.6-r1: building with mold leads to broken underlinked libr...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2024-08-15 20:43 UTC by Sam James
Modified: 2024-08-15 20:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 20:43:50 UTC
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.)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 20:45:55 UTC
I'm not debugging this right now, I plan to come back to it but someone else can/should if they want to.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 20:49:51 UTC
```
$ 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
[...]
```