当前位置: 首页 > 工具软件 > noPoll > 使用案例 >

esp8266 websocket源码 LINUX下编译报错关于nopoll.c和nopoll_conn.c内部函数未定义问题

长孙文栋
2023-12-01

本文章的问题的解决并不是本人解决的,本文章仅仅作为备忘作用,如有侵权请留言!

/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 functionnopoll_base64_encode':
(.text.nopoll_base64_encode+0x16): undefined reference to base64_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 toEVP_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 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):(.text.nopoll_cleanup_library+0xc): undefined reference toERR_free_strings'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In function nopoll_cleanup_library': (.text.nopoll_cleanup_library+0x1e): undefined reference toEVP_cleanup'
/mnt/c/Users/hongf/Work/04_wslShare/esp8266/ESP8266_RTOS_SDK-2.0.0/lib/libnopoll.a(nopoll.o): In function nopoll_cleanup_library': (.text.nopoll_cleanup_library+0x24): 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): In function nopoll_cleanup_library': (.text.nopoll_cleanup_library+0x2a): undefined reference toERR_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 to X509_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 toX509_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 to X509_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 toX509_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 toX509_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!


 类似资料: