-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined reference to `MD5Update' in arduino as component #5925
Comments
arduino-esp32 master (assuming that is what you are using since you didn't specify) only supports ESP-IDF v4.4 and not earlier. You state "Latest ESP-IDF" but that doesn't indicate what version you are using. |
This happens with multiple matching versions of esp-idf and arduino-esp32. Specifically the latest versions are: MD5Update is a C function that may also be available in the ROM, but I don't know. I suspect that there is a linker setting or some flag that is needed in the the CMakeList.txt', or maybe some additional flag in some configuration file. I would appreciate if someone that knows the system could look and help with this. Thanks |
which specific ESP32 target are you using via idf.py? |
The target is esp32 (default). Same result when the target explicitly using |
@qt1 Try disabling The PR below fixes the issue so it doesn't depend on sdkconfig entries. |
According to some other issues referencing MD5Update Adding the following to
I is possible that theses where left out for a reason, so I m not sure if I should PR esp-idf or not.. Setting Thanks! |
Those entries are intentionally omitted from the ld scripts as they used to be provided by the WPA code, as part of migrating to ESP-IDF v4.4 though this became optionally compiled based on |
Thanks! |
The compilation of a project referencing MD5Builder fails link with undefined reference to `MD5Update'
Creating a minimal project with this error:
Latest ESP-IDF, install.sh and export.sh
Create new project using
At this point the project compiles.
Add arduino-esp32 as in the docs
Rename 'proj1.c' to 'proj1.cpp' and change in 'CMakeList.txt', content from docs. At this point the project still compiles
Add reference to 'MD5Builder.h' like so: (based on the example in the docs)
Now the compilation fails with linker error:
Please advise.
The text was updated successfully, but these errors were encountered: