Hey all, I'm trying to cross compile openssl-fips-1.2.3 with 'android' target using the following env vars and commands :
export HOSTCC="/usr/bin/gcc" export FIPS_SIG="/tmp/incore" export CROSS_COMPILE="${NDKPATH}/toolchains/arm-eabi-4.4.0/prebuilt/darwin-x86/bin/arm-eabi-" export ANDROID_DEV="${NDKPATH}/platforms/android-8/arch-arm/usr/" ./Configure android fipscanisterbuild make As the release contains no incore, the one I used is the one from http://www.openssl.org/docs/fips/ . $NDKPATH points to the root of Android NDK (r5b) and my host o/s is (uname -mprsv): Darwin 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386 Everything seems to go well up until this point : <snip> ar: fipscanister.o: not found in archive fips/../fips/fips_premain.c: In function 'FINGERPRINT_premain': fips/../fips/fips_premain.c:94: warning: implicit declaration of function '_exit' fips/../fips/fips_premain.c:94: warning: incompatible implicit declaration of built-in function '_exit' fips/../fips/fips_premain.c:109: warning: incompatible implicit declaration of built-in function '_exit' fips/../fips/fips_premain.c:115: warning: incompatible implicit declaration of built-in function '_exit' libcrypto.a(fipscanister.o): In function `int_CRYPTO_set_do_dynlock_callback': fips_canister.c:(.text+0xbd30): multiple definition of `int_CRYPTO_set_do_dynlock_callback' fips/../fips/fipscanister.o:fips_canister.c:(.text+0xbd30): first defined here libcrypto.a(fipscanister.o): In function `RAND_load_file': fips_canister.c:(.text+0x13200): multiple definition of `RAND_load_file' fips/../fips/fipscanister.o:fips_canister.c:(.text+0x13200): first defined here libcrypto.a(fipscanister.o): In function `EVP_DigestInit': fips_canister.c:(.text+0xf94c): multiple definition of `EVP_DigestInit' fips/../fips/fipscanister.o:fips_canister.c:(.text+0xf94c): first defined here (...) collect2: ld returned 1 exit status make[2]: *** [link_a.gnu] Error 1 make[1]: *** [do_linux-shared] Error 2 make: *** [libcrypto.so.0.9.8] Error 2 </snip> If I try to compile it normally, everything is compiled as expected. Could someone point out what I'm doing wrong..? Thanks, -lz ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org