We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Build command failed. Error while executing process D:\android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe with arguments {--build E:\wangbin\demo\sm3\AnyNdk\c_gmssl.externalNativeBuild\cmake\debug\armeabi-v7a --target native-gmssl} [1/4] Building CXX object CMakeFiles/native-gmssl.dir/native-gmssl.cpp.o E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/native-gmssl.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/native-gmssl.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. [2/4] Building C object CMakeFiles/native-gmssl.dir/gmssl_err.c.o [3/4] Building C object CMakeFiles/native-gmssl.dir/GmSSL.c.o [4/4] Linking CXX shared library E:\wangbin\demo\sm3\AnyNdk\c_gmssl\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-gmssl.so FAILED: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-gmssl.so cmd.exe /C "cd . && D:\android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi21 --gcc-toolchain=D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libnative-gmssl.so -o E:\wangbin\demo\sm3\AnyNdk\c_gmssl\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-gmssl.so CMakeFiles/native-gmssl.dir/native-gmssl.cpp.o CMakeFiles/native-gmssl.dir/GmSSL.c.o CMakeFiles/native-gmssl.dir/gmssl_err.c.o E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libssl.a -llog -latomic -lm && cd ." D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(d2i_pr.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(cmac.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(cversion.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(err.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(err_prn.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(digest.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(evp_enc.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(evp_lib.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(m_sha1.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(names.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(p_lib.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(pmeth_fn.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(pmeth_lib.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(hmac.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(mem.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(o_str.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(obj_dat.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(rand_lib.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(stack.o): incompatible target D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(x_pubkey.o): incompatible target E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:93: error: undefined reference to 'ERR_get_next_error_library' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:98: error: undefined reference to 'ERR_load_strings' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:99: error: undefined reference to 'ERR_load_strings' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:114: error: undefined reference to 'ERR_unload_strings' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:115: error: undefined reference to 'ERR_unload_strings' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:53: error: undefined reference to 'OpenSSL_version' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:128: error: undefined reference to 'ERR_get_next_error_library' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:129: error: undefined reference to 'ERR_put_error' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:70: error: undefined reference to 'CRYPTO_malloc' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:75: error: undefined reference to 'RAND_bytes' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:87: error: undefined reference to 'CRYPTO_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:114: error: undefined reference to 'EVP_CIPHER_do_all_sorted' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_new_null' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:96: error: undefined reference to 'EVP_CIPHER_nid' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:96: error: undefined reference to 'OBJ_nid2sn' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_num' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_value' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:146: error: undefined reference to 'EVP_get_cipherbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:151: error: undefined reference to 'EVP_CIPHER_iv_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:170: error: undefined reference to 'EVP_get_cipherbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:175: error: undefined reference to 'EVP_CIPHER_key_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:194: error: undefined reference to 'EVP_get_cipherbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:199: error: undefined reference to 'EVP_CIPHER_block_size' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:244: error: undefined reference to 'EVP_get_cipherbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:248: error: undefined reference to 'EVP_CIPHER_key_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:252: error: undefined reference to 'EVP_CIPHER_iv_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:256: error: undefined reference to 'EVP_CIPHER_block_size' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:256: error: undefined reference to 'CRYPTO_malloc' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:260: error: undefined reference to 'EVP_CIPHER_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:264: error: undefined reference to 'EVP_EncryptInit_ex' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:268: error: undefined reference to 'EVP_EncryptUpdate' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:272: error: undefined reference to 'EVP_EncryptFinal_ex' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:290: error: undefined reference to 'CRYPTO_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:291: error: undefined reference to 'EVP_CIPHER_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:337: error: undefined reference to 'EVP_CIPHER_key_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:341: error: undefined reference to 'EVP_CIPHER_iv_length' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:345: error: undefined reference to 'CRYPTO_malloc' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:349: error: undefined reference to 'EVP_CIPHER_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:353: error: undefined reference to 'EVP_DecryptInit_ex' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:357: error: undefined reference to 'EVP_DecryptUpdate' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:361: error: undefined reference to 'EVP_DecryptFinal_ex' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:378: error: undefined reference to 'EVP_CIPHER_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:405: error: undefined reference to 'EVP_MD_do_all_sorted' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:387: error: undefined reference to 'EVP_MD_type' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:387: error: undefined reference to 'OBJ_nid2sn' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:437: error: undefined reference to 'EVP_get_digestbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:442: error: undefined reference to 'EVP_MD_size' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:461: error: undefined reference to 'EVP_get_digestbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:466: error: undefined reference to 'EVP_MD_block_size' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:497: error: undefined reference to 'EVP_get_digestbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:501: error: undefined reference to 'EVP_Digest' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:587: error: undefined reference to 'EVP_get_digestbyname' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:592: error: undefined reference to 'HMAC' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:608: error: undefined reference to 'CMAC_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:612: error: undefined reference to 'CMAC_Init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:616: error: undefined reference to 'CMAC_Update' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:620: error: undefined reference to 'CMAC_Final' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:643: error: undefined reference to 'CMAC_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:751: error: undefined reference to 'OBJ_nid2sn' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:801: error: undefined reference to 'd2i_PrivateKey' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:805: error: undefined reference to 'EVP_PKEY_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:809: error: undefined reference to 'EVP_PKEY_sign_init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:815: error: undefined reference to 'EVP_PKEY_CTX_ctrl' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:822: error: undefined reference to 'EVP_PKEY_CTX_ctrl' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:829: error: undefined reference to 'OBJ_txt2nid' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:829: error: undefined reference to 'EVP_PKEY_CTX_ctrl' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:837: error: undefined reference to 'EVP_PKEY_sign' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:853: error: undefined reference to 'EVP_PKEY_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:854: error: undefined reference to 'EVP_PKEY_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:675: error: undefined reference to 'OBJ_txt2nid' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:689: error: undefined reference to 'EVP_sha1' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:694: error: undefined reference to 'EVP_sha256' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:699: error: undefined reference to 'EVP_sha512' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:705: error: undefined reference to 'EVP_sha1' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:709: error: undefined reference to 'EVP_sha256' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:713: error: undefined reference to 'EVP_sha512' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:719: error: undefined reference to 'EVP_sha1' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:909: error: undefined reference to 'd2i_PUBKEY' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:914: error: undefined reference to 'EVP_PKEY_id' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:918: error: undefined reference to 'EVP_PKEY_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:923: error: undefined reference to 'EVP_PKEY_verify_init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:928: error: undefined reference to 'EVP_PKEY_CTX_ctrl' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:943: error: undefined reference to 'OBJ_txt2nid' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:951: error: undefined reference to 'EVP_PKEY_verify' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:962: error: undefined reference to 'EVP_PKEY_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:963: error: undefined reference to 'EVP_PKEY_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1095: error: undefined reference to 'OBJ_nid2sn' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1152: error: undefined reference to 'CRYPTO_malloc' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1156: error: undefined reference to 'd2i_PUBKEY' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1160: error: undefined reference to 'EVP_PKEY_id' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1164: error: undefined reference to 'EVP_PKEY_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1169: error: undefined reference to 'EVP_PKEY_encrypt_init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1187: error: undefined reference to 'EVP_PKEY_encrypt' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1203: error: undefined reference to 'CRYPTO_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1204: error: undefined reference to 'EVP_PKEY_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1205: error: undefined reference to 'EVP_PKEY_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1011: error: undefined reference to 'OBJ_txt2nid' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1268: error: undefined reference to 'd2i_PrivateKey' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1272: error: undefined reference to 'EVP_PKEY_CTX_new' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1276: error: undefined reference to 'EVP_PKEY_decrypt_init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1295: error: undefined reference to 'EVP_PKEY_decrypt' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1311: error: undefined reference to 'CRYPTO_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1312: error: undefined reference to 'EVP_PKEY_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1313: error: undefined reference to 'EVP_PKEY_CTX_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1524: error: undefined reference to 'd2i_PUBKEY' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1528: error: undefined reference to 'EVP_PKEY_id' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1532: error: undefined reference to 'd2i_PrivateKey' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1540: error: undefined reference to 'EVP_PKEY_derive_init' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1575: error: undefined reference to 'EVP_PKEY_derive_set_peer' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1579: error: undefined reference to 'EVP_PKEY_derive' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1635: error: undefined reference to 'ERR_print_errors_cb' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_new_null' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1606: error: undefined reference to 'CRYPTO_strdup' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_num' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_value' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_pop_free' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_push' E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_push' clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Build command failed.
Error while executing process D:\android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe with arguments {--build E:\wangbin\demo\sm3\AnyNdk\c_gmssl.externalNativeBuild\cmake\debug\armeabi-v7a --target native-gmssl}
[1/4] Building CXX object CMakeFiles/native-gmssl.dir/native-gmssl.cpp.o
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/native-gmssl.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/native-gmssl.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
[2/4] Building C object CMakeFiles/native-gmssl.dir/gmssl_err.c.o
[3/4] Building C object CMakeFiles/native-gmssl.dir/GmSSL.c.o
[4/4] Linking CXX shared library E:\wangbin\demo\sm3\AnyNdk\c_gmssl\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-gmssl.so
FAILED: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-gmssl.so
cmd.exe /C "cd . && D:\android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi21 --gcc-toolchain=D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libnative-gmssl.so -o E:\wangbin\demo\sm3\AnyNdk\c_gmssl\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-gmssl.so CMakeFiles/native-gmssl.dir/native-gmssl.cpp.o CMakeFiles/native-gmssl.dir/GmSSL.c.o CMakeFiles/native-gmssl.dir/gmssl_err.c.o E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libssl.a -llog -latomic -lm && cd ."
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(d2i_pr.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(cmac.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(cversion.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(err.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(err_prn.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(digest.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(evp_enc.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(evp_lib.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(m_sha1.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(names.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(p_lib.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(pmeth_fn.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(pmeth_lib.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(hmac.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(mem.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(o_str.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(obj_dat.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(rand_lib.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(stack.o): incompatible target
D:/android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/libs/armeabi-v7a/libcrypto.a(x_pubkey.o): incompatible target
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:93: error: undefined reference to 'ERR_get_next_error_library'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:98: error: undefined reference to 'ERR_load_strings'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:99: error: undefined reference to 'ERR_load_strings'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:114: error: undefined reference to 'ERR_unload_strings'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:115: error: undefined reference to 'ERR_unload_strings'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:53: error: undefined reference to 'OpenSSL_version'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:128: error: undefined reference to 'ERR_get_next_error_library'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/./gmssl_err.c:129: error: undefined reference to 'ERR_put_error'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:70: error: undefined reference to 'CRYPTO_malloc'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:75: error: undefined reference to 'RAND_bytes'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:87: error: undefined reference to 'CRYPTO_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:114: error: undefined reference to 'EVP_CIPHER_do_all_sorted'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_new_null'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:96: error: undefined reference to 'EVP_CIPHER_nid'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:96: error: undefined reference to 'OBJ_nid2sn'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_num'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_value'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:146: error: undefined reference to 'EVP_get_cipherbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:151: error: undefined reference to 'EVP_CIPHER_iv_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:170: error: undefined reference to 'EVP_get_cipherbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:175: error: undefined reference to 'EVP_CIPHER_key_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:194: error: undefined reference to 'EVP_get_cipherbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:199: error: undefined reference to 'EVP_CIPHER_block_size'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:244: error: undefined reference to 'EVP_get_cipherbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:248: error: undefined reference to 'EVP_CIPHER_key_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:252: error: undefined reference to 'EVP_CIPHER_iv_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:256: error: undefined reference to 'EVP_CIPHER_block_size'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:256: error: undefined reference to 'CRYPTO_malloc'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:260: error: undefined reference to 'EVP_CIPHER_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:264: error: undefined reference to 'EVP_EncryptInit_ex'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:268: error: undefined reference to 'EVP_EncryptUpdate'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:272: error: undefined reference to 'EVP_EncryptFinal_ex'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:290: error: undefined reference to 'CRYPTO_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:291: error: undefined reference to 'EVP_CIPHER_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:337: error: undefined reference to 'EVP_CIPHER_key_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:341: error: undefined reference to 'EVP_CIPHER_iv_length'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:345: error: undefined reference to 'CRYPTO_malloc'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:349: error: undefined reference to 'EVP_CIPHER_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:353: error: undefined reference to 'EVP_DecryptInit_ex'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:357: error: undefined reference to 'EVP_DecryptUpdate'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:361: error: undefined reference to 'EVP_DecryptFinal_ex'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:378: error: undefined reference to 'EVP_CIPHER_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:405: error: undefined reference to 'EVP_MD_do_all_sorted'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:387: error: undefined reference to 'EVP_MD_type'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:387: error: undefined reference to 'OBJ_nid2sn'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:437: error: undefined reference to 'EVP_get_digestbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:442: error: undefined reference to 'EVP_MD_size'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:461: error: undefined reference to 'EVP_get_digestbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:466: error: undefined reference to 'EVP_MD_block_size'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:497: error: undefined reference to 'EVP_get_digestbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:501: error: undefined reference to 'EVP_Digest'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:587: error: undefined reference to 'EVP_get_digestbyname'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:592: error: undefined reference to 'HMAC'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:608: error: undefined reference to 'CMAC_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:612: error: undefined reference to 'CMAC_Init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:616: error: undefined reference to 'CMAC_Update'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:620: error: undefined reference to 'CMAC_Final'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:643: error: undefined reference to 'CMAC_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:751: error: undefined reference to 'OBJ_nid2sn'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:801: error: undefined reference to 'd2i_PrivateKey'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:805: error: undefined reference to 'EVP_PKEY_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:809: error: undefined reference to 'EVP_PKEY_sign_init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:815: error: undefined reference to 'EVP_PKEY_CTX_ctrl'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:822: error: undefined reference to 'EVP_PKEY_CTX_ctrl'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:829: error: undefined reference to 'OBJ_txt2nid'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:829: error: undefined reference to 'EVP_PKEY_CTX_ctrl'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:837: error: undefined reference to 'EVP_PKEY_sign'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:853: error: undefined reference to 'EVP_PKEY_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:854: error: undefined reference to 'EVP_PKEY_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:675: error: undefined reference to 'OBJ_txt2nid'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:689: error: undefined reference to 'EVP_sha1'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:694: error: undefined reference to 'EVP_sha256'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:699: error: undefined reference to 'EVP_sha512'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:705: error: undefined reference to 'EVP_sha1'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:709: error: undefined reference to 'EVP_sha256'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:713: error: undefined reference to 'EVP_sha512'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:719: error: undefined reference to 'EVP_sha1'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:909: error: undefined reference to 'd2i_PUBKEY'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:914: error: undefined reference to 'EVP_PKEY_id'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:918: error: undefined reference to 'EVP_PKEY_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:923: error: undefined reference to 'EVP_PKEY_verify_init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:928: error: undefined reference to 'EVP_PKEY_CTX_ctrl'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:943: error: undefined reference to 'OBJ_txt2nid'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:951: error: undefined reference to 'EVP_PKEY_verify'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:962: error: undefined reference to 'EVP_PKEY_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:963: error: undefined reference to 'EVP_PKEY_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1095: error: undefined reference to 'OBJ_nid2sn'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1152: error: undefined reference to 'CRYPTO_malloc'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1156: error: undefined reference to 'd2i_PUBKEY'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1160: error: undefined reference to 'EVP_PKEY_id'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1164: error: undefined reference to 'EVP_PKEY_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1169: error: undefined reference to 'EVP_PKEY_encrypt_init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1187: error: undefined reference to 'EVP_PKEY_encrypt'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1203: error: undefined reference to 'CRYPTO_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1204: error: undefined reference to 'EVP_PKEY_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1205: error: undefined reference to 'EVP_PKEY_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1011: error: undefined reference to 'OBJ_txt2nid'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1268: error: undefined reference to 'd2i_PrivateKey'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1272: error: undefined reference to 'EVP_PKEY_CTX_new'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1276: error: undefined reference to 'EVP_PKEY_decrypt_init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1295: error: undefined reference to 'EVP_PKEY_decrypt'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1311: error: undefined reference to 'CRYPTO_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1312: error: undefined reference to 'EVP_PKEY_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1313: error: undefined reference to 'EVP_PKEY_CTX_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1524: error: undefined reference to 'd2i_PUBKEY'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1528: error: undefined reference to 'EVP_PKEY_id'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1532: error: undefined reference to 'd2i_PrivateKey'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1540: error: undefined reference to 'EVP_PKEY_derive_init'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1575: error: undefined reference to 'EVP_PKEY_derive_set_peer'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1579: error: undefined reference to 'EVP_PKEY_derive'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1635: error: undefined reference to 'ERR_print_errors_cb'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_new_null'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/GmSSL.c:1606: error: undefined reference to 'CRYPTO_strdup'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_num'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_value'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_pop_free'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:152: error: undefined reference to 'OPENSSL_sk_push'
E:/wangbin/demo/sm3/AnyNdk/c_gmssl/src/main/jni/include\openssl/safestack.h:151: error: undefined reference to 'OPENSSL_sk_push'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: