[strongSwan] Latest Android doesn't compile
Houman
houmie at gmail.com
Thu Nov 19 21:30:36 CET 2020
Hello Tobias,
The latest Android Frontend is no longer compiling after your latest
changes.
I'm using boringSSL instead of openssl as recommended.
[arm64-v8a] StaticLibrary : libcrypto_static.a
[arm64-v8a] SharedLibrary : libstrongswan.so
fcntl(): Bad file descriptor
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol
OPENSSL_armcap_P; recompile with -fPIC
>>> defined in
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a(sha1-armv8.o)
>>> referenced by sha1-armv8.o:(.text+0x1240) in archive
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol
OPENSSL_armcap_P; recompile with -fPIC
>>> defined in
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a(sha1-armv8.o)
>>> referenced by sha256-armv8.o:(.text+0xF48) in archive
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol
OPENSSL_armcap_P; recompile with -fPIC
>>> defined in
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a(sha1-armv8.o)
>>> referenced by sha512-armv8.o:(.text+0x10C8) in archive
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libcrypto_static.a
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [/Users/houmie/Library/Android/sdk/ndk/22.0.6917172/build/core/
build-binary.mk:728:
/Users/houmie/Projects/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libstrongswan.so]
Error 1
make: *** Waiting for unfinished jobs....
[x86] SharedLibrary : libstrongswan.so
fcntl(): Bad file descriptor
[armeabi-v7a] SharedLibrary : libstrongswan.so
fcntl(): Bad file descriptor
fcntl(): Bad file descriptor
[x86_64] Compile : crypto_static <= p256-64.c
> Task :app:buildNative FAILED
Any suggestions, please?
Many Thanks,
Houman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20201119/23a06680/attachment.html>
More information about the Users
mailing list