Project

General

Profile

Bug #2093

Can't build strongswan for android

Added by Alexander Kutashov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
android
Target version:
Start date:
26.08.2016
Due date:
Estimated time:
Affected version:
5.5.0
Resolution:
Fixed

Description

Trying to build according to tutorials and getting this errors.

make: * [/home/akutashov/Documents/android-studio-workspace/strongswan/src/frontends/android/app/src/main/obj/local/x86/libstrongswan.so] Error 1
make:
Waiting for unfinished jobs....
/home/akutashov/Documents/android-studio-workspace/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/objs/strongswan/crypto/crypto_tester.o: In function `test_xof':
/home/akutashov/Documents/android-studio-workspace/strongswan/src/libstrongswan/crypto/crypto_tester.c
Error:(1158) undefined reference to 'ext_out_function_names'
Error:(1152) undefined reference to 'ext_out_function_names'
Error:(1170) undefined reference to 'ext_out_function_names'
Error:(1106) undefined reference to 'ext_out_function_names'
Error:(1170) undefined reference to `ext_out_function_names'
Error:(1170) undefined reference to `ext_out_function_names'
Error:(1152) undefined reference to `ext_out_function_names'
Error:(1152) undefined reference to `ext_out_function_names'
Error:(1160) undefined reference to `ext_out_function_names'
/home/akutashov/Documents/android-studio-workspace/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/objs/strongswan/crypto/crypto_tester.o:/home/akutashov/Documents/android-studio-workspace/strongswan/src/frontends/android/app/src/main/jni/../../../../../../..//src/libstrongswan/crypto/crypto_tester.c:1160: more undefined references to `ext_out_function_names' follow
Error:error: ld returned 1 exit status
make: *
* [/home/akutashov/Documents/android-studio-workspace/strongswan/src/frontends/android/app/src/main/obj/local/arm64-v8a/libstrongswan.so] Error 1

Ubuntu 14.04, x64
Tried to change gradle distibutions, but the problem persists.

Possible workaround for this to add
#include <crypto/xofs/xof.c> to strongswan/src/libstrongswan/crypto/crypto_tester.c

Perhaps, need to resolve xof.c/xof.h enums

Associated revisions

Revision dc5b05ea (diff)
Added by Tobias Brunner over 4 years ago

android: Add missing xof.c file

Fixes #2093.

History

#1 Updated by Tobias Brunner over 4 years ago

  • Category set to android
  • Status changed from New to Closed
  • Assignee set to Tobias Brunner
  • Target version set to 5.5.1
  • Resolution set to Fixed

The file was missing in libstrongswan's Android.mk file. Fixed with the associated commit.

Also available in: Atom PDF