Closed Chiitoo closed 4 years ago
I've encountered this exact problem in #2149. The reason for this error is that when you built mbedtls, you let mbedcrypto overwrite the mbedtls headers with its own version. The mbedcrypto headers are meant as a reference implementation, not as a replacement for mbedtls.
This only appears if you build mbedtls with CMake, and should work fine if mbedtls is built with Make.
A-ha!
So this seems to be an mbedtls upstream issue, and it looks like it's reported there already:
https://github.com/ARMmbed/mbedtls/issues/2965
I guess that leaves the missing include, unless that will also be fixed upstream.
Thanks!
Given that this seems to be an issue with a dependencies upstream I will close this for now. Feel free to reopen if the issue still persists after they fix things.
Expected Behavior
Compiling succeeds.
Current Behavior
Above can be fixed with a simple '#include <mbedtls/x509_crt.h>', but next there are some -Werror hits:
There's a patch in Gentoo bug 703426 [1], but it looks more like a workaround to me, though I'm not entirely sure about the details.
Steps to Reproduce
Additional information