-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build mbedtls shared library #9275
Comments
Hi @Ra2-IFV and thanks for your report. With the details you provided I was able to reproduce the build failure. Another way to reproduce (which I'd say points to a gap in our testing) is to add From a cursory glance I'd say use of |
Note: the PR that introduced this program was merged in 3.1.0 so I don't think this is new in 3.6 (to be confirmed). |
About dlopen and platform functions
It's true that any platform that has The full test — which we aren't doing because #2698 is unfinished — is to check that we can compile and run a program that uses the shared library.
This works in the default configuration, but not in configurations that rely on custom implementations on platform functions. Platform functions can be provided in a variety of ways:
In summary, this is a bug in our build scripts (both make and cmake), which is hard to resolve. About the
|
Seems fair to me. I'm almost tempted to consider it "won't fix" - but then document it. Like, Also, I think in
@Ra2-IFV out of curiosity, how did you come to use |
Hi, thanks for your kindness and quick response! |
Tried all options and only |
You have nothing to apologise for: if you had taken more time to read more docs I'm not sure you'd have found anything about this anyway - in fact I'm preparing a small PR about that. Regarding the original issue, if you have TLS connections that were working before 3.6.0 and are now failing, I'd recommend having a look at #9223 - unfortunately we missed quite a few backwards compatibility concerns when enabling TLS 1.3 by default in 3.6 and that has been causing issues for several users. Hopefully this should be all fixed in 3.6.1 (no firm date yet, but should be next quarter). |
Thanks, I already read that. At least there is a workaround in curl and works as expected, so I can still enjoy the benefits of mbedtls. |
Summary
Failed to build mbedtls shared library.
System information
Mbed TLS version (number or commit id): 3.6.0
Operating system and version: Debian 12.2 in VirtualBox
Configuration (if not default, please attach
mbedtls_config.h
):full
with config.pyCompiler and options (if you used a pre-built binary, please indicate how you obtained it): gcc version 12.2.0 (Debian 12.2.0-14)
Additional environment information:
Command
cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/build -DENABLE_TESTING=OFF -DENABLE_PROGRAMS=ON -DUSE_SHARED_MBEDTLS_LIBRARY=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON .
make
Log
The text was updated successfully, but these errors were encountered: