[strongSwan] Strongswan on android 2.2

antoine.david at fr.thalesgroup.com antoine.david at fr.thalesgroup.com
Tue Mar 22 10:25:01 CET 2011


Hi,
 
As part of my internship I am trying to build strongswan on Android 2.2.
I have followed these steps using the special HOWTO for android provided on the strongswan website:
 
-I have downloaded the android 2.2.1 sources using repo
 
-I have built the sources (without strongswan) using the arm-eabi-gcc cross-compiler provided by the toolchain:
        cd /home/antoine/android-2.2.1
        . build/envsetup.sh
        lunch 1
        make
 
-I have recovered the sources of the android-goldfish-2.6.29 branch of the kernel common project. Then I enabled the missing modules and built the kernel.
 
-Then I used droid-gcc to build the vstr library adjusting DROID_ROOT to my concerned directory (/home/antoine/android-2.2.1)
 
-I have donwloaded the last strongswan tarball (strongswan-4.5.1.tar.bz2) on the website and extracted it in my DROID_ROOT/external 
 
-Then when I try to re-build the android source tree 
        cd /home/antoine/android-2.2.1
        make
 
I get this error:

external/strongswan-4.5.1/src/libstrongswan/settings.c:23:18: error: glob.h: No such file or directory
external/strongswan-4.5.1/src/libstrongswan/settings.c: In function 'parse_files':
external/strongswan-4.5.1/src/libstrongswan/settings.c:961: error: 'glob_t' undeclared (first use in this function)
external/strongswan-4.5.1/src/libstrongswan/settings.c:961: error: (Each undeclared identifier is reported only once
external/strongswan-4.5.1/src/libstrongswan/settings.c:961: error: for each function it appears in.)
external/strongswan-4.5.1/src/libstrongswan/settings.c:961: error: expected ';' before 'buf'
external/strongswan-4.5.1/src/libstrongswan/settings.c:997: warning: implicit declaration of function 'glob'
external/strongswan-4.5.1/src/libstrongswan/settings.c:997: error: 'GLOB_ERR' undeclared (first use in this function)
external/strongswan-4.5.1/src/libstrongswan/settings.c:997: error: 'buf' undeclared (first use in this function)
external/strongswan-4.5.1/src/libstrongswan/settings.c:998: error: 'GLOB_NOMATCH' undeclared (first use in this function)
external/strongswan-4.5.1/src/libstrongswan/settings.c:1018: warning: implicit declaration of function 'globfree'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstrongswan_intermediates/settings.o] Erreur
 
The compiler doesn't find the glob.h file. Indeed this file is part of the glibc library of my linux host system but is not present in the libc for android, provided in DROID_ROOT/bionic. Android seems to have a partial support of the glibc. 
 
How could I fix this error and build strongswan?
Is there something I did wrong?
 
Regards,
 
Antoine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20110322/3184730f/attachment.html>


More information about the Users mailing list