/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o):(.text.nopoll_base64_encode+0x0): undefined reference to
base64_encode' /mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In function
nopoll_base64_encode':
(.text.nopoll_base64_encode+0x16): undefined reference tobase64_encode' /mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o):(.text.nopoll_cleanup_library+0x4): undefined reference to
EVP_cleanup'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o):(.text.nopoll_cleanup_library+0x8): undefined reference toCRYPTO_cleanup_all_ex_data' /mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o):(.text.nopoll_cleanup_library+0xc): undefined reference to
ERR_free_strings'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In functionnopoll_cleanup_library': (.text.nopoll_cleanup_library+0x1e): undefined reference to
EVP_cleanup'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In functionnopoll_cleanup_library': (.text.nopoll_cleanup_library+0x24): undefined reference to
CRYPTO_cleanup_all_ex_data'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In functionnopoll_cleanup_library': (.text.nopoll_cleanup_library+0x2a): undefined reference to
ERR_free_strings'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll_conn.o):(.text.__nopoll_conn_ssl_verify_callback+0x0): undefined reference toX509_STORE_CTX_get_current_cert' /mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll_conn.o):(.text.__nopoll_conn_ssl_verify_callback+0x4): undefined reference to
X509_get_issuer_name'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll_conn.o):(.text.__nopoll_conn_ssl_verify_callback+0x8): undefined reference toX509_NAME_oneline' /mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll_conn.o):(.text.__nopoll_conn_ssl_verify_callback+0xc): undefined reference to
X509_get_subject_name'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll_conn.o): In function__nopoll_conn_ssl_verify_callback': (.text.__nopoll_conn_ssl_verify_callback+0x26): undefined reference to
X509_STORE_CTX_get_current_cert'
After I replace the libssl with the libmedtls and libopenssl in websocket_demo\Makefile
old: -lssl \
-->
new: -lmbedtls \
new: -lopenssl \
And I also change the the include file in websocket.c as below:
old: #include "ssl_compat-1.0.h"
-->
new: #include "openssl/ssl.h"
Then I can compile the demo successfully. And it looks running OK.
So I think there are bug in this demo of RTOS SDK V 2.0.0, I hope Espressif can fix such error when release next version.
Thanks!