Android Charon.log: feature CUSTOM:libcharon-receiver in critical plugin 'charon' has unmet dependency: CUSTOM:socket
Long story short: I am using code within the src/frontents/Android project to build a wrapper for the Android VPN client you have created.
I can build and run YOUR Android project on my test device without issue. I am having difficulty accessing the C libraries directly from my own Android studio project. Specifically, after trying to establish a connection the charon.log on the device gives me this:
Aug 24 11:30:32 00[DMN] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Aug 24 11:30:32 00[DMN] Starting IKE service (strongSwan 5.9.0, Android 10 - QQ3A.200805.001/2020-08-05, Pixel 2 XL - google/taimen/Google, Linux 4.4.210-g4fecde07e68d, aarch64)
Aug 24 11:30:32 00[LIB] feature CUSTOM:libcharon-receiver in critical plugin 'charon' has unmet dependency: CUSTOM:socket
Aug 24 11:30:32 00[LIB] feature CUSTOM:libcharon in critical plugin 'charon' has unmet dependency: CUSTOM:libcharon-receiver
Aug 24 11:30:32 00[LIB] feature CUSTOM:android-backend in critical plugin 'androidbridge' has unmet dependency: CUSTOM:libcharon
Aug 24 11:30:32 00[LIB] failed to load 3 critical plugin features
Aug 24 11:30:42 00[DMN] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<This then repeats>
I am not sure what I am doing wrong, as I do not get this error when compiling and running YOUR Android project. Charon.log does not show these plugin errors when built from the base frontents/Android project.
In order to build the C libraries in my project I am using the same Android.mk from YOUR Android project. Compilation of C libraries and Android specific build works without issue.
The build the project as a whole I have followed the instructions here:
./autogen.sh && ./configure && make dist
git clone git://git.strongswan.org/android-ndk-boringssl.git -b ndk-static openssl (in src/frontends/android/app/src/main/jni/)
I have also tried ./configure by including several options to see if I can somehow include CUSTOM:socket.
I have tried
./configure --disable-socket-default --enable-socket-dynamic
Hoping you can point me in the right direction.