[gnutls-devel] GnuTLS | static linking: multiple definition of `mpn_cnd_add_n' (#1552)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun May 26 00:39:36 CEST 2024




Daiki Ueno commented: https://gitlab.com/gnutls/gnutls/-/issues/1552#note_1922035983


My theory is something like the following:
- in gnutls/lib/nettle/int/dsa-compute-k.c, we use `#ifdef mpn_cnd_add_n` to detect whether `mpn_cnd_add_n` is available in GMP
- on the other hand, nettle/gmp-glue.c defines the function anyway (not as a macro) when `NETTLE_USE_MINI_GMP` is true
- when linking libgnutls.a with libgmp.a, where `mpn_cnd_add_n` is present, the code is copied and linked
- then it clashes with nettle's definition

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1552#note_1922035983
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20240525/715da37c/attachment-0001.html>


More information about the Gnutls-devel mailing list