-
Notifications
You must be signed in to change notification settings - Fork 612
Description
Hi, I tried to build project with dbuild.sh script, select artik053 and gRpc, failed when compiling and multiple errors reported. Is it a bug?
TizenRT commit-id: 2901b73
Develop environment:
Ubuntu 20.04.1, gcc/g++: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, and gRpc use v1.9.x recommended in external/grpc/readme.md
Compile Errors:
- Undefined MBEDTLS_SSL_MAX_CONTENT_LEN
make[2]: Entering directory '/root/tizenrt/external/grpc'
CXX: src/core/tsi/ssl_transport_security.cc
src/core/tsi/ssl_transport_security.cc: In function 'tsi_ssl_ctx* SSL_CTX_init(tsi_mode_t)':
src/core/tsi/ssl_transport_security.cc:176:31: error: 'MBEDTLS_SSL_MAX_CONTENT_LEN' was not declared in this scope
ssl_ctx->out_ssl.buf_size = MBEDTLS_SSL_MAX_CONTENT_LEN;
-
mbedtls_pk_parse_key arguments error
src/core/tsi/ssl_transport_security.cc:597:91: error: too few arguments to function 'int mbedtls_pk_parse_key(mbedtls_pk_context*, const unsigned char*, size_t, const unsigned char*, size_t, int ()(void, unsigned char*, size_t), void*)'
ret = mbedtls_pk_parse_key(pkey, (const unsigned char *)pem_key, pem_key_size, NULL, 0); -
template with C linkage
make[2]: Entering directory '/root/tizenrt/external/grpc'
CXX: src/core/tsi/ssl_transport_security.cc
CXX: src/cpp/client/insecure_credentials.cc
In file included from /root/tizenrt/external/include/grpc++/impl/codegen/byte_buffer.h:26:0,
from /root/tizenrt/external/include/grpc++/impl/codegen/call.h:28,
from /root/tizenrt/external/include/grpc++/impl/call.h:22,
from /root/tizenrt/external/include/grpc++/channel.h:24,
from src/cpp/client/insecure_credentials.cc:21:
/root/tizenrt/external/include/grpc++/impl/codegen/serialization_traits.h:56:1: error: template with C linkage
template <class Message,
^~~~~~~~
In file included from /root/tizenrt/external/include/grpc++/impl/codegen/call.h:28:0,
from /root/tizenrt/external/include/grpc++/impl/call.h:22,
from /root/tizenrt/external/include/grpc++/channel.h:24,
from src/cpp/client/insecure_credentials.cc:21:
/root/tizenrt/external/include/grpc++/impl/codegen/byte_buffer.h:36:1: error: template with C linkage
template