Skip to content
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 references related to mbedtls #3

Open
jordibinefa opened this issue Jun 10, 2020 · 0 comments
Open

Undefined references related to mbedtls #3

jordibinefa opened this issue Jun 10, 2020 · 0 comments

Comments

@jordibinefa
Copy link

Mr. Stefan Profanter,

I really appreciate your sharing. Thank you very much.

I am trying to compile your code and, at the end, there are some undefined references related to mbedtls. I guess there are some *_mbedtls.h files not defined somewhere. Or maybe there is something obvious that I am overlooking.

This is part of terminal output:

[100%] Linking CXX static library liblibsodium.a
[100%] Built target __idf_libsodium
[100%] Linking CXX static library libopen62541.a
[100%] Built target __idf_open62541
Scanning dependencies of target __idf_main
[100%] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
[100%] Linking CXX static library libmain.a
[100%] Built target __idf_main
Scanning dependencies of target __ldgen_output_esp32.project.ld
[100%] Generating ld/esp32.project.ld
[100%] Built target __ldgen_output_esp32.project.ld
Scanning dependencies of target open62541-esp32.elf
[100%] Building C object CMakeFiles/open62541-esp32.elf.dir/project_elf_src.c.obj
[100%] Linking CXX executable open62541-esp32.elf
/home/jordi/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(crypto_mbedtls.c.obj):(.literal.ecp_opp+0x0): undefined reference to mbedtls_ecp_copy'** /home/jordi/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(crypto_mbedtls.c.obj):(.literal.ecp_opp+0x4): **undefined reference to mbedtls_mpi_cmp_int'
...
/home/jordi/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/jordi/bin/esp/esp-idf/components/wpa_supplicant/src/crypto/crypto_mbedtls.c:591: **undefined reference to mbedtls_mpi_free'** /home/jordi/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/wpa_supplicant/libwpa_supplicant.a(crypto_mbedtls.c.obj): in function crypto_ec_point_cmp':
/home/jordi/bin/esp/esp-idf/components/wpa_supplicant/src/crypto/crypto_mbedtls.c:601: undefined reference to `mbedtls_ecp_point_cmp'
collect2: error: ld returned 1 exit status
CMakeFiles/open62541-esp32.elf.dir/build.make:261: recipe for target 'open62541-esp32.elf' failed
make[2]: *** [open62541-esp32.elf] Error 1
CMakeFiles/Makefile2:466: recipe for target 'CMakeFiles/open62541-esp32.elf.dir/all' failed
make[1]: *** [CMakeFiles/open62541-esp32.elf.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
make failed with exit code 2

And this is complete terminal output : https://binefa.cat/IoT/esp32/open62541-esp32_202006101315.txt

Thank you very much for reading this personal issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant