Skip to content

build failed: artik053 with grpc  #6341

@jinliangluo

Description

@jinliangluo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions