Hallo und guten Abend Ich versuche vergebens die dtls_client zu kompilieren aus Post 27 von Strategy und kack voll ab. Ich bekomme unterm strich immer die selbe Fehlermeldung, egal ob ich es auf MacOS kompiliere, auf einem nativen Linuxlaptop oder unter Ubuntu in Windows 10. Selbst die original Datei die Strategy angehangen hat, lässt sich nicht kompilieren.
Hier der Auszug von MacOS:
Code
CC aes/aescrypt2.c
ld: warning: ignoring file ../library/libmbedtls.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file ../library/libmbedcrypto.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file ../library/libmbedx509.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
Undefined symbols for architecture x86_64:
"_mbedtls_aes_crypt_ecb", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_aes_free", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_aes_init", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_aes_setkey_dec", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_aes_setkey_enc", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_finish", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_free", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_hmac_finish", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_hmac_starts", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_hmac_update", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_info_from_type", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_init", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_setup", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_starts", referenced from:
_main in aescrypt2-31aef0.o
"_mbedtls_md_update", referenced from:
_main in aescrypt2-31aef0.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [aes/aescrypt2] Error 1
Display More
Hier von Linux ElementaryOS:
Code
CC aes/aescrypt2.c
/usr/bin/ld: inkompatibles ../library/libmbedtls.a wird bei der Suche nach -lmbedtls übersprungen
/usr/bin/ld: -lmbedtls kann nicht gefunden werden
/usr/bin/ld: inkompatibles ../library/libmbedx509.a wird bei der Suche nach -lmbedx509 übersprungen
/usr/bin/ld: -lmbedx509 kann nicht gefunden werden
/usr/bin/ld: inkompatibles ../library/libmbedcrypto.a wird bei der Suche nach -lmbedcrypto übersprungen
/usr/bin/ld: -lmbedcrypto kann nicht gefunden werden
collect2: error: ld returned 1 exit status
Makefile:89: recipe for target 'aes/aescrypt2' failed
make: *** [aes/aescrypt2] Error 1
Hier von Ubuntu:
Code
CC aes/aescrypt2.c
/usr/bin/ld: skipping incompatible ../library/libmbedtls.a when searching for -lmbedtls
/usr/bin/ld: cannot find -lmbedtls
/usr/bin/ld: skipping incompatible ../library/libmbedx509.a when searching for -lmbedx509
/usr/bin/ld: cannot find -lmbedx509
/usr/bin/ld: skipping incompatible ../library/libmbedcrypto.a when searching for -lmbedcrypto
/usr/bin/ld: cannot find -lmbedcrypto
collect2: error: ld returned 1 exit status
Makefile:89: recipe for target 'aes/aescrypt2' failed
make: *** [aes/aescrypt2] Error 1
Hat einer einen Rat für mich?