[strongSwan] Compilation failure for android frond end

DreamDreams dreamdreams at gmail.com
Thu Jan 3 04:17:06 CET 2013


Just checkout 5.0.1 and now openssl seems compiling fine. But I got this:

Android NDK: WARNING: Unsupported source file extensions in
jni/libandroidbridge/Android.mk for module androidbridge
Android NDK:   android_jni.h backend/android_attr.h backend/android_creds.h
backend/android_private_key.h backend/android_service.h charonservice.h
kernel/android_ipsec.h kernel/android_net.h vpnservice_builder.h
Android NDK: WARNING: Unsupported source file extensions in
jni/strongswan/src/libcharon/Android.mk for module charon
Android NDK:   bus/bus.h bus/listeners/listener.h bus/listeners/logger.h
bus/listeners/file_logger.h bus/listeners/sys_logger.h
config/backend_manager.h config/backend.h config/child_cfg.h
config/ike_cfg.h config/peer_cfg.h config/proposal.h control/controller.h
daemon.h encoding/generator.h encoding/message.h encoding/parser.h
encoding/payloads/auth_payload.h encoding/payloads/cert_payload.h
encoding/payloads/certreq_payload.h
encoding/payloads/configuration_attribute.h encoding/payloads/cp_payload.h
encoding/payloads/delete_payload.h encoding/payloads/eap_payload.h
encoding/payloads/encodings.h encoding/payloads/encryption_payload.h
encoding/payloads/id_payload.h encoding/payloads/ike_header.h
encoding/payloads/ke_payload.h encoding/payloads/nonce_payload.h
encoding/payloads/notify_payload.h encoding/payloads/payload.h
encoding/payloads/proposal_substructure.h encoding/payloads/sa_payload.h
encoding/payloads/traffic_selector_substructure.h
encoding/payloads/transform_attribute.h
encoding/payloads/transform_substructure.h encoding/payloads/ts_payload.h
encoding/payloads/unknown_payload.h encoding/payloads/vendor_id_payload.h
encoding/payloads/hash_payload.h kernel/kernel_handler.h network/receiver.h
network/sender.h network/socket.h network/socket_manager.h
processing/jobs/acquire_job.h processing/jobs/delete_child_sa_job.h
processing/jobs/delete_ike_sa_job.h processing/jobs/migrate_job.h
processing/jobs/process_message_job.h processing/jobs/rekey_child_sa_job.h
processing/jobs/rekey_ike_sa_job.h processing/jobs/retransmit_job.h
processing/jobs/retry_initiate_job.h processing/jobs/send_dpd_job.h
processing/jobs/send_keepalive_job.h processing/jobs/start_action_job.h
processing/jobs/roam_job.h processing/jobs/update_sa_job.h
processing/jobs/inactivity_job.h sa/eap/eap_method.h sa/eap/eap_manager.h
sa/xauth/xauth_method.h sa/xauth/xauth_manager.h sa/authenticator.h
sa/child_sa.h sa/ike_sa.h sa/ike_sa_id.h sa/keymat.h sa/ike_sa_manager.h
sa/task_manager.h sa/shunt_manager.h sa/trap_manager.h sa/task.h
sa/ikev2/keymat_v2.h sa/ikev2/task_manager_v2.h
sa/ikev2/authenticators/eap_authenticator.h
sa/ikev2/authenticators/psk_authenticator.h
sa/ikev2/authenticators/pubkey_authenticator.h
sa/ikev2/tasks/child_create.h sa/ikev2/tasks/child_delete.h
sa/ikev2/tasks/child_rekey.h sa/ikev2/tasks/ike_auth.h
sa/ikev2/tasks/ike_cert_pre.h sa/ikev2/tasks/ike_cert_post.h
sa/ikev2/tasks/ike_config.h sa/ikev2/tasks/ike_delete.h
sa/ikev2/tasks/ike_dpd.h sa/ikev2/tasks/ike_init.h
sa/ikev2/tasks/ike_natd.h sa/ikev2/tasks/ike_mobike.h
sa/ikev2/tasks/ike_rekey.h sa/ikev2/tasks/ike_reauth.h
sa/ikev2/tasks/ike_auth_lifetime.h sa/ikev2/tasks/ike_vendor.h
sa/ikev1/keymat_v1.h sa/ikev1/task_manager_v1.h
sa/ikev1/authenticators/psk_v1_authenticator.h
sa/ikev1/authenticators/pubkey_v1_authenticator.h
sa/ikev1/authenticators/hybrid_authenticator.h sa/ikev1/phase1.h
sa/ikev1/tasks/main_mode.h sa/ikev1/tasks/aggressive_mode.h
sa/ikev1/tasks/informational.h sa/ikev1/tasks/isakmp_cert_pre.h
sa/ikev1/tasks/isakmp_cert_post.h sa/ikev1/tasks/isakmp_natd.h
sa/ikev1/tasks/isakmp_vendor.h sa/ikev1/tasks/isakmp_delete.h
sa/ikev1/tasks/isakmp_dpd.h sa/ikev1/tasks/xauth.h
sa/ikev1/tasks/quick_mode.h sa/ikev1/tasks/quick_delete.h
sa/ikev1/tasks/mode_config.h processing/jobs/dpd_timeout_job.h
processing/jobs/adopt_children_job.h
Android NDK: WARNING: Unsupported source file extensions in
jni/strongswan/src/libhydra/Android.mk for module hydra
Android NDK:   hydra.h attributes/attributes.h
attributes/attribute_provider.h attributes/attribute_handler.h
attributes/attribute_manager.h attributes/mem_pool.h
kernel/kernel_interface.h kernel/kernel_ipsec.h kernel/kernel_net.h
kernel/kernel_listener.h
Android NDK: WARNING: Unsupported source file extensions in
jni/strongswan/src/libipsec/Android.mk for module ipsec
Android NDK:   ipsec.h esp_context.h esp_packet.h ip_packet.h
ipsec_event_listener.h ipsec_event_relay.h ipsec_policy.h
ipsec_policy_mgr.h ipsec_processor.h ipsec_sa.h ipsec_sa_mgr.h
SharedLibrary  : libstrongswan.so
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_fmt_add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:185:
error: undefined reference to 'vstr_fmt_add'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_fmt_add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:193:
error: undefined reference to 'vstr_fmt_add'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_fmt_add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:189:
error: undefined reference to 'vstr_fmt_add'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:209: error:
undefined reference to 'vstr_make_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:210: error:
undefined reference to 'vstr_cntl_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:211: error:
undefined reference to 'vstr_cntl_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
add_handler:jni/strongswan/src/libstrongswan/printf_hook.c:213: error:
undefined reference to 'vstr_cntl_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
destroy:jni/strongswan/src/libstrongswan/printf_hook.c:466: error:
undefined reference to 'vstr_fmt_del'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
destroy:jni/strongswan/src/libstrongswan/printf_hook.c:477: error:
undefined reference to 'vstr_free_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
destroy:jni/strongswan/src/libstrongswan/printf_hook.c:478: error:
undefined reference to 'vstr_exit'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
destroy:jni/strongswan/src/libstrongswan/printf_hook.c:209: error:
undefined reference to 'vstr_make_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
destroy:jni/strongswan/src/libstrongswan/printf_hook.c:210: error:
undefined reference to 'vstr_cntl_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_print_in_hook:jni/strongswan/src/libstrongswan/printf_hook.c:250:
error: undefined reference to 'vstr_add_vfmt'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vprintf:jni/strongswan/src/libstrongswan/printf_hook.c:308:
error: undefined reference to 'vstr_make_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vprintf:jni/strongswan/src/libstrongswan/printf_hook.c:309:
error: undefined reference to 'vstr_add_vfmt'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vprintf:jni/strongswan/src/libstrongswan/printf_hook.c:313:
error: undefined reference to 'vstr_sc_write_fd'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vprintf:jni/strongswan/src/libstrongswan/printf_hook.c:322:
error: undefined reference to 'vstr_free_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vprintf:jni/strongswan/src/libstrongswan/printf_hook.c:209:
error: undefined reference to 'vstr_make_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vfprintf:jni/strongswan/src/libstrongswan/printf_hook.c:308:
error: undefined reference to 'vstr_make_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vfprintf:jni/strongswan/src/libstrongswan/printf_hook.c:309:
error: undefined reference to 'vstr_add_vfmt'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vfprintf:jni/strongswan/src/libstrongswan/printf_hook.c:313:
error: undefined reference to 'vstr_sc_write_fd'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vfprintf:jni/strongswan/src/libstrongswan/printf_hook.c:322:
error: undefined reference to 'vstr_free_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vfprintf:jni/strongswan/src/libstrongswan/printf_hook.c:209:
error: undefined reference to 'vstr_make_conf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsprintf:jni/strongswan/src/libstrongswan/printf_hook.c:352:
error: undefined reference to 'vstr_make_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsprintf:jni/strongswan/src/libstrongswan/printf_hook.c:353:
error: undefined reference to 'vstr_add_vfmt'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsprintf:jni/strongswan/src/libstrongswan/printf_hook.c:355:
error: undefined reference to 'vstr_export_cstr_buf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsprintf:jni/strongswan/src/libstrongswan/printf_hook.c:356:
error: undefined reference to 'vstr_free_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsnprintf:jni/strongswan/src/libstrongswan/printf_hook.c:352:
error: undefined reference to 'vstr_make_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsnprintf:jni/strongswan/src/libstrongswan/printf_hook.c:355:
error: undefined reference to 'vstr_export_cstr_buf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vsnprintf:jni/strongswan/src/libstrongswan/printf_hook.c:356:
error: undefined reference to 'vstr_free_base'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
vstr_wrapper_vasprintf:jni/strongswan/src/libstrongswan/printf_hook.c:355:
error: undefined reference to 'vstr_export_cstr_buf'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
printf_hook_create:jni/strongswan/src/libstrongswan/printf_hook.c:500:
error: undefined reference to 'vstr_init'
/public/development/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
./obj/local/armeabi/objs/strongswan/printf_hook.o: in function
printf_hook_create:jni/strongswan/src/libstrongswan/printf_hook.c:510:
error: undefined reference to 'vstr_free_conf'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libstrongswan.so] Error 1

