[issue41949] Redefinition of HMAC functions prevents static linking

2021-07-17 Thread Gregory Szorc
Gregory Szorc added the comment: I think this was effectively fixed in 3.10 via commit 39258d3595300bc7b952854c915f63ae2d4b9c3e / bpo-43669, which removed code creating the duplicate symbols. It is still a problem in 3.9. But possibly not worth the backport. --

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-06 Thread Christian Heimes
Christian Heimes added the comment: It looks like LibreSSL is finally adding OpenSSL 1.1.1 APIs after all. This is a good move but also breaks assumptions. Please note that compiling Python with LibreSSL is completely untested and unmaintained. --

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Gregory Szorc added the comment: My workaround was to remove `|| defined(LIBRESSL_VERSION_NUMBER)`. That works with LibreSSL 3.1.4. I'm unsure if the symbols were introduced in a specific version though. But since python-build-standalone pins all dependencies, this is a safe patch for me.

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note these are guarded by #if (OPENSSL_VERSION_NUMBER < 0x1010L) || defined(LIBRESSL_VERSION_NUMBER) which suggests that needs to tweaked -- nosy: +benjamin.peterson ___ Python tracker

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Gregory Szorc added the comment: I was going to work around this in python-build-standalone (https://github.com/indygreg/python-build-standalone) by reverting to OpenSSL for builds. But we must use LibreSSL when linking against musl libc due to some random weirdness getting OpenSSL to

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Change by Gregory Szorc : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
Change by Gregory Szorc : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-05 Thread Gregory Szorc
New submission from Gregory Szorc : Commit 54f2898fe7e4ca1f239e96284af3cc5b34d2ae02 (bpo-40645) introduced the functions HMAC_CTX_new, HMAC_CTX_free, and HMAC_CTX_get_md. These functions share the same names as HMAC functions provided by OpenSSL/LibreSSL. If you attempt to statically link