HaxeFoundation / HaxeFoundation/hashlink
MbedTLS linking issues with HashLink binaries on Linux
- Dominant language
- C
- Stars
- 901
- Forks
- 201
- Avg merge
- 18h 9m
- Merged PRs (30d)
- 8
Description
Since the binaries are currently compiled on Ubuntu 18.04 which has mbedtls 2.8.0, ssl.hdll is linked to `libmbedtls.so.10`. Ubuntu 20.04 has `libmbedtls.so.12`, and Ubuntu 22.04 has `libmbedtls.so.14`, which is the current version for MbedTLS 2. This means that if hashlink continues to link mbedtls dynamically, the binaries cannot work on all versions of Linux at once. Even MbedTLS 3 seems to change the .so name with every minor release: https://abi-laboratory.pro/?view=timeline&l=mbedtls
We could start linking mbedtls statically, but that means the mbedtls version will be stuck at whatever hashlink was compiled with, which is a security concern.
This is possibly the root cause of issues like #590.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.