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
 
-Then I used droid-gcc to build the vstr library adjusting DROID_ROOT to my 
concerned directory (/home/antoine/android-2.2.1)
PS:The custom kernel is not yet built because I have planned to it after 
compiling the entire android sources including strongswan. It should normally 
won't be disturbing?
 
-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?
Is there something I did wrong?
 
Regards,
 
Antoine
 
 
_______________________________________________
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users

Reply via email to