microsoft/RIoT

Multiple definitions for ECDSA_verify linking with OpenSSL

Opened this issue · 0 comments

Our project uses the Azure C SDK. We link statically against all our dependencies (which also include OpenSSL). Riot gives a duplicate symbol for ECDSA_verify which is also defined by OpenSSL (output edited for some clarity):

/usr/bin/cc [snip] libmsr_riot.a [snip]  libssl.a libcrypto.a [snip]
libcrypto.a(ecdsa_vrf.o): In function `ECDSA_verify':
openssl/crypto/ec/ecdsa_vrf.c:37: multiple definition of `ECDSA_verify'
azure-iot-sdk-c/provisioning_client/deps/libmsr_riot.a(RiotEcc.c.o):azure-iot-sdk-c/provisioning_client/deps/RIoT/Emulator/RIoT/RIoTCrypt/RiotEcc.c:1578: first defined here
collect2: error: ld returned 1 exit status

Could this be renamed to something else?