Skip to content
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

Compiling failed! mbedTLS! #2

Open
nano3k0a opened this issue Jan 11, 2023 · 1 comment
Open

Compiling failed! mbedTLS! #2

nano3k0a opened this issue Jan 11, 2023 · 1 comment

Comments

@nano3k0a
Copy link

Hi,

I tried to compile the tlstesttool as described in the README, but got the following error:

/home/Documents/TaSK/tlstesttool/src/tls/mbedtls/TlsSession.cpp: In function ‘std::string TlsTestTool::MbedTls::errorToString(int)’: /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/TlsSession.cpp:144:25: error: ‘str’ may be used uninitialized [-Werror=maybe-uninitialized] 144 | mbedtls_strerror(errorCode, str.data(), str.size()); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/../../tls/TlsNumbers.h:21, from /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/../../tls/TlsHashAlgorithm.h:21, from /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/../../tls/TlsSession.h:25, from /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/TlsSession.h:21, from /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/TlsSession.cpp:18: /usr/include/c++/11/array:176:7: note: by argument 1 of type ‘const std::array<char, 1024>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = char; long unsigned int _Nm = 1024]’ declared here 176 | size() const noexcept { return _Nm; } | ^~~~ /home/Documents/TaSK/tlstesttool/src/tls/mbedtls/TlsSession.cpp:143:32: note: ‘str’ declared here 143 | std::array<char, 1024> str; | ^~~ cc1plus: all warnings being treated as errors gmake[2]: *** [src/tls/mbedtls/CMakeFiles/TlsTestToolTlsMbedTls.dir/build.make:90: src/tls/mbedtls/CMakeFiles/TlsTestToolTlsMbedTls.dir/TlsSession.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:427: src/tls/mbedtls/CMakeFiles/TlsTestToolTlsMbedTls.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2

OS:
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

@nb-2020
Copy link

nb-2020 commented Feb 17, 2023

Hi, thanks for reporting the issue. For reproducing the issue, could you please provide us with the version of CMAKE and the C++ compiler that is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants