Strongswan 4.5.1 doesn't build with Andorid Froyo (2.2) source
I just followed the wikipages to build/integrate Strongswan with Android 2.2. I used the 4.5.1 version but "make" ended with:
target arm C: libstrongswan <= external/strongswan/src/libstrongswan/settings.c
external/strongswan/src/libstrongswan/settings.c:23:18: error: glob.h: No such file or directory
external/strongswan/src/libstrongswan/settings.c: In function 'parse_files':
external/strongswan/src/libstrongswan/settings.c:961: error: 'glob_t' undeclared (first use in this function)
external/strongswan/src/libstrongswan/settings.c:961: error: (Each undeclared identifier is reported only once
external/strongswan/src/libstrongswan/settings.c:961: error: for each function it appears in.)
external/strongswan/src/libstrongswan/settings.c:961: error: expected ';' before 'buf'
external/strongswan/src/libstrongswan/settings.c:997: warning: implicit declaration of function 'glob'
external/strongswan/src/libstrongswan/settings.c:997: error: 'GLOB_ERR' undeclared (first use in this function)
external/strongswan/src/libstrongswan/settings.c:997: error: 'buf' undeclared (first use in this function)
external/strongswan/src/libstrongswan/settings.c:998: error: 'GLOB_NOMATCH' undeclared (first use in this function)
external/strongswan/src/libstrongswan/settings.c:1018: warning: implicit declaration of function 'globfree'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstrongswan_intermediates/settings.o] Error 1
I think the reason is that the glob.h / glob.c aren't available on android .
It worked with 4.5.0 - at least compiled and the VPN settings includes the new position. I haven't created any vpn tunnels so far.
My OS is Ubuntu 10.04, Java 1.5.22, Android Froyo (2.2).
#2 Updated by Tobias Brunner over 11 years ago
- Status changed from Assigned to Resolved
Also, commit 56617336 updates the file lists in the Android.mk files to the latest lists in the Makefile.am files. If you apply this patch to 4.5.1 make sure to delete the reference to the three sim_*.h files in src/libcharon/Android.mk since those were added after the 4.5.1 release.