Bug #125
Strongswan 4.5.1 doesn't build with Andorid Froyo (2.2) source
Description
Hi!
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).
Best regards,
Łukasz Grzesik
History
#1 Updated by Tobias Brunner over 14 years ago
- Status changed from New to Assigned
- Assignee changed from Martin Willi to Tobias Brunner
- Target version set to 4.5.2
#2 Updated by Tobias Brunner over 14 years ago
- Status changed from Assigned to Resolved
I have pushed fixes for the glob.h problem to master (see commit:a6390879 which requires commit:913591ec).
There are other issues with 4.5.1 that prevent a successful build on Android (see commit:3eede762 and commit:f5958b62).
Also, commit 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.
#3 Updated by Tobias Brunner over 14 years ago
- Status changed from Resolved to Closed