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

linking error "undefined reference to secure_memcmp" with latest ESP-IDF. #3

Open
tschak909 opened this issue Apr 17, 2021 · 1 comment

Comments

@tschak909
Copy link

With the latest IDF, I get the following link error:

c:/users/thomc/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\fujinet-v1\esp-idf\libssh\liblibssh.a(chachapoly.o):(.literal.chacha20_poly1305_aead_decrypt+0x8): undefined reference to `secure_memcmp'
c:/users/thomc/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\fujinet-v1\esp-idf\libssh\liblibssh.a(chachapoly.o): in function `chacha20_poly1305_aead_decrypt':
C:\Users\thomc\Workspace\fujinet-platformio/components\libssh\libssh\src/chachapoly.c:157: undefined reference to `secure_memcmp'
@Matir
Copy link

Matir commented Oct 30, 2022

Adding ${SRC}/crypto_common.c to the srcs in components/libssh/CMakeLists.txt will address this.

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

2 participants