Hello,
Thank you for the fix. It fixed our problem, too! I appreciate your great help.
We don't have any debugging tool for android native development. Without debugging tools, it's very hard to find bugs. If you don't mind, could you tell me how did you find it?
Best Regards, Yoshimi Fujii
(2012/10/03 5:48), gjohnson@ltsnet.net wrote:
Hello,
I also got a segmentation fault when trying to run my statically built executable. I debugged the segmentation fault and there was a line in EID.cpp (in ibrdtn/data folder) that was causing it. I changed that line and things worked after that.
I'm not sure if you are getting a segmentation fault for the same reason, but below is the change I made to the default constructor that fixed things for me
EID::EID() //: _scheme(DEFAULT_SCHEME), _ssp("none") // { //cout << "about to assign to _scheme" << endl; //cout << " DEFAULT_SCHEME = " << DEFAULT_SCHEME << endl; _scheme = "dtn"; _ssp = "none";
}
Regards, Gleneesha
Send Ibr-dtn mailing list submissions to ibr-dtn@ibr.cs.tu-bs.de
To subscribe or unsubscribe via the World Wide Web, visit https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn or, via email, send a message with subject or body 'help' to ibr-dtn-request@ibr.cs.tu-bs.de
You can reach the person managing the list at ibr-dtn-owner@ibr.cs.tu-bs.de
When replying, please edit your Subject line so it is more specific than "Re: Contents of Ibr-dtn digest..."
Today's Topics:
1. Re: How to build native dtnd binary for Android from source? (Yoshimi Fujii)
Message: 1 Date: Thu, 27 Sep 2012 20:30:11 +0900 From: Yoshimi Fujii yfujii@kke.co.jp Subject: Re: [ibr-dtn] How to build native dtnd binary for Android from source? To: ibr-dtn@ibr.cs.tu-bs.de Message-ID: 506438C3.1020503@kke.co.jp Content-Type: text/plain; charset="iso-2022-jp"
Hello,
We are still trying to build dtnd for Android using buildroot. Build seemed to be successful and 'file dtnd' shows:
"ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped".
However, when we run the binary, cause "Segmentation fault". What's wrong with us?
We built very simple application like "hello world" using buildroot and it runs on Android successfully.
Attached is the config file which we used for building dtnd.
Thanks, Yoshimi Fujii