Open imhmao opened 3 years ago
I got the same linker errors. It seems that the wolfssl was built using old toolchain 4.8.5, but should be rebuilt with new toolchain 8.4.0. The old toolchain contains the missing symbol:
$ xtensa-lx106-elf-nm -C --defined-only -g xtensa-lx106-elf-4.8.5/xtensa-lx106-elf/lib/libc.a | grep __ctype_ptr__ || echo not found
00000000 D __ctype_ptr__
but new one does not:
$ xtensa-lx106-elf-nm -C --defined-only -g xtensa-lx106-elf/xtensa-lx106-elf/lib/libc.a | grep __ctype_ptr__ || echo not found
not found
Could you please take a look at it and check if wolfssl binary rebuilt with new toolchain is required? I guess new binary can only be provided by espressif. I also tried to take library from esp-wolfssl repo which seems to be newer, but the integer.o fails as well.
Same problem happens on Mac system.
Could anyone from Expressif help to commit a bug fix for this
I solved by implementing my own CTYPE, which wolfSSL allows you to do:
in user_settings.h
#define CTYPE_USER
#define XTOLOWER toLower
#define XTOUPPER toUpper
hi,friend,i try your idea,but the question is also exist.
msys32 + xtensa-lx106-elf 8.4.0 wolfssl examples\wolfssl_client 编译通不过