> Task :ccc:externalNativeBuildDebug FAILED Build wolfssl x86_64 ninja: no work to do. Build wolfcrypt-jni x86_64 [1/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_hmac.c.o [2/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_ecc.c.o [3/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_asn.c.o [4/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_logging.c.o [5/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_chacha.c.o [6/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_curve25519.c.o [7/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_ed25519.c.o [8/9] Building C object src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_error.c.o FAILED: /usr/local/opt/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=x86_64-none-linux-android23 --gcc-toolchain=/usr/local/opt/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 --sysroot=/usr/local/opt/android-sdk/ndk-bundle/sysroot -Dwolfcrypt_jni_EXPORTS -I../../../../src/main/cpp/wolfcrypt/jni/include -I../../../../src/main/cpp/wolfcrypt/../wolfssl-oem/wolfssl-git -isystem /usr/local/opt/android-sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -D_POSIX_THREADS -DNDEBUG -DPERSIST_SESSION_CACHE -DPERSIST_CERT_CACHE -DATOMIC_USER -DHAVE_PK_CALLBACKS -DNO_DSA -DNO_MD4 -DNO_HC128 -DNO_RABBIT -DHAVE_OCSP -DHAVE_CRL -DWOLFSSL_JNI -DHAVE_DH -Wall -O0 -fno-limit-debug-info -fPIC -MD -MT src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_hmac.c.o -MF src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_hmac.c.o.d -o src/main/cpp/wolfcrypt/CMakeFiles/wolfcrypt-jni.dir/jni/jni_hmac.c.o -c /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:39:8: error: unknown type name 'WC_INLINE' static WC_INLINE int GetHashSizeByType(int type) ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:39:18: error: expected identifier or '(' static WC_INLINE int GetHashSizeByType(int type) ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:251:14: warning: implicit declaration of function 'GetHashSizeByType' is invalid in C99 [-Wimplicit-function-declaration] hmacSz = GetHashSizeByType(hmac->macType); ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:292:15: warning: implicit declaration of function 'GetHashSizeByType' is invalid in C99 [-Wimplicit-function-declaration] int ret = GetHashSizeByType(type); ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:311:19: error: use of undeclared identifier 'WC_MD5' jint result = WC_MD5; ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:320:19: error: use of undeclared identifier 'WC_SHA' jint result = WC_SHA; ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:329:19: error: use of undeclared identifier 'WC_SHA256'; did you mean 'SHA256'? jint result = WC_SHA256; ^~~~~~~~~ SHA256 ../../../../src/main/cpp/wolfcrypt/../wolfssl-oem/wolfssl-git/wolfssl/wolfcrypt/sha256.h:53:5: note: 'SHA256' declared here SHA256 = 2, /* hash type unique */ ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:338:19: error: use of undeclared identifier 'WC_SHA384'; did you mean 'SHA384'? jint result = WC_SHA384; ^~~~~~~~~ SHA384 ../../../../src/main/cpp/wolfcrypt/../wolfssl-oem/wolfssl-git/wolfssl/wolfcrypt/hmac.h:86:5: note: 'SHA384' declared here SHA384 = 5, ^ /Volumes/malloc-dev/nextcrypto/source/nc-wc-ndk/ccc/src/main/cpp/wolfcrypt/jni/jni_hmac.c:347:19: error: use of undeclared identifier 'WC_SHA512'; did you mean 'SHA512'? jint result = WC_SHA512; ^~~~~~~~~ SHA512 ../../../../src/main/cpp/wolfcrypt/../wolfssl-oem/wolfssl-git/wolfssl/wolfcrypt/hmac.h:83:5: note: 'SHA512' declared here SHA512 = 4, ^ 2 warnings and 7 errors generated. ninja: build stopped: subcommand failed. 19 actionable tasks: 1 executed, 18 up-to-date