You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: