Skip to content
New issue

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

Problem with NDK build (BoringSSL or OpenSSL) #2

Open
tormentous opened this issue Apr 24, 2021 · 1 comment
Open

Problem with NDK build (BoringSSL or OpenSSL) #2

tormentous opened this issue Apr 24, 2021 · 1 comment

Comments

@tormentous
Copy link

tormentous commented Apr 24, 2021

Everything goes well, except for these error upon building the arm Shared Library.

if I use BoringSSL
.
.
.
[armeabi-v7a] SharedLibrary : libstrongswan.so
ld: error: undefined symbol: EC_POINT_set_affine_coordinates

referenced by openssl_ec_diffie_hellman.c:510 (../../../../../../../src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c:510)
/Users/admin/strongswan-android/strongswan/src/frontends/android/app/src/main/obj/local/armeabi-v7a/objs/strongswan/plugins/openssl/openssl_ec_diffie_hellman.o:(ec_group_new_brainpool)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/admin/adt-bundle-mac-x86_64-20140702/sdk/ndk/22.1.7171670/build/core/build-binary.mk:728: /Users/admin/strongswan-android/strongswan/src/frontends/android/app/src/main/obj/local/armeabi-v7a/libstrongswan.so] Error 1

if I used OpenSSL
.
.
.
[armeabi-v7a] Compile thumb : crypto_static <= aes-armv4.S
/Users/admin/strongswan-android/strongswan/src/frontends/android/app/src/main/jni/openssl/crypto/aes/asm/aes-armv4.S:358:2: error: out of range immediate fixup value
sub r10,r3,#AES_encrypt-AES_Te @ Te
^
/Users/admin/android/strongswan/src/frontends/android/app/src/main/jni/openssl/crypto/aes/asm/aes-armv4.S:994:2: error: out of range immediate fixup value
sub r10,r3,#AES_decrypt-AES_Td @ Td
^
make: *** [/Users/admin/adt-bundle-mac-x86_64-20140702/sdk/ndk/22.1.7171670/build/core/build-binary.mk:477: /Users/admin/strongswan-android/strongswan/src/frontends/android/app/src/main/obj/local/armeabi-v7a/objs/crypto_static/crypto/aes/asm/aes-armv4.o] Error 1

@tormentous
Copy link
Author

this only occurs when compiling "armeabi-v7a" architecture. hoping for your valuable response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant