Hi Anand, > I am trying compile and link on Android platform, the xauth plugin for > pluto (..src/pluto/plugins/xauth..). > The libstrongswan-xauth.so is created, but during runtime, dlopen() > fails for this library with the following error:
What you need to know is that pluto is not officially supported on Android. We never actually tried to even compile it ourselves. For charon (the IKEv2 daemon) Android.mk files are provided to easily integrate it with the Android build system (see [1] for details). > plugin 'xauth' failed to load : Cannot load library: > reloc_library[1244]: 1931 cannot locate 'get_xauth_secret'... > It appears it's unable to load/link to symbols defined in pluto > itself. How exactly are you compiling strongSwan? Do you use droid-gcc [2]? Anyway, you will have to look for two things. First, since -rdynamic does not seem to work, you have to add "-Wl,--export-dynamic" directly. Second, you have to avoid that the "-Wl,--gc-sections" option is added, as this will remove any unused symbols in pluto (or at least make them local, thus unresolvable by plugins). If you use droid-gcc, add the first option to and remove the second option from link_args. Regards, Tobias [1] http://wiki.strongswan.org/projects/strongswan/wiki/Android [2] http://github.com/tmurakam/droid-wrapper/ _______________________________________________ Dev mailing list [email protected] https://lists.strongswan.org/mailman/listinfo/dev
