[strongSwan] Compilation error in strongswan 4.6.1

Deepika Agarwal deepi7.agarwal at gmail.com
Tue Dec 13 12:00:00 CET 2011


Hello experts,

I'm trying to build the android src code after putting the strongswan code
in androidsrc/external folder.
However, i'm getting the following error while doing a 'make' for android:

external/strongswan/src/libcharon/plugins/stroke/stroke_socket.c: In
function 'stroke_loglevel':
external/strongswan/src/libcharon/plugins/stroke/stroke_socket.c:450:
warning: comparison of unsigned expression < 0 is always false
target SharedLib: libcharon
(out/target/product/passion/obj/SHARED_LIBRARIES/libcharon_intermediates/LINKED/libcharon.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/passion/obj/SHARED_LIBRARIES/libcharon_intermediates/plugins/eap_sim/eap_sim_plugin.o:
in function eap_sim_plugin_create:*external/strongswan/src/libcharon/plugins/eap_sim/eap_sim_plugin.c:87:
error: undefined reference to 'simaka_manager_create'*
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/passion/obj/SHARED_LIBRARIES/libcharon_intermediates/plugins/eap_sim_file/eap_sim_file_plugin.o:
in function f.11282:eap_sim_file_plugin.c(.data.rel+0x28):* error:
undefined reference to 'simaka_manager_register'*
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/passion/obj/SHARED_LIBRARIES/libcharon_intermediates/plugins/eap_sim_file/eap_sim_file_plugin.o:
in function f.11282:eap_sim_file_plugin.c(.data.rel+0x68): error: undefined
reference to 'simaka_manager_register'
collect2: ld returned 1 exit status
make: ***
[out/target/product/passion/obj/SHARED_LIBRARIES/libcharon_intermediates/LINKED/libcharon.so]
Error 1
root at ubuntu1-OptiPlex-160L:/home/NITIN/Gingerbread/android-2.3.5_r1#


I have enabled eap-sim, eap-sim-file and eap-radius plugins in the top
Android.mk and Android.mk.in under strongswan.
Please help , if I am supposed to do something else as well for enabling
the above plugins on Android.


Thanks
Deepika

-- 
If you think you can or if you think you can't, you are right.
-Henry Ford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20111213/c29f2806/attachment.html>


More information about the Users mailing list