[strongSwan] Build error for porting strongswan on Android GB device

mrunal upadhyay mrunalu1 at gmail.com
Mon May 7 07:11:25 CEST 2012


Dear Experts,

I am trying to port the strongswan code onto a device having GB OS. I
have followed the below steps:

1. Build the vstr library based on the steps mentioned on the wiki.
2. copied the strongswan code to android/external/strongswan4.6.2 and
did ./configure, make install.
3. tried to build the Android code.

I am getting the following error when I tried to build the code.

Install: out/target/product/SCH-I405/system/bin/fsck_msdos
Install: out/target/product/SCH-I405/system/lib/libiprouteutil.so
Install: out/target/product/SCH-I405/system/lib/libnetlink.so
target Strip: keystore
(out/target/product/SCH-I405/obj/EXECUTABLES/keystore_intermediates/keystore)
target Strip: macloader
(out/target/product/SCH-I405/obj/EXECUTABLES/macloader_intermediates/macloader)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function printf_hook_create:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:488:
error: undefined reference to 'vstr_init'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function printf_hook_create:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:498:
error: undefined reference to 'vstr_free_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function custom_fmt_cb:external/strongswan-support/include/vstr-inline.h:619:
error: undefined reference to 'vstr_extern_inline_add_buf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:212:
error: undefined reference to 'vstr_make_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:213:
error: undefined reference to 'vstr_cntl_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:214:
error: undefined reference to 'vstr_cntl_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:216:
error: undefined reference to 'vstr_cntl_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:188:
error: undefined reference to 'vstr_fmt_add'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:192:
error: undefined reference to 'vstr_fmt_add'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function get_vstr_conf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:196:
error: undefined reference to 'vstr_fmt_add'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function destroy:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:454:
error: undefined reference to 'vstr_fmt_del'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function destroy:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:465:
error: undefined reference to 'vstr_free_conf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function destroy:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:466:
error: undefined reference to 'vstr_exit'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function add_handler:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:188:
error: undefined reference to 'vstr_fmt_add'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vsnprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:340:
error: undefined reference to 'vstr_make_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vsnprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:341:
error: undefined reference to 'vstr_add_vfmt'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vsnprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:343:
error: undefined reference to 'vstr_export_cstr_buf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vsnprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:344:
error: undefined reference to 'vstr_free_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vfprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:296:
error: undefined reference to 'vstr_make_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vfprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:297:
error: undefined reference to 'vstr_add_vfmt'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vfprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:301:
error: undefined reference to 'vstr_sc_write_fd'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vfprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:310:
error: undefined reference to 'vstr_free_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vasprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:340:
error: undefined reference to 'vstr_make_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vasprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:341:
error: undefined reference to 'vstr_add_vfmt'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vasprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:343:
error: undefined reference to 'vstr_export_cstr_buf'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vasprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:344:
error: undefined reference to 'vstr_free_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:296:
error: undefined reference to 'vstr_make_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:297:
error: undefined reference to 'vstr_add_vfmt'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:301:
error: undefined reference to 'vstr_sc_write_fd'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:310:
error: undefined reference to 'vstr_free_base'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld:
out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/printf_hook.o:
in function vstr_wrapper_vsprintf:external/strongswan-4.6.2/src/libstrongswan/printf_hook.c:343:
error: undefined reference to 'vstr_export_cstr_buf'
collect2: ld returned 1 exit status
make: *** [out/target/product/SCH-I405/obj/SHARED_LIBRARIES/libstrongswan_intermediates/LINKED/libstrongswan.so]
Error 1
make: *** Waiting for unfinished jobs....


Any valuable advice will be really helpful to me

-- 
Cheers,
Mrunal




More information about the Users mailing list