BTW, jni/vstr/libvstr.a is there and it does have those symbols.

Andy


On Thu, Jan 3, 2013 at 9:43 AM, Andreas Steffen <
andreas.steffen at strongswan.org> wrote:

> Hi Andy,
>
> the PKCS#7 code was checked in sometime in December, so please try
> the 5.0.1 tag.
>
> Regards
>
> Andreas
>
>
> On 03.01.2013 02:37, DreamDreams wrote:
>
>> Yes I did exactly that. The cloned SSL source doesn't have cms.h. Would
>> point me an older tag that I could check out just to temporarily resolve
>> this?
>>
>> Thanks
>> Andy
>>
>>
>> On Thu, Jan 3, 2013 at 9:30 AM, Andreas Steffen
>> <andreas.steffen at strongswan.**org <andreas.steffen at strongswan.org><mailto:
>> andreas.steffen@**strongswan.org <andreas.steffen at strongswan.org>>>
>>
>> wrote:
>>
>>     Hello Andy,
>>
>>     our instructions recommend to get the openssl code and header
>>     files from our repository:
>>
>>        The openssl Directory
>>
>>        This directory contains the sources for a version of OpenSSL
>>        specially prepared for the build within the Android NDK.
>>        The easiest way to get these sources is to check it out directly
>>        from our Git server:
>>
>>        git clone git://git.strongswan.org/__**android-ndk-openssl.git<http://git.strongswan.org/__android-ndk-openssl.git>
>>     <http://git.strongswan.org/**android-ndk-openssl.git<http://git.strongswan.org/android-ndk-openssl.git>>
>> -b ndk jni/openssl
>>
>>
>>     Did you do that step? If yes, then the recent inclusion of PKCS#7
>>     support into the strongSwan code base might have broken the Android
>>     build and Tobias must fix it.
>>
>>     Regards
>>
>>     Andreas
>>
>>
>>     On 02.01.2013 15:34, DreamDreams wrote:
>>
>>         Dear list,
>>
>>         I'm trying to compile android client from source following this
>>         instruction
>>         <http://wiki.strongswan.org/__**projects/strongswan/wiki/__**
>> AndroidVPNClient<http://wiki.strongswan.org/__projects/strongswan/wiki/__AndroidVPNClient>
>>
>>         <http://wiki.strongswan.org/**projects/strongswan/wiki/**
>> AndroidVPNClient<http://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClient>
>> >>.
>>
>>         But when I ran ndk-build I got this error message:
>>
>>         jni/strongswan/src/__**libstrongswan/plugins/openssl/**
>> __openssl_pkcs7.c:24:25:
>>
>>         fatal error: openssl/cms.h: No such file or directory.
>>
>>         Any idea?
>>
>>         Thanks
>>         Andy
>>
>
> ==============================**==============================**==========
> Andreas Steffen                         andreas.steffen at strongswan.org
> strongSwan - the Linux VPN Solution!                www.strongswan.org
> Institute for Internet Technologies and Applications
> University of Applied Sciences Rapperswil
> CH-8640 Rapperswil (Switzerland)
> ==============================**=============================[**ITA-HSR]==
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20130103/ac6834a9/attachment.html>


More information about the Users mailing list