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

build failed: artik053 with grpc #6341

Open
jinliangluo opened this issue Aug 15, 2024 · 0 comments
Open

build failed: artik053 with grpc #6341

jinliangluo opened this issue Aug 15, 2024 · 0 comments

Comments

@jinliangluo
Copy link

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:

  1. 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;

  1. 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);

  2. 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

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

No branches or pull requests

1 participant