Hi,
i’ve tried to use mbed-client-for-azure, but right from the start I crashed on build problem.
Compilation ended without any error, but when my program was linked, I’ve got a lot of errors like that:
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_add_source (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_close_notify (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_min_version (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_own_cert (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_renegotiation (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_session_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_session_reset (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_session (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Warning: L3912W: Option 'legacyalign' is deprecated.
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_add_source (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_close_notify (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_min_version (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_own_cert (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_renegotiation (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_session_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_session_reset (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_session (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Finished: 0 information, 1 warning and 29 error messages.
[ERROR] Warning: L3912W: Option 'legacyalign' is deprecated.
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_add_source (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_close_notify (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_min_version (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_own_cert (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_renegotiation (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_session_init (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_session_reset (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_session (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Error: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/NUCLEO_F446RE/ARMC6/mbed-client-for-azure/dependencies/c-utility/adapters/tlsio_mbedtls.o).
Finished: 0 information, 1 warning and 29 error messages.
The only line I added to main.cpp from example is:
#include “ESP8266Interface.h”
and I defined some options for ESP8266 in mbed_app.json. This options i used with my other app, and they worked well. Below is my mbed_app.json and
{
"config": {
"iothub_client_trace": {
"help": "Enable IoT Hub Client tracing",
"value": false
}
},
"target_overrides": {
"*": {
"target.printf_lib": "std",
"platform.stdio-convert-newlines": true,
"platform.stdio-convert-tty-newlines": true,
"platform.stdio-baud-rate": 115200,
"platform.default-serial-baud-rate": 115200,
"mbed-trace.enable": 1,
"target.network-default-interface-type": "WIFI",
"nsapi.default-wifi-security": "WPA_WPA2",
"nsapi.default-wifi-ssid": "\"myssid\"",
"nsapi.default-wifi-password": "\"mypass\""
},
"NUCLEO_F446RE": {
"esp8266.rx": "PA_10",
"esp8266.tx": "PA_9",
"esp8266.rts": "PA_12",
"esp8266.cts": "PA_11",
"esp8266.rst": "PA_8",
"esp8266.socket-bufsize": 8192,
"esp8266.debug": true,
"esp8266.provide-default": true
}
}
}
Need some advice.
Thanks in advance.
Marek