Thank you Alberto,

I managed to fix that bug too editing the LISPmob_JNI.java adding:

static {
    System.loadLibrary("json-c");
}

before the lispd one, and renaming the call in lispd_jni.h as following:

JNIEXPORT jintArray JNICALL Java_org_lispmob_noroot_LISPmob_JNI_startLispd
  (JNIEnv * env, jclass cl, jint vpn_tun_fd, jstring storage_path);

or, at least, this way the daemon started... :-)

May I get the sources of the last version (0.4.2)?


Anyway, even with the apk that you kindly sent me, when I try to reach 
lispmon.net the browser just freeze :-(

If it could be of some relevance, looking the log [Android]:

Map Notify confirms correct registration of the prefix 153.16.51.48/32
So where could be the problem? In router mode? Because right now on Linux 
(3G<->VirtualRouter<->WiFi<->Ubuntu) it works perfectly (I had troubles some 
days ago), but only if router mode = on. In router mode = off, I get only this 
[Linux]:

get_rloc_from_balancing_locator_vec: Source and destination RLOCs have 
different AFI

and nothing more :-(


My project is to extend the LISPmob noroot version in order to enable multiple 
EIDs on the same interface in a MN scenario. Do you have some hints?


Again, many thanks,

Luca


________________________________
Da: Alberto Rodriguez-Natal <[email protected]>
Inviato: lunedì 15 dicembre 2014 15:40
A: Lori Jakab
Cc: Luca Stornaiuolo; LISPmob
Oggetto: Re: [LISPmob-users] [Contactus-android] [Android] Beta network EID

Hi Luca,

Regarding the Android issue, please see below.

On Mon, Dec 15, 2014 at 2:51 PM, Lori Jakab 
<[email protected]<mailto:[email protected]>> wrote:
Hi Luca,

Adding the lispmob-users mailing list, since I'm not familiar with the
Android build system of LISPmob.  Answers to some of the other questions
below.

On 12/13/2014 05:55 PM, Luca Stornaiuolo wrote:
> Hi Lori,
> in these days I'm testing LISPmob noroot with no luck at all.
> I tried the Play Store one and I tried to build it myself with the same
> result: crash when I try to start the lispd.
> On Sony Xperia ST27i, Android 4.1.2, I got the following:
>
> java.lang.ExceptionInInitializerError
>
> at org.lispmob.noroot.LISPmobVPNService.run(LISPmobVPNervice.java:123)
>
> at java.lang.Thread.run(Thread.java:856)
>
> Caused by: java.lang.UnsatisfiedLinkError: Cannot load library:
> link_image[1891]: 1416 could not load needed library 'libjson-c.so' for
> 'liblispd.so' (load_library[1093]: Library 'libjson-c.so' not found)
>
> at java.lang.Runtime.loadLibrary(Runtime.java:370)
>
> at java.lang.System.loadLibrary(System.java: 535)
>
> at org.lispmob.noroot.LISPmob_JNI.<clinit>(LISPmob_JNI.java:12)
> ... 2 more
>
> I'm quite new to Android but I think that the reason may be in
> LISPmob_JNI.java (which shouldn't explicitly load libjson-c? I found
> this
> <http://stackoverflow.com/questions/21051486/java-lang-unsatisfiedlinkerror-cannot-load-library>).
>
>

We have encountered this problem before, and fortunately for you it has been 
already fixed ;). However we are yet to upload the fixed app to Google Play. On 
the meantime you can use the attached .apk which should work fine. Keep us 
updated of your progress!

Thanks,
Alberto

Reply via email to