-
Notifications
You must be signed in to change notification settings - Fork 1.2k
WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts' #1147
Comments
I had the same issue, waiting for the solution. update: I had check the esp32 framework tool, and realized that the md5.h file had a small changing, the mbedtls_md5_starts() was removed. I think the radical solution is on the next update on the AsyncWebServer library. update: the WebServer file was use new function mbedtls_md5_starts_ret() instead mbedtls_md5_starts(). |
I just ran into this as well. I forced an older version of the expressif framework in platform.io for now:
|
is there a way to force older version on Arduino IDE? currently my Platform IO is not running in VS Code(separate problem) so i can barely even try |
your compiler crash out .Try reinstall Platformio and delete library folder in .pio/libdeps/ and than uninstall platformio, find this folder espressif32@3.5.0 and also delete ,also dont install ArduinoIDE in VScode when you running Platformio. but first you should try clean button at VScode or clean all (this function clean also librarys so when you use some custom better make copy of .pio/libdeps/ ). I got similar issue with esp8266 . |
super annoying issue, I used the workaround from #1085 to be able to compile my project. Please fix |
I think there may be a versioning issue, v1.2.3 was released 3 years ago My bet is, that platformio will only update their files if you release a new version like 1.2.4 |
https://docs.platformio.org/en/latest/librarymanager/creating.html |
Same issue, won´t write to esp until you switch to expressiv 3.5.0; If you use expressiv 3.5.0, then everything should be fine... |
PlatformIO still gives problems because the version in the json shows as 1.2.3 so Platform doesn't try to update the files. |
Any updates on when this is fixed? |
Hello again
|
That's not solving, that's just a workaround. We need a simple version upgrade and a clean update of the registry files. This can only be done by the maintainer and it takes as little as a minute to solve the whole problem. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Can someone update the library / registry to fix other projects using the old style |
Following this logic by @82andre (thanks) I was able to solve the problem. |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
PlatformIO.ini entry
This solved it for me (rather then the usual |
Thanks for the quick fix: lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git this works for me, took me a while to figure that out.... |
Has there been an update? Don't think so, right? I came across the issue since my GitHub action failed with this error. If I build the project locally with platform io everything works fine.
Would love to use the standard way again and not this workaround. Thanks |
replacing with //platfromio.ini worked. |
@me-no-dev Please see #1147 (comment). |
See me-no-dev/ESPAsyncWebServer#1147 Signed-off-by: qdrk <qdrk@fpvsim.com>
I'm still getting this same error |
You can remove this error in PlatformIO by editing
and remove (comment out) the call to Or just get the library another way like this:
which seems to force the download of the correct version of the library. |
better use mbedtls_md5_starts_ret() instead of commenting out a deprecated method. |
I ran into the same issue. However, only removing/commenting |
I could compiled, but it did not work for me with: it just works like changing the decrapted lines to the new versions : |
thank you, saved my day |
Thanks, worked for me too! |
I've not tried this.... but if you do a clean, then PlatformIO will go to the repositority to get the latest available version and not use the out of date one in the project. Failing that, fork the repository to your own Github account make the necessary changes and link to that instead. A |
@me-no-dev this is still an issue. Is ESPAsyncWebServer unmaintained? |
This fork seems to be maintained: https://github.com/esphome/ESPAsyncWebServer |
@mjechow That's what I eventually found as well :) There's a bunch of different forks, but the esphome one seems like the most serious one. I added |
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git this worked in platform IO |
Hi,
I am using Visual Studio code and added last library to my project.
platform.ini:
env:esp32dev] platform = espressif32 board = esp32dev framework = arduino lib_deps = me-no-dev/ESP Async WebServer@^1.2.3 me-no-dev/AsyncTCP@^1.1.1 ayushsharma82/AsyncElegantOTA@^2.2.6
It gives error:
c:/users/delphi/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib299\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to
mbedtls_md5_starts' c:/users/delphi/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib299\libESP Async WebServer.a(WebAuthentication.cpp.o): in function
getMD5(unsigned char*, unsigned short, char*)':D:\Yazilim\Off_Road_2\ESP32\Inclinometer2/.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts'
How can i solve this problem? I used just sample code.
The text was updated successfully, but these errors were encountered: