
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8NIDQ3r026869 for <dtn-users@maillists.intel-research.net>; Thu, 23 Sep 2010 11:13:26 -0700
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o8NIDR5f011412 for <dtn-users@maillists.intel-research.net>; Thu, 23 Sep 2010 14:13:27 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o8NIDRGe011401;  Thu, 23 Sep 2010 14:13:27 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Thu, 23 Sep 2010 14:13:27 -0400
From: "Scott, Keith L." <kscott@mitre.org>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>, "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Date: Thu, 23 Sep 2010 14:13:25 -0400
Thread-Topic: [dtn-users] DTN2 release plan...
Thread-Index: ActbHHyKMW2fpY+NS9eO+xuTRdByMQALkiCA
Message-ID: <0111C34BD897FD41841D60396F2AD3D304D3CCC9B5@IMCMBX2.MITRE.ORG>
References: <4C9B4A83.4030008@cs.tcd.ie>
In-Reply-To: <4C9B4A83.4030008@cs.tcd.ie>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o8NIDQ3r026869
Cc: DTN <dtn-interest@mailman.dtnrg.org>
Subject: Re: [dtn-users] DTN2 release plan...
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 23 Sep 2010 18:13:27 -0000

We've got some multicast extensions, some outputs from the NASA work, and a gossiping/anti-entropy DTN router we're working on that I would like to coordinate insertion of.

		--keith

-----Original Message-----
From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Stephen Farrell
Sent: Thursday, September 23, 2010 8:40 AM
To: dtn-users@maillists.intel-research.net
Cc: DTN
Subject: [dtn-users] DTN2 release plan...


Hiya,

We're thinking of getting started on a process to do a DTN2 2.8 for
release early in the new year, probably in Feb/Mar.

The main reason for us is that we have a number of changes and
additions from the N4C project that should be pushed out before that
project finishes at the end of April. I know there are a few other
folks who have things they've developed who'd also like to get them
into a DTN2 release, so if you're interested in helping with this
or have code you'd like to get into that release, then please
reply to this (just on the dtn-users list please) and we can start
the job of seeing what to include and who can do what to get it
done.

Thanks,
Stephen.



_______________________________________________
dtn-users mailing list
dtn-users@maillists.intel-research.net
http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8NI7j6d026611 for <dtn-users@maillists.intel-research.net>; Thu, 23 Sep 2010 11:07:45 -0700
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=us-ascii
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L9700A8MP0MA9A0@asmtp023.mac.com> for dtn-users@maillists.intel-research.net; Thu, 23 Sep 2010 11:07:37 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009230148
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-23_12:2010-09-23, 2010-09-23, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
In-reply-to: <4C9B4A83.4030008@cs.tcd.ie>
Date: Thu, 23 Sep 2010 19:07:34 +0100
Message-id: <24F02B73-EFC3-46D1-B446-7459AEA34B08@mac.com>
References: <4C9B4A83.4030008@cs.tcd.ie>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
X-Mailer: Apple Mail (2.1081)
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] [dtn-interest] DTN2 release plan...
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 23 Sep 2010 18:07:45 -0000

Hi,

I'd like the AX.25 Connected Mode CL to make it into the next release, though I'm guessing that as it is in the upstream repo already, it will be probably be in the release by default.  

I've got some  tweaks for it which I've not pushed upstream yet, and I've started to knock up a discovery mechanism too which I'd hope would be useable in the timeframe you mention. 

Cheers,

Darren

On 23 Sep 2010, at 13:39, Stephen Farrell wrote:

> 
> Hiya,
> 
> We're thinking of getting started on a process to do a DTN2 2.8 for
> release early in the new year, probably in Feb/Mar.
> 
> The main reason for us is that we have a number of changes and
> additions from the N4C project that should be pushed out before that
> project finishes at the end of April. I know there are a few other
> folks who have things they've developed who'd also like to get them
> into a DTN2 release, so if you're interested in helping with this
> or have code you'd like to get into that release, then please
> reply to this (just on the dtn-users list please) and we can start
> the job of seeing what to include and who can do what to get it
> done.
> 
> Thanks,
> Stephen.
> 
> 
> 
> _______________________________________________
> dtn-interest mailing list
> dtn-interest@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-interest



Received: from auth.c.painless.aaisp.net.uk ([81.187.30.63]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8NHh0j5025390 for <dtn-users@maillists.intel-research.net>; Thu, 23 Sep 2010 10:43:00 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by c.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1Oypoi-0002Ty-Ax; Thu, 23 Sep 2010 18:43:00 +0100
Message-ID: <4C9B9190.7020407@folly.org.uk>
Date: Thu, 23 Sep 2010 18:42:40 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
References: <4C9B4A83.4030008@cs.tcd.ie>
In-Reply-To: <4C9B4A83.4030008@cs.tcd.ie>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users <dtn-users@maillists.intel-research.net>
Subject: Re: [dtn-users] DTN2 release plan...
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 23 Sep 2010 17:43:01 -0000

Hi.

Sounds like a good idea. Count me in.

I have a number of things which I have done or am planning to do over 
the next few months:
- Look at some problems I identified while writing the functional spec 
(documented within the fs).
- Add a few bug fixes including the one that Darren Long found a couple 
of weeks ago in the Python interface for which we have a fix.
- Improve the manual particularly as regards the TCL configuration 
commands. I have the full text in the fs already. Need to decide on the 
format for an HTML version (preferably by setting up a suitable CSS - i 
have discussed this with Alex McMahon in the past). One approach would 
be to use the same CSS that Doxygen uses so that the manual has the same 
look and feel as the auto-generated Doxygen stuff. BTW we have also got 
an improved version of the Doxygen config that produces more diagrams.
- I am intending to develop a new and more integrated version of the 
PRoPHET routing protocol stack over the next few months.

Regards,
Elwyn

Stephen Farrell wrote:
> Hiya,
>
> We're thinking of getting started on a process to do a DTN2 2.8 for
> release early in the new year, probably in Feb/Mar.
>
> The main reason for us is that we have a number of changes and
> additions from the N4C project that should be pushed out before that
> project finishes at the end of April. I know there are a few other
> folks who have things they've developed who'd also like to get them
> into a DTN2 release, so if you're interested in helping with this
> or have code you'd like to get into that release, then please
> reply to this (just on the dtn-users list please) and we can start
> the job of seeing what to include and who can do what to get it
> done.
>
> Thanks,
> Stephen.
>
>
>
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>   



Received: from scss.tcd.ie (hermes.cs.tcd.ie [134.226.32.56]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8NCdqQG010465 for <dtn-users@maillists.intel-research.net>; Thu, 23 Sep 2010 05:39:53 -0700
Received: from localhost (localhost [127.0.0.1]) by hermes.scss.tcd.ie (Postfix) with ESMTP id C9EF63E40C8; Thu, 23 Sep 2010 13:39:53 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from scss.tcd.ie ([127.0.0.1]) by localhost (scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id UjNzgINRUkY9; Thu, 23 Sep 2010 13:39:53 +0100 (IST)
Received: from [134.226.36.137] (stephen-samy.dsg.cs.tcd.ie [134.226.36.137]) by smtp.scss.tcd.ie (Postfix) with ESMTPSA id D017D3E4074; Thu, 23 Sep 2010 13:39:52 +0100 (IST)
Message-ID: <4C9B4A83.4030008@cs.tcd.ie>
Date: Thu, 23 Sep 2010 13:39:31 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Lightning/1.0b1 Thunderbird/3.0.8
MIME-Version: 1.0
To: dtn-users@maillists.intel-research.net
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: DTN <dtn-interest@mailman.dtnrg.org>
Subject: [dtn-users] DTN2 release plan...
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 23 Sep 2010 12:39:53 -0000

Hiya,

We're thinking of getting started on a process to do a DTN2 2.8 for
release early in the new year, probably in Feb/Mar.

The main reason for us is that we have a number of changes and
additions from the N4C project that should be pushed out before that
project finishes at the end of April. I know there are a few other
folks who have things they've developed who'd also like to get them
into a DTN2 release, so if you're interested in helping with this
or have code you'd like to get into that release, then please
reply to this (just on the dtn-users list please) and we can start
the job of seeing what to include and who can do what to get it
done.

Thanks,
Stephen.





Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8LLPNXh026048 for <dtn-users@maillists.intel-research.net>; Tue, 21 Sep 2010 14:25:24 -0700
Received: by yxk8 with SMTP id 8so2394964yxk.28 for <dtn-users@maillists.intel-research.net>; Tue, 21 Sep 2010 14:25:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.7.15 with SMTP id k15mr11351820ybi.383.1285104327830; Tue, 21 Sep 2010 14:25:27 -0700 (PDT)
Received: by 10.150.52.19 with HTTP; Tue, 21 Sep 2010 14:25:27 -0700 (PDT)
Date: Tue, 21 Sep 2010 17:25:27 -0400
Message-ID: <AANLkTimhsUh8EJugcpTz+ueQxW+JU54Nf3CXShYE=7Xm@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] questions regarding dtn address resolution in DTN2
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Tue, 21 Sep 2010 21:25:25 -0000

I've been trying to follow comments in dtn.conf, but the proper use of
 "routes", "linkes" and "interfaces" still evades me...

For example, suppose I would like me DTN2 daemon "A" on 10.0.1.1 to
forward bundles to the daemon "B" bound to interface
udp://10.0.1.2:4444. What entries in "conf" files on "A" and "B"
should I make?
Should i add
interface add udp 0 udp
route add  10.0.1.2:4444 udp0 - on host A

link add link1  dtn://hostA/* ONDEMAND udp - on host B ?

Is it possible to have multiple udp interfaces with one network interface?

I'd appreciate if someone clarify this.
Thank you,
-V


Received: from b.painless.aaisp.net.uk (b.painless.aaisp.net.uk [81.187.30.52]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8HCXLl7017103 for <dtn-users@maillists.intel-research.net>; Fri, 17 Sep 2010 05:33:22 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by b.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1Owa7s-0000CL-6L; Fri, 17 Sep 2010 13:33:17 +0100
Message-ID: <4C936004.5020706@folly.org.uk>
Date: Fri, 17 Sep 2010 13:33:08 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Darren Long <darren.long@mac.com>
References: <1284649477.1594.16.camel@n900> <4C9257CE.7030306@folly.org.uk> <C9D1E1F7-F516-4536-B8F3-A9B53D399298@mac.com> <4C928E8E.4090107@folly.org.uk> <1284724269.1594.19.camel@n900>
In-Reply-To: <1284724269.1594.19.camel@n900>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Sep 2010 12:33:22 -0000

Darren Long wrote:
> Hi,
>
> Yep, I confirm that your proposed fix works for me.
>
> Darren
>   
Great!  I'll file a bug report and update the source code in due course 
(I'm supposed to be having a break this week!)

Thanks for testing this.

Regards,
Elwyn
> ----- Original message -----
>   
>> Hi, Darren.
>>
>> A couple of points in line...
>>
>> Darren Long wrote:
>>     
>>> Hi,
>>>
>>> Thanks for the pointers.
>>>
>>> On 16 Sep 2010, at 18:45, Elwyn Davies wrote:
>>>
>>>
>>>       
>>>> Hi, Darren.
>>>>
>>>> I have used the Python wrappers but as it turns out not the
>>>> dtn_cancel wrapper.
>>>>
>>>> Having had a look through the code, I notice:
>>>> 1. The Python test code in applib/python/test-swig-api.py doesn't
>>>> exercise dtn_cancel.
>>>>
>>>>         
>>> Actually, I was originally only wondering about whether or not the
>>> core bundle cancel functionality worked as I'd never tried it and
>>> figured I'd test it quickly by hacking test-swig-api.py to call it. 
>>> At least I know know that it works in the core system, even if there
>>> is an issue with the python bindings.   Still, it would be good to
>>> figure out a fix for it, as I have a couple of minor python projects
>>> for dtn on the slow cooker :)
>>>
>>>       
>> I think the fix is extremely simple... more below.
>>     
>>>> 2. The dtn_api_wrap.cc (from which I believe the SWIG code is
>>>> generated does not explicitly set the frag_offset and orig_length
>>>> fields in the bundle_id_t structure which is passed across to the
>>>> api server (the C++
>>>>
>>>>         
>>> I keep forgetting that's there's actually a C++ wrapper for a C++ core
>>> with a C API, perhaps deliberately.
>>>
>>>
>>>       
>> It's a little strange. The C interface (which stems from using the Sun 
>> RPC tools to generate the interface code) uses the full bundle_id_t 
>> directly so that in principle fragment bundles can be deleted while the 
>> script wrappers use the reduced form that can only handle complete 
>> bundles. Of course if you are only interested in canceling bundles that 
>> were generated locally this may not be a problem - although I am not 
>> sure what happens if the bundle gets fragmented before sending.
>>
>> I guess it worked with the hacked dtnping because you sent the 
>> dtn_bundle_id_t structure you got from dtn_send straight back to 
>> dtn_cancel in which case the extra fields are already set to zero.
>>
>> The Python interface to dtn_send returns the truncated form as well if I 
>> understand correctly.
>>
>>     
>>>> and Python APIs for bundle_id just take the source string and the
>>>> bundle timestamp as parameters whereas the RPC interface can handle
>>>> a fragment identifier). The applib/APIserver.cc code looks at these
>>>> two unset variables. This is possibly the cause of the problem. The
>>>> DTN server should emit a warning if it can't find the bundle to be
>>>> cancelled - the search parameters derived from the dtn_cancel call
>>>> are printed in the warning - check the 4th, 5th and 6th items
>>>> printed in the warning message. If the 5th or 6th is non-zero then
>>>> the search has looked for a fragment and won't have found it.
>>>>
>>>>         
>>> That rings bells.   The dtnd log did show warnings from the api and
>>> there were a bunch of large numbers in the shown params to dtn_cancel
>>> that I'd   not yet distinguished the meanings of.
>>>
>>>       
>> Check out APIserver.cc and servlib/bundling/gbofid.cc to see what the 
>> output means.
>>
>> As far as I can see the fix is very simple: Modify
>> applib/dtn_api_wrap.cc: *** dtn_api_wrap.cc.old 2010-09-16
>> 22:19:46.000000000 +0100 --- dtn_api_wrap.cc 2010-09-16
>> 22:21:53.000000000 +0100 ***************
>> *** 288,293 ****
>> --- 288,295 ----
>> strcpy(id2.source.uri, id.source.c_str());
>> id2.creation_ts.secs = id.creation_secs;
>> id2.creation_ts.seqno = id.creation_seqno;
>> + id2.frag_offset = 0;
>> + id2.orig_length = 0;
>> return dtn_cancel(h, &id2);
>> }
>>
>> You'll need to install swig to regenerate the Python interface code and 
>> then execute
>> make swig
>> in the applib directory.
>>
>> Then rebuild the Python module and reinstall it.
>> make pythonapi; make pythonapi_install
>>
>> Regards,
>> Elwyn
>>     
>>>       
>>>> I think you have hit a bug here but I haven't experimented yet.
>>>>
>>>>         
>>>       
>>> I guess I deserved to hit a bug as I wondered if it worked :)
>>>
>>> Out of curiosity, I checked out folly.org.uk, it seems I'm just down
>>> the A14 from you, In Bury St Edmunds.
>>>
>>> Cheers,
>>>
>>> Darren
>>>
>>>       
>
>   



Received: from asmtpout016.mac.com (asmtpout016.mac.com [17.148.16.91]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8HBpKEq015094 for <dtn-users@maillists.intel-research.net>; Fri, 17 Sep 2010 04:51:20 -0700
MIME-version: 1.0
Content-transfer-encoding: 8BIT
Content-type: text/plain; charset=utf-8
Received: from [10.186.73.245] (nat67.mia.three.co.uk [217.171.129.67]) by asmtp016.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L8W001H13LDZI00@asmtp016.mac.com> for dtn-users@maillists.intel-research.net; Fri, 17 Sep 2010 04:51:18 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009170047
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-17_05:2010-09-17, 2010-09-17, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
To: Elwyn Davies <elwynd@folly.org.uk>
X-Mailer: Modest 3.2
References: <1284649477.1594.16.camel@n900> <4C9257CE.7030306@folly.org.uk> <C9D1E1F7-F516-4536-B8F3-A9B53D399298@mac.com> <4C928E8E.4090107@folly.org.uk>
In-reply-to: <4C928E8E.4090107@folly.org.uk>
Content-id: <1284724268.1594.18.camel@n900>
Date: Fri, 17 Sep 2010 12:51:09 +0100
Message-id: <1284724269.1594.19.camel@n900>
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Darren Long <darren.long@mac.com>
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Fri, 17 Sep 2010 11:51:21 -0000

Hi,

Yep, I confirm that your proposed fix works for me.

Darren

----- Original message -----
> Hi, Darren.
> 
> A couple of points in line...
> 
> Darren Long wrote:
> > Hi,
> > 
> > Thanks for the pointers.
> > 
> > On 16 Sep 2010, at 18:45, Elwyn Davies wrote:
> > 
> > 
> > > Hi, Darren.
> > > 
> > > I have used the Python wrappers but as it turns out not the
> > > dtn_cancel wrapper.
> > > 
> > > Having had a look through the code, I notice:
> > > 1. The Python test code in applib/python/test-swig-api.py doesn't
> > > exercise dtn_cancel.
> > > 
> > 
> > Actually, I was originally only wondering about whether or not the
> > core bundle cancel functionality worked as I'd never tried it and
> > figured I'd test it quickly by hacking test-swig-api.py to call it. 
> > At least I know know that it works in the core system, even if there
> > is an issue with the python bindings.Â   Still, it would be good to
> > figure out a fix for it, as I have a couple of minor python projects
> > for dtn on the slow cooker :)
> > 
> I think the fix is extremely simple... more below.
> > 
> > > 2. The dtn_api_wrap.cc (from which I believe the SWIG code is
> > > generated does not explicitly set the frag_offset and orig_length
> > > fields in the bundle_id_t structure which is passed across to the
> > > api server (the C++
> > > 
> > 
> > I keep forgetting that's there's actually a C++ wrapper for a C++ core
> > with a C API, perhaps deliberately.
> > 
> > 
> It's a little strange. The C interface (which stems from using the Sun 
> RPC tools to generate the interface code) uses the full bundle_id_t 
> directly so that in principle fragment bundles can be deleted while the 
> script wrappers use the reduced form that can only handle complete 
> bundles. Of course if you are only interested in canceling bundles that 
> were generated locally this may not be a problem - although I am not 
> sure what happens if the bundle gets fragmented before sending.
> 
> I guess it worked with the hacked dtnping because you sent the 
> dtn_bundle_id_t structure you got from dtn_send straight back to 
> dtn_cancel in which case the extra fields are already set to zero.
> 
> The Python interface to dtn_send returns the truncated form as well if I 
> understand correctly.
> 
> > > and Python APIs for bundle_id just take the source string and the
> > > bundle timestamp as parameters whereas the RPC interface can handle
> > > a fragment identifier). The applib/APIserver.cc code looks at these
> > > two unset variables. This is possibly the cause of the problem. The
> > > DTN server should emit a warning if it can't find the bundle to be
> > > cancelled - the search parameters derived from the dtn_cancel call
> > > are printed in the warning - check the 4th, 5th and 6th items
> > > printed in the warning message. If the 5th or 6th is non-zero then
> > > the search has looked for a fragment and won't have found it.
> > > 
> > 
> > That rings bells.Â   The dtnd log did show warnings from the api and
> > there were a bunch of large numbers in the shown params to dtn_cancel
> > that I'dÂ   not yet distinguished the meanings of.
> > 
> Check out APIserver.cc and servlib/bundling/gbofid.cc to see what the 
> output means.
> 
> As far as I can see the fix is very simple: Modify
> applib/dtn_api_wrap.cc: *** dtn_api_wrap.cc.old 2010-09-16
> 22:19:46.000000000 +0100 --- dtn_api_wrap.cc 2010-09-16
> 22:21:53.000000000 +0100 ***************
> *** 288,293 ****
> --- 288,295 ----
> strcpy(id2.source.uri, id.source.c_str());
> id2.creation_ts.secs = id.creation_secs;
> id2.creation_ts.seqno = id.creation_seqno;
> + id2.frag_offset = 0;
> + id2.orig_length = 0;
> return dtn_cancel(h, &id2);
> }
> 
> You'll need to install swig to regenerate the Python interface code and 
> then execute
> make swig
> in the applib directory.
> 
> Then rebuild the Python module and reinstall it.
> make pythonapi; make pythonapi_install
> 
> Regards,
> Elwyn
> > 
> > 
> > > I think you have hit a bug here but I haven't experimented yet.
> > > 
> > 
> > 
> 
> > I guess I deserved to hit a bug as I wondered if it worked :)
> > 
> > Out of curiosity, I checked out folly.org.uk, it seems I'm just down
> > the A14 from you, In Bury St Edmunds.
> > 
> > Cheers,
> > 
> > Darren
> > 
> 



Received: from a.painless.aaisp.net.uk (a.painless.aaisp.net.uk [81.187.30.51]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8GLdZtS006340 for <dtn-users@maillists.intel-research.net>; Thu, 16 Sep 2010 14:39:36 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by a.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1OwMB2-0004G5-7K; Thu, 16 Sep 2010 22:39:33 +0100
Message-ID: <4C928E8E.4090107@folly.org.uk>
Date: Thu, 16 Sep 2010 22:39:26 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Darren Long <darren.long@mac.com>
References: <1284649477.1594.16.camel@n900> <4C9257CE.7030306@folly.org.uk> <C9D1E1F7-F516-4536-B8F3-A9B53D399298@mac.com>
In-Reply-To: <C9D1E1F7-F516-4536-B8F3-A9B53D399298@mac.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 21:39:37 -0000

Hi, Darren.

A couple of points in line...

Darren Long wrote:
> Hi,
>
> Thanks for the pointers.
>
> On 16 Sep 2010, at 18:45, Elwyn Davies wrote:
>
>   
>> Hi, Darren.
>>
>> I have used the Python wrappers but as it turns out not the dtn_cancel wrapper.
>>
>> Having had a look through the code, I notice:
>> 1. The Python test code in applib/python/test-swig-api.py doesn't exercise dtn_cancel.
>>     
>
> Actually, I was originally only wondering about whether or not the core bundle cancel functionality worked as I'd never tried it and figured I'd test it quickly by hacking test-swig-api.py to call it.  At least I know know that it works in the core system, even if there is an issue with the python bindings.  Still, it would be good to figure out a fix for it, as I have a couple of minor python projects for dtn on the slow cooker :)
>   
I think the fix is extremely simple... more below.
>   
>> 2. The dtn_api_wrap.cc (from which I believe the SWIG code is generated does not explicitly set the frag_offset and orig_length fields in the bundle_id_t structure which is passed across to the api server (the C++
>>     
>
> I keep forgetting that's there's actually a C++ wrapper for a C++ core with a C API, perhaps deliberately.
>
>   
It's a little strange. The C interface (which stems from using the Sun 
RPC tools to generate the interface code) uses the full bundle_id_t 
directly so that in principle fragment bundles can be deleted while the 
script wrappers use the reduced form that can only handle complete 
bundles. Of course if you are only interested in canceling bundles that 
were generated locally this may not be a problem - although I am not 
sure what happens if the bundle gets fragmented before sending.

I guess it worked with the hacked dtnping because you sent the 
dtn_bundle_id_t structure you got from dtn_send straight back to 
dtn_cancel in which case the extra fields are already set to zero.

The Python interface to dtn_send returns the truncated form as well if I 
understand correctly.

>> and Python APIs for bundle_id just take the source string and the bundle timestamp as parameters whereas the RPC interface can handle a fragment identifier). The applib/APIserver.cc code looks at these two unset variables. This is possibly the cause of the problem. The DTN server should emit a warning if it can't find the bundle to be cancelled - the search parameters derived from the dtn_cancel call are printed in the warning - check the 4th, 5th and 6th items printed in the warning message. If the 5th or 6th is non-zero then the search has looked for a fragment and won't have found it.
>>     
>
> That rings bells.  The dtnd log did show warnings from the api and there were a bunch of large numbers in the shown params to dtn_cancel that I'd  not yet distinguished the meanings of.
>   
Check out APIserver.cc and servlib/bundling/gbofid.cc to see what the 
output means.

As far as I can see the fix is very simple: Modify applib/dtn_api_wrap.cc:
*** dtn_api_wrap.cc.old 2010-09-16 22:19:46.000000000 +0100
--- dtn_api_wrap.cc 2010-09-16 22:21:53.000000000 +0100
***************
*** 288,293 ****
--- 288,295 ----
strcpy(id2.source.uri, id.source.c_str());
id2.creation_ts.secs = id.creation_secs;
id2.creation_ts.seqno = id.creation_seqno;
+ id2.frag_offset = 0;
+ id2.orig_length = 0;
return dtn_cancel(h, &id2);
}

You'll need to install swig to regenerate the Python interface code and 
then execute
make swig
in the applib directory.

Then rebuild the Python module and reinstall it.
make pythonapi; make pythonapi_install

Regards,
Elwyn
>
>   
>> I think you have hit a bug here but I haven't experimented yet.
>>     
>
>   

> I guess I deserved to hit a bug as I wondered if it worked :)
>
> Out of curiosity, I checked out folly.org.uk, it seems I'm just down the A14 from you, In Bury St Edmunds.
>
> Cheers,
>
> Darren
>   



Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8GJLnGA032285 for <dtn-users@maillists.intel-research.net>; Thu, 16 Sep 2010 12:21:49 -0700
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=us-ascii
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L8U00D4CTRT2100@asmtp030.mac.com> for dtn-users@maillists.intel-research.net; Thu, 16 Sep 2010 12:21:39 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009160088
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-16_11:2010-09-16, 2010-09-16, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
In-reply-to: <4C9257CE.7030306@folly.org.uk>
Date: Thu, 16 Sep 2010 20:21:29 +0100
Message-id: <C9D1E1F7-F516-4536-B8F3-A9B53D399298@mac.com>
References: <1284649477.1594.16.camel@n900> <4C9257CE.7030306@folly.org.uk>
To: Elwyn Davies <elwynd@folly.org.uk>
X-Mailer: Apple Mail (2.1081)
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 19:21:50 -0000

Hi,

Thanks for the pointers.

On 16 Sep 2010, at 18:45, Elwyn Davies wrote:

> Hi, Darren.
> 
> I have used the Python wrappers but as it turns out not the dtn_cancel wrapper.
> 
> Having had a look through the code, I notice:
> 1. The Python test code in applib/python/test-swig-api.py doesn't exercise dtn_cancel.

Actually, I was originally only wondering about whether or not the core bundle cancel functionality worked as I'd never tried it and figured I'd test it quickly by hacking test-swig-api.py to call it.  At least I know know that it works in the core system, even if there is an issue with the python bindings.  Still, it would be good to figure out a fix for it, as I have a couple of minor python projects for dtn on the slow cooker :)

> 2. The dtn_api_wrap.cc (from which I believe the SWIG code is generated does not explicitly set the frag_offset and orig_length fields in the bundle_id_t structure which is passed across to the api server (the C++

I keep forgetting that's there's actually a C++ wrapper for a C++ core with a C API, perhaps deliberately.

> and Python APIs for bundle_id just take the source string and the bundle timestamp as parameters whereas the RPC interface can handle a fragment identifier). The applib/APIserver.cc code looks at these two unset variables. This is possibly the cause of the problem. The DTN server should emit a warning if it can't find the bundle to be cancelled - the search parameters derived from the dtn_cancel call are printed in the warning - check the 4th, 5th and 6th items printed in the warning message. If the 5th or 6th is non-zero then the search has looked for a fragment and won't have found it.

That rings bells.  The dtnd log did show warnings from the api and there were a bunch of large numbers in the shown params to dtn_cancel that I'd  not yet distinguished the meanings of.


> I think you have hit a bug here but I haven't experimented yet.

I guess I deserved to hit a bug as I wondered if it worked :)

Out of curiosity, I checked out folly.org.uk, it seems I'm just down the A14 from you, In Bury St Edmunds.

Cheers,

Darren


Received: from a.painless.aaisp.net.uk (a.painless.aaisp.net.uk [81.187.30.51]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8GHkAMK027778 for <dtn-users@maillists.intel-research.net>; Thu, 16 Sep 2010 10:46:10 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by a.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1OwIX8-0006Yq-H8; Thu, 16 Sep 2010 18:46:06 +0100
Message-ID: <4C9257CE.7030306@folly.org.uk>
Date: Thu, 16 Sep 2010 18:45:50 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Darren Long <darren.long@mac.com>
References: <1284649477.1594.16.camel@n900>
In-Reply-To: <1284649477.1594.16.camel@n900>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 17:46:11 -0000

Hi, Darren.

I have used the Python wrappers but as it turns out not the dtn_cancel 
wrapper.

Having had a look through the code, I notice:
1. The Python test code in applib/python/test-swig-api.py doesn't 
exercise dtn_cancel.
2. The dtn_api_wrap.cc (from which I believe the SWIG code is generated 
does not explicitly set the frag_offset and orig_length fields in the 
bundle_id_t structure which is passed across to the api server (the C++ 
and Python APIs for bundle_id just take the source string and the bundle 
timestamp as parameters whereas the RPC interface can handle a fragment 
identifier). The applib/APIserver.cc code looks at these two unset 
variables. This is possibly the cause of the problem. The DTN server 
should emit a warning if it can't find the bundle to be cancelled - the 
search parameters derived from the dtn_cancel call are printed in the 
warning - check the 4th, 5th and 6th items printed in the warning 
message. If the 5th or 6th is non-zero then the search has looked for a 
fragment and won't have found it. I think you have hit a bug here but I 
haven't experimented yet.

Regards,
Elwyn
Darren Long wrote:
> Hi,
> I seem to be having problems using dtn_cancel using the python API wrappers for DTN2.  I did a quick hack to test the functionality by modifying dtnping to cancel bundles and that seems to work OK.
>
> I wonder if anyone has any ideas on what the issue with dtn_cancel in the python api wrappers might be.
>
> Cheers,
>
> Darren
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>   



Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8GF4iae020127 for <dtn-users@maillists.intel-research.net>; Thu, 16 Sep 2010 08:04:45 -0700
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=utf-8
Received: from [10.59.152.210] (nat65.mia.three.co.uk [217.171.129.65]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L8U00I1THVSGZ00@asmtp020.mac.com> for dtn-users@maillists.intel-research.net; Thu, 16 Sep 2010 08:04:46 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009160059
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-16_09:2010-09-16, 2010-09-16, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
To: dtn-users@maillists.intel-research.net
X-Mailer: Modest 3.2
Content-id: <1284649476.1594.15.camel@n900>
Date: Thu, 16 Sep 2010 16:04:37 +0100
Message-id: <1284649477.1594.16.camel@n900>
Subject: [dtn-users] dtn_cancel in python
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Darren Long <darren.long@mac.com>
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 15:04:45 -0000

Hi,
I seem to be having problems using dtn_cancel using the python API wrappers for DTN2.  I did a quick hack to test the functionality by modifying dtnping to cancel bundles and that seems to work OK.

I wonder if anyone has any ideas on what the issue with dtn_cancel in the python api wrappers might be.

Cheers,

Darren


Received: from b.painless.aaisp.net.uk (b.painless.aaisp.net.uk [81.187.30.52]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8GDNIfu015172 for <dtn-users@maillists.intel-research.net>; Thu, 16 Sep 2010 06:23:18 -0700
Received: from 250.254.187.81.in-addr.arpa ([81.187.254.250]) by b.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1OwEQm-0001oo-Kw; Thu, 16 Sep 2010 14:23:16 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
To: osh93@etri.re.kr
In-Reply-To: <005801cb5562$fd45ff10$f7d1fd30$@re.kr>
References: <1280178414.4c4df8eee00ef@webmail.whoi.edu> <005801cb5562$fd45ff10$f7d1fd30$@re.kr>
Content-Type: text/plain; charset="euc-kr"
Organization: Folly Consulting
Date: Thu, 16 Sep 2010 14:02:08 +0100
Message-Id: <1284642128.27652.95.camel@mightyatom.folly.org.uk>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3 
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o8GDNIfu015172
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] How to resolve the error of compiling oasys
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 13:23:19 -0000

Hi.

I think the problem is that you are using Xerces v3.x.  Oasys requires
the older v2.8.0 if my experience is anything to go by.  This ought to
be in the docs but isn't.  I don't remember the exact errors but it
certainly wouldn't compile.

Regards,
Elwyn

On Thu, 2010-09-16 at 14:49 +0900, ¿À½ÂÈÆ wrote:
> Hello 
> 
> I am trying to build DTN2.
> Before that, I have been compiling oasys-1.4.0 according to the manual
> (http://dtn.sourceforge.net/DTN2/doc/manual/compiling.html#Oasys). 
> 
> 
> First, 
> ./configure --enable-google-profiling --with-google-perftools=../google-
> perftools-1.6  --with-dbver=4.8 --with-xsd-tool=xsd --with-
> python=/usr/local/python
> 
> 
> The result is that : 
> ============================================================================
> ==================================================
> Build options:
>   TARGET is: native
>   CC: gcc
>   CXX: g++
> 
> Options:
>   DEBUG: -g -fno-inline
>   OPTIMIZE:
>   PICFLAGS: -fPIC -DPIC
>   PROFILE:
>   DEFS: -DHAVE_CONFIG_H
>   SYS_CFLAGS: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>   INCFLAGS: -I. -I. -I/usr/oasys-1.4.0 -I./ext
>   EXTRA_CFLAGS:
>   LDFLAGS: -L.
> 
> 
> Oasys Configuration:
>   OASYS_INCDIR: /usr/oasys-1.4.0
>   OASYS_LIBDIR: /usr/oasys-1.4.0/lib
>   OASYS_ETCDIR: /usr/oasys-1.4.0
>   OASYS_VERSION: 1.4.0
> 
> External Packages:
>   EXTLIB_CFLAGS: -I/usr/local/BerkeleyDB.4.8/include
>   EXTLIB_LDFLAGS: -ldl -lm  -ltcl8.5 -lexpat -lxerces-c -
> L/usr/local/BerkeleyDB.4.8/lib -ldb-4.8 -lpthread
> ============================================================================
> ==================================================
> 
> Then after running make, I have met the following errors:
> ============================================================================
> ==================================================
> g++ -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "serialize/XMLSerialize.o
> serialize/XMLSerialize.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -
> D_FILE_OFFSET_BITS=64 -I. -I. -I/usr/oasys-1.4.0 -I./ext -
> I/usr/local/BerkeleyDB.4.8/include  -Wall -W -Wcast-align  -c
> serialize/XMLSerialize.cc -o serialize/XMLSerialize.o
> serialize/XMLSerialize.cc: In member function ¡®virtual void
> oasys::XMLMarshal::process(const char*, u_char*, u_int32_t)¡¯:
> serialize/XMLSerialize.cc:114: error: invalid conversion from ¡®XMLByte**¡¯
> to ¡®char**¡¯
> serialize/XMLSerialize.cc:114: error:   initializing argument 1 of ¡®static
> void xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)¡¯
> serialize/XMLSerialize.cc: In member function ¡®void
> oasys::XMLMarshal::process(const char*, oasys::BufferCarrier<unsigned
> char>*, size_t*)¡¯:
> serialize/XMLSerialize.cc:134: error: invalid conversion from ¡®XMLByte**¡¯
> to ¡®char**¡¯
> serialize/XMLSerialize.cc:134: error:   initializing argument 1 of ¡®static
> void xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)¡¯
> make: *** [serialize/XMLSerialize.o] error 1
> ============================================================================
> ==================================================
> 
> Does any of you have any clue of it? 
> Could you help me to solve it if you have the similar experiences? 
> 
> 
> Best Regards,
> Seung Hun Oh
> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users




Received: from email2.etri.info (email2.etri.re.kr [129.254.16.132]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8G5nofH025548 for <dtn-users@maillists.intel-research.net>; Wed, 15 Sep 2010 22:49:51 -0700
Received: from osh93DESKTOP ([129.254.232.70]) by email2.etri.info with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 Sep 2010 14:49:49 +0900
From: =?ks_c_5601-1987?B?v8C9wsjG?= <osh93@etri.re.kr>
To: <dtn-users@maillists.intel-research.net>
References: <1280178414.4c4df8eee00ef@webmail.whoi.edu>
In-Reply-To: <1280178414.4c4df8eee00ef@webmail.whoi.edu>
Date: Thu, 16 Sep 2010 14:49:55 +0900
Organization: ETRI HRC
Message-ID: <005801cb5562$fd45ff10$f7d1fd30$@re.kr>
MIME-Version: 1.0
Content-Type: text/plain; charset="ks_c_5601-1987"
X-Mailer: Microsoft Office Outlook 12.0
thread-index: AcstBtu/yAOuQzVST8232zJKUZiiEwoWtbhg
Content-Language: ko
x-cr-hashedpuzzle: Bpg1 Bt4r HP6U H37k H7zN IOvz IXf0 IfgP IrXV IrYe I/np JWJs Ji9J J3eo J32Q Krgt; 1; ZAB0AG4ALQB1AHMAZQByAHMAQABtAGEAaQBsAGwAaQBzAHQAcwAuAGkAbgB0AGUAbAAtAHIAZQBzAGUAYQByAGMAaAAuAG4AZQB0AA==; Sosha1_v1; 7; {AD4CB616-B847-4399-BF05-21E448BF2A4D}; bwBzAGgAOQAzAEAAZQB0AHIAaQAuAHIAZQAuAGsAcgA=; Thu, 16 Sep 2010 05:49:53 GMT; WwBkAHQAbgAtAHUAcwBlAHIAcwBdACAASABvAHcAIAB0AG8AIAByAGUAcwBvAGwAdgBlACAAdABoAGUAIABlAHIAcgBvAHIAIABvAGYAIABjAG8AbQBwAGkAbABpAG4AZwAgAG8AYQBzAHkAcwA=
x-cr-puzzleid: {AD4CB616-B847-4399-BF05-21E448BF2A4D}
X-OriginalArrivalTime: 16 Sep 2010 05:49:49.0995 (UTC) FILETIME=[FA048FB0:01CB5562]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o8G5nofH025548
Subject: [dtn-users]  How to resolve the error of compiling oasys
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: osh93@etri.re.kr
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2010 05:49:51 -0000

Hello 

I am trying to build DTN2.
Before that, I have been compiling oasys-1.4.0 according to the manual
(http://dtn.sourceforge.net/DTN2/doc/manual/compiling.html#Oasys). 


First, 
./configure --enable-google-profiling --with-google-perftools=../google-
perftools-1.6  --with-dbver=4.8 --with-xsd-tool=xsd --with-
python=/usr/local/python


The result is that : 
============================================================================
==================================================
Build options:
  TARGET is: native
  CC: gcc
  CXX: g++

Options:
  DEBUG: -g -fno-inline
  OPTIMIZE:
  PICFLAGS: -fPIC -DPIC
  PROFILE:
  DEFS: -DHAVE_CONFIG_H
  SYS_CFLAGS: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  INCFLAGS: -I. -I. -I/usr/oasys-1.4.0 -I./ext
  EXTRA_CFLAGS:
  LDFLAGS: -L.


Oasys Configuration:
  OASYS_INCDIR: /usr/oasys-1.4.0
  OASYS_LIBDIR: /usr/oasys-1.4.0/lib
  OASYS_ETCDIR: /usr/oasys-1.4.0
  OASYS_VERSION: 1.4.0

External Packages:
  EXTLIB_CFLAGS: -I/usr/local/BerkeleyDB.4.8/include
  EXTLIB_LDFLAGS: -ldl -lm  -ltcl8.5 -lexpat -lxerces-c -
L/usr/local/BerkeleyDB.4.8/lib -ldb-4.8 -lpthread
============================================================================
==================================================

Then after running make, I have met the following errors:
============================================================================
==================================================
g++ -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "serialize/XMLSerialize.o
serialize/XMLSerialize.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -I. -I. -I/usr/oasys-1.4.0 -I./ext -
I/usr/local/BerkeleyDB.4.8/include  -Wall -W -Wcast-align  -c
serialize/XMLSerialize.cc -o serialize/XMLSerialize.o
serialize/XMLSerialize.cc: In member function ¡®virtual void
oasys::XMLMarshal::process(const char*, u_char*, u_int32_t)¡¯:
serialize/XMLSerialize.cc:114: error: invalid conversion from ¡®XMLByte**¡¯
to ¡®char**¡¯
serialize/XMLSerialize.cc:114: error:   initializing argument 1 of ¡®static
void xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)¡¯
serialize/XMLSerialize.cc: In member function ¡®void
oasys::XMLMarshal::process(const char*, oasys::BufferCarrier<unsigned
char>*, size_t*)¡¯:
serialize/XMLSerialize.cc:134: error: invalid conversion from ¡®XMLByte**¡¯
to ¡®char**¡¯
serialize/XMLSerialize.cc:134: error:   initializing argument 1 of ¡®static
void xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)¡¯
make: *** [serialize/XMLSerialize.o] error 1
============================================================================
==================================================

Does any of you have any clue of it? 
Could you help me to solve it if you have the similar experiences? 


Best Regards,
Seung Hun Oh




Received: from mail.jpl.nasa.gov (sentrion2.jpl.nasa.gov [128.149.139.106]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8EJxXoi017396 for <dtn-users@maillists.intel-research.net>; Tue, 14 Sep 2010 12:59:33 -0700
Received: from mail.jpl.nasa.gov (altvirehtstap01.jpl.nasa.gov [128.149.137.72]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id o8EJxNUw002464 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL); Tue, 14 Sep 2010 12:59:32 -0700
Received: from ALTPHYEMBEVSP40.RES.AD.JPL ([128.149.137.86]) by ALTVIREHTSTAP01.RES.AD.JPL ([128.149.137.72]) with mapi; Tue, 14 Sep 2010 12:59:31 -0700
From: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
To: Victor lyamtsev <vlyamtsev@gmail.com>, "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Date: Tue, 14 Sep 2010 12:59:31 -0700
Thread-Topic: [dtn-users] eid's dictionary storage format -??
Thread-Index: ActUOKpq3ZqDtyXDTcmEwzgloKso+AADLPTA
Message-ID: <F25A909AA776104A92E2780BFCB3AEA8110AD390@ALTPHYEMBEVSP40.RES.AD.JPL>
References: <AANLkTikUzHD=mkf9W6eB7Yvq2w1TFe_Rg7oygXn+KR2Y@mail.gmail.com>
In-Reply-To: <AANLkTikUzHD=mkf9W6eB7Yvq2w1TFe_Rg7oygXn+KR2Y@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-Source-IP: altvirehtstap01.jpl.nasa.gov [128.149.137.72]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o8EJxXoi017396
Subject: Re: [dtn-users] eid's dictionary storage format -??
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Tue, 14 Sep 2010 19:59:34 -0000

Victor, I think I see a couple of problems.

1.  Each of the strings (scheme names and SSPs) inside the dictionary is supposed to be individually NULL-terminated -- not just a single NULL at the end of the entire byte array.

2.  The only characters in your EIDs that are omitted from representation inside the dictionary are the ':' characters that delimit the scheme names.  You're dropping the "//" characters.

3.  No string is supposed to appear multiple times within the dictionary, but you've got "dtn" in two places.

I would say that your dictionary should instead look like this (with NULLs indicated here by '+' characters):

dtn+//myhost.dtn/sink+//myhost.dtn/source+

...in which case your offsets would be:

Destination scheme name: 0
Destination SSP: 4
Source scheme name: 0
Source SSP: 19

Scott

> -----Original Message-----
> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-
> bounces@maillists.intel-research.net] On Behalf Of Victor lyamtsev
> Sent: Tuesday, September 14, 2010 11:08 AM
> To: dtn-users@maillists.intel-research.net
> Subject: [dtn-users] eid's dictionary storage format -??
> 
> Hi,
> I wonder if i can have clarification on how eid's should be stored in
> dictionary byte array.
> For example, when I sent the bundle from "dtn://myhost.dtn/source" to
> ""dtn://myhost.dtn/sink" ( no "report-to", or "custodian schema"
> parts),
> i just appended schema names and SSP's like following:
>  dtnmyhost.dtn/sourcedtnmyhost.dtn/sinkNULL with
>  Destination scheme offset = 0
> Destination SSP offset = 3
> Source scheme offset =  20
> Source SSP offset = 23
> i end up with "invalid endpoint id" error:
>  'tnmyhost.dtn/sinkdtnmyhost.dtn:tnmyhost.dtn/sinkdtnmyhost.dtn':
> scheme 'tnmyhost.dtn/sinkdtnmyhost.dtn' offset 1/40 ssp
> 'tnmyhost.dtn/sinkmyhost.dtn' offset 1/40
> Any idea how this to be done ?
> Thank you,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8EI7xxT011387 for <dtn-users@maillists.intel-research.net>; Tue, 14 Sep 2010 11:08:00 -0700
Received: by yxk8 with SMTP id 8so2996059yxk.28 for <dtn-users@maillists.intel-research.net>; Tue, 14 Sep 2010 11:07:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.102.8 with SMTP id e8mr621947ybm.83.1284487677046; Tue, 14 Sep 2010 11:07:57 -0700 (PDT)
Received: by 10.151.44.9 with HTTP; Tue, 14 Sep 2010 11:07:56 -0700 (PDT)
Date: Tue, 14 Sep 2010 14:07:56 -0400
Message-ID: <AANLkTikUzHD=mkf9W6eB7Yvq2w1TFe_Rg7oygXn+KR2Y@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] eid's dictionary storage format -??
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Tue, 14 Sep 2010 18:08:01 -0000

Hi,
I wonder if i can have clarification on how eid's should be stored in
dictionary byte array.
For example, when I sent the bundle from "dtn://myhost.dtn/source" to
""dtn://myhost.dtn/sink" ( no "report-to", or "custodian schema"
parts),
i just appended schema names and SSP's like following:
 dtnmyhost.dtn/sourcedtnmyhost.dtn/sinkNULL with
 Destination scheme offset = 0
Destination SSP offset = 3
Source scheme offset =  20
Source SSP offset = 23
i end up with "invalid endpoint id" error:
 'tnmyhost.dtn/sinkdtnmyhost.dtn:tnmyhost.dtn/sinkdtnmyhost.dtn':
scheme 'tnmyhost.dtn/sinkdtnmyhost.dtn' offset 1/40 ssp
'tnmyhost.dtn/sinkmyhost.dtn' offset 1/40
Any idea how this to be done ?
Thank you,
-V


Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8CAHLQD004982 for <dtn-users@maillists.intel-research.net>; Sun, 12 Sep 2010 03:17:21 -0700
Received: by ywl5 with SMTP id 5so2090963ywl.28 for <dtn-users@maillists.intel-research.net>; Sun, 12 Sep 2010 03:17:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.6.5 with SMTP id j5mr1004695ybi.29.1284286642879; Sun, 12 Sep 2010 03:17:22 -0700 (PDT)
Received: by 10.151.44.9 with HTTP; Sun, 12 Sep 2010 03:17:22 -0700 (PDT)
In-Reply-To: <4C8C3747.2020006@folly.org.uk>
References: <AANLkTimyiEbbWWnmX1u1qnzHdpVdc3wb6A9vZv-vCjsg@mail.gmail.com> <4C8C3747.2020006@folly.org.uk>
Date: Sun, 12 Sep 2010 06:17:22 -0400
Message-ID: <AANLkTikrG=16oMGv=swqKxDsiH=dNr_1yvUWwPg-18yx@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: Elwyn Davies <elwynd@folly.org.uk>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o8CAHLQD004982
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] rfc5050 questions
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sun, 12 Sep 2010 10:17:22 -0000

Are dictionary byte array and payload SDNV encoded?
Does it say they are? No! And it wouldn't make much sense since they
aren't numerics or flags, and they both have explicit length fields.
Just apply logic... SDNVs are used so that you don't need an explicit
length field!

Payload does have block length but not the explicit field length...

Anyway, i originally thought that the purpose of sdnv is to make the
process of encoding/ decoding independent of the endianness. In that
context sdnv encoding of character fields would also make sense.
Thank you for your comments.
-V

On Sat, Sep 11, 2010 at 10:13 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
> Victor lyamtsev wrote:
>>
>> Hi All,
>> Can I have some clarifications ?
>> "Block Length:   The Block Length field is an SDNV that contains the
>>  aggregate length of all remaining fields of the block"
>>
>> "Remaining after proc. flags" meaning is unclear: does that include
>> length field itself, or everything beginning from destination scheme
>> offset?
>>
>
> It isn't technically unclear - 'remaining' implies fields after this one,
> but, yes, it probably ought to be more explicit.
>>
>> Is the length expressed in bytes ?
>>
>
> Yes all lengths in RFC 5050 are in octets - and no it doesn't say that. [Had
> I done the gen-art review of this draft neither of these would have got past
> me.. but that is with 20-20 hindsight - and I didn't review this draft back
> then, :-) ]
>>
>> Dictionary length: again, is that byte value?
>>
>
> yes.. see previous comment
>>
>> If every field in primary block is variable length, where's the offset
>> to dictionary byte array? Shall it be assumed that Destination scheme
>> is the first in dictionary and use that value?
>>
>
> Think! The whole point of SDNVs is that they don't need an explicit length
> field. Thus
> (1) the start of the dictionary byte array is wherever you get to when you
> have decoded all the previous SDNV fields.
> (2) There is no assumption about the location of any of the various EIDs in
> the dictionary.
> (3) It wouldn't help your (alleged) issue because as it says earlier in the
> spec the offsets are (implicitly relative) offsets within the dictionary
> byte array, NOT offsets from the block start.
>>
>> Are dictionary byte array and payload SDNV encoded?
>>
>
> Does it say they are? No! And it wouldn't make much sense since they aren't
> numerics or flags, and they both have explicit length fields. Just apply
> logic... SDNVs are used so that you don't need an explicit length field!
>
> Now its well past my bedtime!
>
> Regards,
> Elwyn
>
> PS
> The DTN2 code is a good guide if you find the spec obscure.. the functional
> spec will help you find the relevant piece of code.
>
> /E
>
>>
>> Thank you,
>> -V
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
>
>



Received: from b.painless.aaisp.net.uk (b.painless.aaisp.net.uk [81.187.30.52]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8C2DZkQ014322 for <dtn-users@maillists.intel-research.net>; Sat, 11 Sep 2010 19:13:36 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by b.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1Ouc4Q-0000TH-8f; Sun, 12 Sep 2010 03:13:35 +0100
Message-ID: <4C8C3747.2020006@folly.org.uk>
Date: Sun, 12 Sep 2010 03:13:27 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <AANLkTimyiEbbWWnmX1u1qnzHdpVdc3wb6A9vZv-vCjsg@mail.gmail.com>
In-Reply-To: <AANLkTimyiEbbWWnmX1u1qnzHdpVdc3wb6A9vZv-vCjsg@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] rfc5050 questions
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sun, 12 Sep 2010 02:13:36 -0000

Victor lyamtsev wrote:
> Hi All,
> Can I have some clarifications ?
> "Block Length:   The Block Length field is an SDNV that contains the
>  aggregate length of all remaining fields of the block"
>
> "Remaining after proc. flags" meaning is unclear: does that include
> length field itself, or everything beginning from destination scheme
> offset?
>   
It isn't technically unclear - 'remaining' implies fields after this 
one, but, yes, it probably ought to be more explicit.
> Is the length expressed in bytes ?
>   
Yes all lengths in RFC 5050 are in octets - and no it doesn't say that. 
[Had I done the gen-art review of this draft neither of these would have 
got past me.. but that is with 20-20 hindsight - and I didn't review 
this draft back then, :-) ]
> Dictionary length: again, is that byte value?
>   
yes.. see previous comment
> If every field in primary block is variable length, where's the offset
> to dictionary byte array? Shall it be assumed that Destination scheme
> is the first in dictionary and use that value?
>   
Think! The whole point of SDNVs is that they don't need an explicit 
length field. Thus
(1) the start of the dictionary byte array is wherever you get to when 
you have decoded all the previous SDNV fields.
(2) There is no assumption about the location of any of the various EIDs 
in the dictionary.
(3) It wouldn't help your (alleged) issue because as it says earlier in 
the spec the offsets are (implicitly relative) offsets within the 
dictionary byte array, NOT offsets from the block start.
> Are dictionary byte array and payload SDNV encoded?
>   
Does it say they are? No! And it wouldn't make much sense since they 
aren't numerics or flags, and they both have explicit length fields. 
Just apply logic... SDNVs are used so that you don't need an explicit 
length field!

Now its well past my bedtime!

Regards,
Elwyn

PS
The DTN2 code is a good guide if you find the spec obscure.. the 
functional spec will help you find the relevant piece of code.

/E

>
> Thank you,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>   



Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o8BIlMWv026039 for <dtn-users@maillists.intel-research.net>; Sat, 11 Sep 2010 11:47:22 -0700
Received: by gwj16 with SMTP id 16so1929966gwj.28 for <dtn-users@maillists.intel-research.net>; Sat, 11 Sep 2010 11:47:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.114.1 with SMTP id r1mr1622057ybm.233.1284230842766; Sat, 11 Sep 2010 11:47:22 -0700 (PDT)
Received: by 10.151.44.9 with HTTP; Sat, 11 Sep 2010 11:47:22 -0700 (PDT)
Date: Sat, 11 Sep 2010 14:47:22 -0400
Message-ID: <AANLkTimyiEbbWWnmX1u1qnzHdpVdc3wb6A9vZv-vCjsg@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] rfc5050 questions
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Sat, 11 Sep 2010 18:47:23 -0000

Hi All,
Can I have some clarifications ?
"Block Length:   The Block Length field is an SDNV that contains the
 aggregate length of all remaining fields of the block"

"Remaining after proc. flags" meaning is unclear: does that include
length field itself, or everything beginning from destination scheme
offset?
Is the length expressed in bytes ?

Dictionary length: again, is that byte value?

If every field in primary block is variable length, where's the offset
to dictionary byte array? Shall it be assumed that Destination scheme
is the first in dictionary and use that value?

Are dictionary byte array and payload SDNV encoded?


Thank you,
-V


Received: from a.painless.aaisp.net.uk (a.painless.aaisp.net.uk [81.187.30.51]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o86M1gA9016048 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 15:01:42 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by a.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1Osjkp-0002B1-Tj; Mon, 06 Sep 2010 23:01:45 +0100
Message-ID: <4C8564AD.60107@folly.org.uk>
Date: Mon, 06 Sep 2010 23:01:17 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <mailman.1.1283799601.7389.dtn-users@maillists.intel-research.net> <AANLkTikvCRPaUaxVprGXm9Kgj_OrBYXw-1=RepAMunBi@mail.gmail.com>
In-Reply-To: <AANLkTikvCRPaUaxVprGXm9Kgj_OrBYXw-1=RepAMunBi@mail.gmail.com>
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn-users Digest, Vol 35, Issue 3
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 06 Sep 2010 22:01:52 -0000

Hi.

I take it you meant you were trying to emulate the TCP convergence 
layer. You've got a good deal of work to do to send a bundle using the 
TCP convergence layer beyond encoding the bundle.  There is a transport 
layer to consider and some parameter negotiation before actual bundle 
transfer can take place. I'm not sure why you want to do this (apart 
from basic testing)  but you might be better off trying to send a 
(small) bundle using the UDP convergence layer.  This is very trivial 
and requires that the bundle fits into one packet - so all the transport 
layer stuff goes away.  Otherwise you need to read the TCP convergence 
layer draft - the 'magic number' error is a transport problem not a 
bundle problem.

Personally i'd say if you want to play on just one node you might be 
better off running two DTN daemons using different port numbers for the 
various interfaces.  And  for the simplest tests you can just use a 
single daemon!  Then dtnsend and dtnrecv can be used to inject/receive 
bundles.

Regards,
Elwyn
Victor lyamtsev wrote:
> Thanks for advise,
> I made up test implementation of bundle protocol, encoding "hello
> world" bundle with hardcoded eid etc. and tried to send it over tcp to
> port 4556 of dtn2 ( it configured to work with tcl only). I can see
> error message from dtn2: "missing magic number". Any idea what that
> magic number is - i didn't see anything about it in rfc5050 spec.
> Would this be a valid method of testing, or does the bundle also have
> to be serialized with oasys lib?
> ION would be the good candidate for my purpose, one problem with it is
> that it requires dozen of other processes to run every time to
> configure the node. Also, to make it interoperable with dtn2 it
> requires "proxy" exe to be linked with dtn2, e.g. it requires oasys
> and libstdc++ shared libs to be installed on the target...
> "Bitzalia" seems to be a nice job for the Android OS only.  From my
> brief  stub on it i ended up with impression that it would be more
> time efficient to write own bundle implementation than to port google
> java to any ther other java .
> Thanks again,
> -V
>
>
> On Mon, Sep 6, 2010 at 3:00 PM,
> <dtn-users-request@maillists.intel-research.net> wrote:
>   
>> Send dtn-users mailing list submissions to
>>        dtn-users@maillists.intel-research.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://maillists.intel-research.net/mailman/listinfo/dtn-users
>> or, via email, send a message with subject or body 'help' to
>>        dtn-users-request@maillists.intel-research.net
>>
>> You can reach the person managing the list at
>>        dtn-users-owner@maillists.intel-research.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of dtn-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. dtn2 and dtn1 interoperability -?? (Victor lyamtsev)
>>   2. Re: dtn2 and dtn1 interoperability -?? (Scott, Keith L.)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 6 Sep 2010 09:57:52 -0400
>> From: Victor lyamtsev <vlyamtsev@gmail.com>
>> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
>> To: dtn-users@maillists.intel-research.net
>> Message-ID:
>>        <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi,
>> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
>> DTN2 ( with TCL). My question:
>> would that be possible at all?
>> it seems from brief examination, that dtn1 is not even using SDNV
>> encoding, did it come later?
>>
>> The reason I am looking at dtn1 at all:  i have to forward bundles
>> from "thin client" that doesn't have resources to run DTN2, but dtn1
>> runs on it.
>> Thanks,
>> -V
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 6 Sep 2010 11:04:32 -0400
>> From: "Scott, Keith L." <kscott@mitre.org>
>> Subject: Re: [dtn-users] dtn2 and dtn1 interoperability -??
>> To: Victor lyamtsev <vlyamtsev@gmail.com>,
>>        "dtn-users@maillists.intel-research.net"
>>        <dtn-users@maillists.intel-research.net>
>> Message-ID:
>>        <0111C34BD897FD41841D60396F2AD3D304D22E0EF9@IMCMBX2.MITRE.ORG>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> That's correct; DTN1 uses a different header encoding.  There are other DTN2 implementations that might be better suited to your environment.  The NASA ION implementation (https://ion.ocp.ohiou.edu/) is designed to run on resource-constrained spacecraft and is RFC5050-conformant (and so interoperates with DTN2).  The dtnrg website lists a few other implementations.  There was at one time a Python implementation (ok, maybe not light) that would need some work to interoperate with DTN2 (I think).  There's also the bytewalla (Java) implementation for Android that interoperates.
>>
>>                --keith
>>
>> -----Original Message-----
>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Victor lyamtsev
>> Sent: Monday, September 06, 2010 9:58 AM
>> To: dtn-users@maillists.intel-research.net
>> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
>>
>> Hi,
>> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
>> DTN2 ( with TCL). My question:
>> would that be possible at all?
>> it seems from brief examination, that dtn1 is not even using SDNV
>> encoding, did it come later?
>>
>> The reason I am looking at dtn1 at all:  i have to forward bundles
>> from "thin client" that doesn't have resources to run DTN2, but dtn1
>> runs on it.
>> Thanks,
>> -V
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>
>>
>> End of dtn-users Digest, Vol 35, Issue 3
>> ****************************************
>>
>>     
>
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>   



Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o86LvhV2015800 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 14:57:43 -0700
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=us-ascii
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L8C006VEIBW2J10@asmtp029.mac.com> for dtn-users@maillists.intel-research.net; Mon, 06 Sep 2010 14:57:37 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009060177
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-06_12:2010-09-06, 2010-09-06, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
In-reply-to: <AANLkTikvCRPaUaxVprGXm9Kgj_OrBYXw-1=RepAMunBi@mail.gmail.com>
Date: Mon, 06 Sep 2010 22:57:32 +0100
Message-id: <B6D7F7AC-CF63-4FED-9AC7-BD57B2B1E3E4@mac.com>
References: <mailman.1.1283799601.7389.dtn-users@maillists.intel-research.net> <AANLkTikvCRPaUaxVprGXm9Kgj_OrBYXw-1=RepAMunBi@mail.gmail.com>
To: Victor lyamtsev <vlyamtsev@gmail.com>
X-Mailer: Apple Mail (2.1081)
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn-users Digest, Vol 35, Issue 3
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 06 Sep 2010 21:57:43 -0000

The magic number is part of the TCP Convergence Layer Protocol (TCP-CLP).  There's an old Internet Draft that describes it:

https://datatracker.ietf.org/doc/draft-irtf-dtnrg-tcp-clayer/

It describes how contact headers are exchanged, and how bundles are segmented for streaming over TCP connections.

Hope this helps,

Darren


On 6 Sep 2010, at 22:39, Victor lyamtsev wrote:

> Thanks for advise,
> I made up test implementation of bundle protocol, encoding "hello
> world" bundle with hardcoded eid etc. and tried to send it over tcp to
> port 4556 of dtn2 ( it configured to work with tcl only). I can see
> error message from dtn2: "missing magic number". Any idea what that
> magic number is - i didn't see anything about it in rfc5050 spec.
> Would this be a valid method of testing, or does the bundle also have
> to be serialized with oasys lib?
> ION would be the good candidate for my purpose, one problem with it is
> that it requires dozen of other processes to run every time to
> configure the node. Also, to make it interoperable with dtn2 it
> requires "proxy" exe to be linked with dtn2, e.g. it requires oasys
> and libstdc++ shared libs to be installed on the target...
> "Bitzalia" seems to be a nice job for the Android OS only.  From my
> brief  stub on it i ended up with impression that it would be more
> time efficient to write own bundle implementation than to port google
> java to any ther other java .
> Thanks again,
> -V
> 
> 
> On Mon, Sep 6, 2010 at 3:00 PM,
> <dtn-users-request@maillists.intel-research.net> wrote:
>> Send dtn-users mailing list submissions to
>>        dtn-users@maillists.intel-research.net
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://maillists.intel-research.net/mailman/listinfo/dtn-users
>> or, via email, send a message with subject or body 'help' to
>>        dtn-users-request@maillists.intel-research.net
>> 
>> You can reach the person managing the list at
>>        dtn-users-owner@maillists.intel-research.net
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of dtn-users digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1. dtn2 and dtn1 interoperability -?? (Victor lyamtsev)
>>   2. Re: dtn2 and dtn1 interoperability -?? (Scott, Keith L.)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Mon, 6 Sep 2010 09:57:52 -0400
>> From: Victor lyamtsev <vlyamtsev@gmail.com>
>> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
>> To: dtn-users@maillists.intel-research.net
>> Message-ID:
>>        <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> Hi,
>> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
>> DTN2 ( with TCL). My question:
>> would that be possible at all?
>> it seems from brief examination, that dtn1 is not even using SDNV
>> encoding, did it come later?
>> 
>> The reason I am looking at dtn1 at all:  i have to forward bundles
>> from "thin client" that doesn't have resources to run DTN2, but dtn1
>> runs on it.
>> Thanks,
>> -V
>> 
>> 
>> ------------------------------
>> 
>> Message: 2
>> Date: Mon, 6 Sep 2010 11:04:32 -0400
>> From: "Scott, Keith L." <kscott@mitre.org>
>> Subject: Re: [dtn-users] dtn2 and dtn1 interoperability -??
>> To: Victor lyamtsev <vlyamtsev@gmail.com>,
>>        "dtn-users@maillists.intel-research.net"
>>        <dtn-users@maillists.intel-research.net>
>> Message-ID:
>>        <0111C34BD897FD41841D60396F2AD3D304D22E0EF9@IMCMBX2.MITRE.ORG>
>> Content-Type: text/plain; charset="us-ascii"
>> 
>> That's correct; DTN1 uses a different header encoding.  There are other DTN2 implementations that might be better suited to your environment.  The NASA ION implementation (https://ion.ocp.ohiou.edu/) is designed to run on resource-constrained spacecraft and is RFC5050-conformant (and so interoperates with DTN2).  The dtnrg website lists a few other implementations.  There was at one time a Python implementation (ok, maybe not light) that would need some work to interoperate with DTN2 (I think).  There's also the bytewalla (Java) implementation for Android that interoperates.
>> 
>>                --keith
>> 
>> -----Original Message-----
>> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Victor lyamtsev
>> Sent: Monday, September 06, 2010 9:58 AM
>> To: dtn-users@maillists.intel-research.net
>> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
>> 
>> Hi,
>> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
>> DTN2 ( with TCL). My question:
>> would that be possible at all?
>> it seems from brief examination, that dtn1 is not even using SDNV
>> encoding, did it come later?
>> 
>> The reason I am looking at dtn1 at all:  i have to forward bundles
>> from "thin client" that doesn't have resources to run DTN2, but dtn1
>> runs on it.
>> Thanks,
>> -V
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>> 
>> 
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>> 
>> 
>> End of dtn-users Digest, Vol 35, Issue 3
>> ****************************************
>> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o86LdbrR014963 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 14:39:43 -0700
Received: by gyf3 with SMTP id 3so2246068gyf.28 for <dtn-users@maillists.intel-research.net>; Mon, 06 Sep 2010 14:39:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.204.2 with SMTP id b2mr364116ybg.114.1283809183098; Mon, 06 Sep 2010 14:39:43 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Mon, 6 Sep 2010 14:39:43 -0700 (PDT)
In-Reply-To: <mailman.1.1283799601.7389.dtn-users@maillists.intel-research.net>
References: <mailman.1.1283799601.7389.dtn-users@maillists.intel-research.net>
Date: Mon, 6 Sep 2010 17:39:43 -0400
Message-ID: <AANLkTikvCRPaUaxVprGXm9Kgj_OrBYXw-1=RepAMunBi@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o86LdbrR014963
Subject: Re: [dtn-users] dtn-users Digest, Vol 35, Issue 3
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 06 Sep 2010 21:39:44 -0000

Thanks for advise,
I made up test implementation of bundle protocol, encoding "hello
world" bundle with hardcoded eid etc. and tried to send it over tcp to
port 4556 of dtn2 ( it configured to work with tcl only). I can see
error message from dtn2: "missing magic number". Any idea what that
magic number is - i didn't see anything about it in rfc5050 spec.
Would this be a valid method of testing, or does the bundle also have
to be serialized with oasys lib?
ION would be the good candidate for my purpose, one problem with it is
that it requires dozen of other processes to run every time to
configure the node. Also, to make it interoperable with dtn2 it
requires "proxy" exe to be linked with dtn2, e.g. it requires oasys
and libstdc++ shared libs to be installed on the target...
"Bitzalia" seems to be a nice job for the Android OS only.  From my
brief  stub on it i ended up with impression that it would be more
time efficient to write own bundle implementation than to port google
java to any ther other java .
Thanks again,
-V


On Mon, Sep 6, 2010 at 3:00 PM,
<dtn-users-request@maillists.intel-research.net> wrote:
> Send dtn-users mailing list submissions to
>        dtn-users@maillists.intel-research.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://maillists.intel-research.net/mailman/listinfo/dtn-users
> or, via email, send a message with subject or body 'help' to
>        dtn-users-request@maillists.intel-research.net
>
> You can reach the person managing the list at
>        dtn-users-owner@maillists.intel-research.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dtn-users digest..."
>
>
> Today's Topics:
>
>   1. dtn2 and dtn1 interoperability -?? (Victor lyamtsev)
>   2. Re: dtn2 and dtn1 interoperability -?? (Scott, Keith L.)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 6 Sep 2010 09:57:52 -0400
> From: Victor lyamtsev <vlyamtsev@gmail.com>
> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
> To: dtn-users@maillists.intel-research.net
> Message-ID:
>        <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
> DTN2 ( with TCL). My question:
> would that be possible at all?
> it seems from brief examination, that dtn1 is not even using SDNV
> encoding, did it come later?
>
> The reason I am looking at dtn1 at all:  i have to forward bundles
> from "thin client" that doesn't have resources to run DTN2, but dtn1
> runs on it.
> Thanks,
> -V
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 6 Sep 2010 11:04:32 -0400
> From: "Scott, Keith L." <kscott@mitre.org>
> Subject: Re: [dtn-users] dtn2 and dtn1 interoperability -??
> To: Victor lyamtsev <vlyamtsev@gmail.com>,
>        "dtn-users@maillists.intel-research.net"
>        <dtn-users@maillists.intel-research.net>
> Message-ID:
>        <0111C34BD897FD41841D60396F2AD3D304D22E0EF9@IMCMBX2.MITRE.ORG>
> Content-Type: text/plain; charset="us-ascii"
>
> That's correct; DTN1 uses a different header encoding.  There are other DTN2 implementations that might be better suited to your environment.  The NASA ION implementation (https://ion.ocp.ohiou.edu/) is designed to run on resource-constrained spacecraft and is RFC5050-conformant (and so interoperates with DTN2).  The dtnrg website lists a few other implementations.  There was at one time a Python implementation (ok, maybe not light) that would need some work to interoperate with DTN2 (I think).  There's also the bytewalla (Java) implementation for Android that interoperates.
>
>                --keith
>
> -----Original Message-----
> From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Victor lyamtsev
> Sent: Monday, September 06, 2010 9:58 AM
> To: dtn-users@maillists.intel-research.net
> Subject: [dtn-users] dtn2 and dtn1 interoperability -??
>
> Hi,
> I've been trying to send bundle from old DTN1 node ( release 0.1)  to
> DTN2 ( with TCL). My question:
> would that be possible at all?
> it seems from brief examination, that dtn1 is not even using SDNV
> encoding, did it come later?
>
> The reason I am looking at dtn1 at all:  i have to forward bundles
> from "thin client" that doesn't have resources to run DTN2, but dtn1
> runs on it.
> Thanks,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>
>
>
> ------------------------------
>
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>
>
> End of dtn-users Digest, Vol 35, Issue 3
> ****************************************
>



Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o86F4Vmo028651 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 08:04:31 -0700
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o86F4YXA004001 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 11:04:35 -0400
Received: from imchub2.MITRE.ORG (imchub2.mitre.org [129.83.29.74]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o86F4YvZ003994;  Mon, 6 Sep 2010 11:04:34 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.209]) by imchub2.MITRE.ORG ([129.83.29.74]) with mapi; Mon, 6 Sep 2010 11:04:34 -0400
From: "Scott, Keith L." <kscott@mitre.org>
To: Victor lyamtsev <vlyamtsev@gmail.com>, "dtn-users@maillists.intel-research.net" <dtn-users@maillists.intel-research.net>
Date: Mon, 6 Sep 2010 11:04:32 -0400
Thread-Topic: [dtn-users] dtn2 and dtn1 interoperability -??
Thread-Index: ActNy5hKou6IGLw5SP6/iqnTyPvz8wACKCVw
Message-ID: <0111C34BD897FD41841D60396F2AD3D304D22E0EF9@IMCMBX2.MITRE.ORG>
References: <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
In-Reply-To: <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o86F4Vmo028651
Subject: Re: [dtn-users] dtn2 and dtn1 interoperability -??
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 06 Sep 2010 15:04:31 -0000

That's correct; DTN1 uses a different header encoding.  There are other DTN2 implementations that might be better suited to your environment.  The NASA ION implementation (https://ion.ocp.ohiou.edu/) is designed to run on resource-constrained spacecraft and is RFC5050-conformant (and so interoperates with DTN2).  The dtnrg website lists a few other implementations.  There was at one time a Python implementation (ok, maybe not light) that would need some work to interoperate with DTN2 (I think).  There's also the bytewalla (Java) implementation for Android that interoperates.

		--keith

-----Original Message-----
From: dtn-users-bounces@maillists.intel-research.net [mailto:dtn-users-bounces@maillists.intel-research.net] On Behalf Of Victor lyamtsev
Sent: Monday, September 06, 2010 9:58 AM
To: dtn-users@maillists.intel-research.net
Subject: [dtn-users] dtn2 and dtn1 interoperability -??

Hi,
I've been trying to send bundle from old DTN1 node ( release 0.1)  to
DTN2 ( with TCL). My question:
would that be possible at all?
it seems from brief examination, that dtn1 is not even using SDNV
encoding, did it come later?

The reason I am looking at dtn1 at all:  i have to forward bundles
from "thin client" that doesn't have resources to run DTN2, but dtn1
runs on it.
Thanks,
-V
_______________________________________________
dtn-users mailing list
dtn-users@maillists.intel-research.net
http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o86Dvtlx025347 for <dtn-users@maillists.intel-research.net>; Mon, 6 Sep 2010 06:57:55 -0700
Received: by gyf3 with SMTP id 3so2083229gyf.28 for <dtn-users@maillists.intel-research.net>; Mon, 06 Sep 2010 06:57:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.6.5 with SMTP id j5mr162477ybi.29.1283781473252; Mon, 06 Sep 2010 06:57:53 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Mon, 6 Sep 2010 06:57:52 -0700 (PDT)
Date: Mon, 6 Sep 2010 09:57:52 -0400
Message-ID: <AANLkTikskjAsvx7G7yxBtxLyB9fAe1ZFBawrcMVCe1-D@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] dtn2 and dtn1 interoperability -??
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Mon, 06 Sep 2010 13:57:55 -0000

Hi,
I've been trying to send bundle from old DTN1 node ( release 0.1)  to
DTN2 ( with TCL). My question:
would that be possible at all?
it seems from brief examination, that dtn1 is not even using SDNV
encoding, did it come later?

The reason I am looking at dtn1 at all:  i have to forward bundles
from "thin client" that doesn't have resources to run DTN2, but dtn1
runs on it.
Thanks,
-V


Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o82Cpvvj009006 for <dtn-users@maillists.intel-research.net>; Thu, 2 Sep 2010 05:51:58 -0700
Received: by gwj16 with SMTP id 16so141231gwj.28 for <dtn-users@maillists.intel-research.net>; Thu, 02 Sep 2010 05:51:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.154.17 with SMTP id g17mr76774ybo.409.1283431917429; Thu, 02 Sep 2010 05:51:57 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Thu, 2 Sep 2010 05:51:57 -0700 (PDT)
In-Reply-To: <4C7EE577.9080609@folly.org.uk>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com> <4C7E952A.6090508@folly.org.uk> <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com> <D069060E-4578-4B55-BA01-0D351E85C086@mac.com> <AANLkTinRZgYnjpV1axRz4UQUugR9XS1+pNdWSj4o60WA@mail.gmail.com> <4C7EE577.9080609@folly.org.uk>
Date: Thu, 2 Sep 2010 08:51:57 -0400
Message-ID: <AANLkTinH=uroKh-c49NCYL+imonrXLiw-x_mqk9AYf6q@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: Elwyn Davies <elwynd@folly.org.uk>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o82Cpvvj009006
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Thu, 02 Sep 2010 12:51:59 -0000

Yes.  Change the storage setup in dtn.conf:
> storage set type filesysdb
Thank you, that is good to know... If you run it on OpenWRT, did you
also remove TCL dependency?


On Wed, Sep 1, 2010 at 7:44 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
> Victor lyamtsev wrote:
>>
>> No worries, i managed to fix it . All i needed was to add path to TCL
>> libs into LDFLAGS in config script.
>> Another question: can i run bundle transfer without db support? e.g.
>> can dtn2 be used with file io as bundle storage vs. berkley db?
>>
>
> Yes.  Change the storage setup in dtn.conf:
> storage set type filesysdb
>
> See the (more or less) complete command directory in the DTN2 Functional
> Spec
> http://www.n4c.eu/Download/n4c-wp2-023-dtn-infrastructure-fs-12.pdf
> Section 411.7.15 has the Storage Commands.
>
> I don't have any experience of the file system storage system, but it
> allegedly works (we tried it on an OpenWRT build last year before getting
> the Berkeley DB installed.)
> /Elwyn
>
>> On Wed, Sep 1, 2010 at 4:56 PM, Darren Long <darren.long@mac.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> No really sensible suggestions from me, but I suppose a native build on
>>> your arm device is out of the question is it?
>>>
>>> I remember my NSLU2 (running Debian) taking about 12 hours, until I got
>>> distcc working with a cross compiler.  My sheevaplug (again running Debian)
>>> builds oasys and DTN2 in about 30 mins, IIRC.
>>>
>>> Darren
>>>
>>> On 1 Sep 2010, at 21:19, Victor lyamtsev wrote:
>>>
>>>
>>>>
>>>> I've tried that as well - no luck....
>>>>
>>>> On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk>
>>>> wrote:
>>>>
>>>>>
>>>>>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>>>>>
>>>>>>
>>>>>> Hi Elwyn,
>>>>>> Again, I am working with ARM cross compilation toolchain on Intel host
>>>>>> What use can it be if add ARM binaries to load path for Intel linker?
>>>>>> I am looking how to add them for "arm-linux-ld", from command line.
>>>>>> Any idea how i can do that?
>>>>>> Thanks,
>>>>>> -V
>>>>>>
>>>>>
>>>>> Hi.
>>>>>
>>>>> You could try
>>>>> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>>>>>
>>>>> That will tell ld to search those directories.
>>>>>
>>>>> /E
>>>>>
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>  Hi.
>>>>>>>
>>>>>>> Have you told the loader (/bin/ld) that it should look in /home/arm
>>>>>>> tcl-8.4 ..
>>>>>>> and for that matter /home/arm/oasys/lib?
>>>>>>>
>>>>>>> The loader has a cache of places to look for libraries which is
>>>>>>> maintained by
>>>>>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in
>>>>>>> ld's cache
>>>>>>> then you will get the symptoms described.  make install doesn't do
>>>>>>> the cache
>>>>>>> update for you (if I remember correctly).
>>>>>>>
>>>>>>> ldconfig -p will print a list of currently known directories and the
>>>>>>> libraries
>>>>>>> it has seen there so you can check.
>>>>>>>
>>>>>>> You can add new directories with
>>>>>>> ldconfig /home/arm/tcl-8.4 ....
>>>>>>>
>>>>>>> or you can add the directory names to /etc/ld.so.config with your
>>>>>>> favourite text
>>>>>>> editor.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Elwyn
>>>>>>>
>>>>>>>
>>>>>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for
>>>>>>>> ARM...
>>>>>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>>>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>>>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>>>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>>>>>
>>>>>>>> When i run dtn2 configuration script:
>>>>>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>>>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>>>>>> --prefix=/home/build/dtn2
>>>>>>>> I see the the following problem in log:
>>>>>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath
>>>>>>>> or
>>>>>>>> -rpath-link)
>>>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to
>>>>>>>> `Tcl_DeleteInterp'
>>>>>>>> ...
>>>>>>>>
>>>>>>>> So, it seems as problem is with linker not able to resolve
>>>>>>>> references
>>>>>>>> to tcl shared libs for oasys.
>>>>>>>>
>>>>>>>> I've tried setting of RPATH env variable, or using
>>>>>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>>>>>> work.  Any advice how to resolve this problem?
>>>>>>>> Thank you,
>>>>>>>> -V
>>>>>>>> _______________________________________________
>>>>>>>> dtn-users mailing list
>>>>>>>> dtn-users@maillists.intel-research.net
>>>>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>
>>>
>>>
>
>



Received: from b.painless.aaisp.net.uk (b.painless.aaisp.net.uk [81.187.30.52]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81Nj9e5003772 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 16:45:09 -0700
Received: from 251.254.187.81.in-addr.arpa ([81.187.254.251]) by b.painless.aaisp.net.uk with esmtp (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1OqwzD-0000nC-5L; Thu, 02 Sep 2010 00:45:07 +0100
Message-ID: <4C7EE577.9080609@folly.org.uk>
Date: Thu, 02 Sep 2010 00:44:55 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Thunderbird 2.0.0.19 (X11/20081209)
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com>	<4C7E88F1.7020905@folly.org.uk>	<AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com>	<4C7E952A.6090508@folly.org.uk>	<AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com>	<D069060E-4578-4B55-BA01-0D351E85C086@mac.com> <AANLkTinRZgYnjpV1axRz4UQUugR9XS1+pNdWSj4o60WA@mail.gmail.com>
In-Reply-To: <AANLkTinRZgYnjpV1axRz4UQUugR9XS1+pNdWSj4o60WA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 23:45:10 -0000

Victor lyamtsev wrote:
> No worries, i managed to fix it . All i needed was to add path to TCL
> libs into LDFLAGS in config script.
> Another question: can i run bundle transfer without db support? e.g.
> can dtn2 be used with file io as bundle storage vs. berkley db?
>   
Yes.  Change the storage setup in dtn.conf:
storage set type filesysdb

See the (more or less) complete command directory in the DTN2 Functional 
Spec
http://www.n4c.eu/Download/n4c-wp2-023-dtn-infrastructure-fs-12.pdf
Section 411.7.15 has the Storage Commands.

I don't have any experience of the file system storage system, but it 
allegedly works (we tried it on an OpenWRT build last year before 
getting the Berkeley DB installed.)
/Elwyn
 
> On Wed, Sep 1, 2010 at 4:56 PM, Darren Long <darren.long@mac.com> wrote:
>   
>> Hi,
>>
>> No really sensible suggestions from me, but I suppose a native build on your arm device is out of the question is it?
>>
>> I remember my NSLU2 (running Debian) taking about 12 hours, until I got distcc working with a cross compiler.  My sheevaplug (again running Debian) builds oasys and DTN2 in about 30 mins, IIRC.
>>
>> Darren
>>
>> On 1 Sep 2010, at 21:19, Victor lyamtsev wrote:
>>
>>     
>>> I've tried that as well - no luck....
>>>
>>> On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>       
>>>>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>>>>         
>>>>> Hi Elwyn,
>>>>> Again, I am working with ARM cross compilation toolchain on Intel host
>>>>> What use can it be if add ARM binaries to load path for Intel linker?
>>>>> I am looking how to add them for "arm-linux-ld", from command line.
>>>>> Any idea how i can do that?
>>>>> Thanks,
>>>>> -V
>>>>>           
>>>> Hi.
>>>>
>>>> You could try
>>>> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>>>>
>>>> That will tell ld to search those directories.
>>>>
>>>> /E
>>>>         
>>>>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>>>           
>>>>>>  Hi.
>>>>>>
>>>>>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>>>>>> and for that matter /home/arm/oasys/lib?
>>>>>>
>>>>>> The loader has a cache of places to look for libraries which is maintained by
>>>>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>>>>>> then you will get the symptoms described.  make install doesn't do the cache
>>>>>> update for you (if I remember correctly).
>>>>>>
>>>>>> ldconfig -p will print a list of currently known directories and the libraries
>>>>>> it has seen there so you can check.
>>>>>>
>>>>>> You can add new directories with
>>>>>> ldconfig /home/arm/tcl-8.4 ....
>>>>>>
>>>>>> or you can add the directory names to /etc/ld.so.config with your favourite text
>>>>>> editor.
>>>>>>
>>>>>> Regards,
>>>>>> Elwyn
>>>>>>
>>>>>>
>>>>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>>>>             
>>>>>>> Hello,
>>>>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>>>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>>>>
>>>>>>> When i run dtn2 configuration script:
>>>>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>>>>> --prefix=/home/build/dtn2
>>>>>>> I see the the following problem in log:
>>>>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>>>>>> -rpath-link)
>>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>>>>>> ...
>>>>>>>
>>>>>>> So, it seems as problem is with linker not able to resolve references
>>>>>>> to tcl shared libs for oasys.
>>>>>>>
>>>>>>> I've tried setting of RPATH env variable, or using
>>>>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>>>>> work.  Any advice how to resolve this problem?
>>>>>>> Thank you,
>>>>>>> -V
>>>>>>> _______________________________________________
>>>>>>> dtn-users mailing list
>>>>>>> dtn-users@maillists.intel-research.net
>>>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>>>               
>>>>         
>>> _______________________________________________
>>> dtn-users mailing list
>>> dtn-users@maillists.intel-research.net
>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>       
>>     



Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81MCmTi031882 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 15:12:48 -0700
Received: by ywl5 with SMTP id 5so2633682ywl.28 for <dtn-users@maillists.intel-research.net>; Wed, 01 Sep 2010 15:12:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.175.4 with SMTP id x4mr4833411ybe.325.1283379171426; Wed, 01 Sep 2010 15:12:51 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Wed, 1 Sep 2010 15:12:51 -0700 (PDT)
In-Reply-To: <D069060E-4578-4B55-BA01-0D351E85C086@mac.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com> <4C7E952A.6090508@folly.org.uk> <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com> <D069060E-4578-4B55-BA01-0D351E85C086@mac.com>
Date: Wed, 1 Sep 2010 18:12:51 -0400
Message-ID: <AANLkTinRZgYnjpV1axRz4UQUugR9XS1+pNdWSj4o60WA@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: Darren Long <darren.long@mac.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o81MCmTi031882
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 22:12:49 -0000

No worries, i managed to fix it . All i needed was to add path to TCL
libs into LDFLAGS in config script.
Another question: can i run bundle transfer without db support? e.g.
can dtn2 be used with file io as bundle storage vs. berkley db?

On Wed, Sep 1, 2010 at 4:56 PM, Darren Long <darren.long@mac.com> wrote:
> Hi,
>
> No really sensible suggestions from me, but I suppose a native build on your arm device is out of the question is it?
>
> I remember my NSLU2 (running Debian) taking about 12 hours, until I got distcc working with a cross compiler.  My sheevaplug (again running Debian) builds oasys and DTN2 in about 30 mins, IIRC.
>
> Darren
>
> On 1 Sep 2010, at 21:19, Victor lyamtsev wrote:
>
>> I've tried that as well - no luck....
>>
>> On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>>>> Hi Elwyn,
>>>> Again, I am working with ARM cross compilation toolchain on Intel host
>>>> What use can it be if add ARM binaries to load path for Intel linker?
>>>> I am looking how to add them for "arm-linux-ld", from command line.
>>>> Any idea how i can do that?
>>>> Thanks,
>>>> -V
>>> Hi.
>>>
>>> You could try
>>> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>>>
>>> That will tell ld to search those directories.
>>>
>>> /E
>>>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>>>  Hi.
>>>>>
>>>>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>>>>> and for that matter /home/arm/oasys/lib?
>>>>>
>>>>> The loader has a cache of places to look for libraries which is maintained by
>>>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>>>>> then you will get the symptoms described.  make install doesn't do the cache
>>>>> update for you (if I remember correctly).
>>>>>
>>>>> ldconfig -p will print a list of currently known directories and the libraries
>>>>> it has seen there so you can check.
>>>>>
>>>>> You can add new directories with
>>>>> ldconfig /home/arm/tcl-8.4 ....
>>>>>
>>>>> or you can add the directory names to /etc/ld.so.config with your favourite text
>>>>> editor.
>>>>>
>>>>> Regards,
>>>>> Elwyn
>>>>>
>>>>>
>>>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>>>> Hello,
>>>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>>>
>>>>>> When i run dtn2 configuration script:
>>>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>>>> --prefix=/home/build/dtn2
>>>>>> I see the the following problem in log:
>>>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>>>>> -rpath-link)
>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>>>>> ...
>>>>>>
>>>>>> So, it seems as problem is with linker not able to resolve references
>>>>>> to tcl shared libs for oasys.
>>>>>>
>>>>>> I've tried setting of RPATH env variable, or using
>>>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>>>> work.  Any advice how to resolve this problem?
>>>>>> Thank you,
>>>>>> -V
>>>>>> _______________________________________________
>>>>>> dtn-users mailing list
>>>>>> dtn-users@maillists.intel-research.net
>>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>
>>>
>>>
>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>
>



Received: from smtp.fe.up.pt (smtp.fe.up.pt [193.136.28.30]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81LCeAH029096 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 14:12:41 -0700
Received: from localhost (localhost [127.0.0.1]) by smtp.fe.up.pt (Postfix) with ESMTP id AED17EF9FB for <dtn-users@maillists.intel-research.net>; Wed,  1 Sep 2010 22:12:42 +0100 (WEST)
Received: from smtp.fe.up.pt ([127.0.0.1]) by localhost (smtp1.fe.up.pt [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R7DeI00OPrGv for <dtn-users@maillists.intel-research.net>; Wed,  1 Sep 2010 22:12:42 +0100 (WEST)
Received: from mail-iw0-f169.google.com (unknown [192.168.56.20]) by smtp.fe.up.pt (Postfix) with ESMTPA id 42DE2EF9F5 for <dtn-users@maillists.intel-research.net>; Wed,  1 Sep 2010 22:12:42 +0100 (WEST)
Received: by iwn33 with SMTP id 33so7678540iwn.28 for <dtn-users@maillists.intel-research.net>; Wed, 01 Sep 2010 14:12:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.35.202 with SMTP id q10mr9067298ibd.138.1283375560749; Wed, 01 Sep 2010 14:12:40 -0700 (PDT)
Received: by 10.231.33.138 with HTTP; Wed, 1 Sep 2010 14:12:40 -0700 (PDT)
In-Reply-To: <D069060E-4578-4B55-BA01-0D351E85C086@mac.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com> <4C7E952A.6090508@folly.org.uk> <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com> <D069060E-4578-4B55-BA01-0D351E85C086@mac.com>
Date: Wed, 1 Sep 2010 14:12:40 -0700
Message-ID: <AANLkTi=j=eitvssxNQJSgAD7aST5YbwkfHO4sCw+8Y+Z@mail.gmail.com>
From: Ricardo Martins <rasm@fe.up.pt>
To: Darren Long <darren.long@mac.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o81LCeAH029096
Cc: dtn-users@maillists.intel-research.net, Victor lyamtsev <vlyamtsev@gmail.com>
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 21:12:41 -0000

Hi,

On 1 September 2010 13:56, Darren Long <darren.long@mac.com> wrote:
> Hi,
>
> No really sensible suggestions from me, but I suppose a native build on your arm device is out of the question is it?
>
> I remember my NSLU2 (running Debian) taking about 12 hours, until I got distcc working with a cross compiler.  My sheevaplug (again running Debian) builds oasys and DTN2 in about 30 mins, IIRC.
>
> Darren
>
> On 1 Sep 2010, at 21:19, Victor lyamtsev wrote:
>
>> I've tried that as well - no luck....
Have you tried installing TCL and OASYS libraries in the same
directory ? One simple solution is to copy libtcl8.4.so to the same
directory where OASYS is installed.

>>
>> On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>>>> Hi Elwyn,
>>>> Again, I am working with ARM cross compilation toolchain on Intel host
>>>> What use can it be if add ARM binaries to load path for Intel linker?
>>>> I am looking how to add them for "arm-linux-ld", from command line.
>>>> Any idea how i can do that?
>>>> Thanks,
>>>> -V
>>> Hi.
>>>
>>> You could try
>>> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>>>
>>> That will tell ld to search those directories.
>>>
>>> /E
>>>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>>>  Hi.
>>>>>
>>>>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>>>>> and for that matter /home/arm/oasys/lib?
>>>>>
>>>>> The loader has a cache of places to look for libraries which is maintained by
>>>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>>>>> then you will get the symptoms described.  make install doesn't do the cache
>>>>> update for you (if I remember correctly).
>>>>>
>>>>> ldconfig -p will print a list of currently known directories and the libraries
>>>>> it has seen there so you can check.
>>>>>
>>>>> You can add new directories with
>>>>> ldconfig /home/arm/tcl-8.4 ....
>>>>>
>>>>> or you can add the directory names to /etc/ld.so.config with your favourite text
>>>>> editor.
>>>>>
>>>>> Regards,
>>>>> Elwyn
>>>>>
>>>>>
>>>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>>>> Hello,
>>>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>>>
>>>>>> When i run dtn2 configuration script:
>>>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>>>> --prefix=/home/build/dtn2
>>>>>> I see the the following problem in log:
>>>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>>>>> -rpath-link)
>>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>>>>> ...
>>>>>>
>>>>>> So, it seems as problem is with linker not able to resolve references
>>>>>> to tcl shared libs for oasys.
>>>>>>
>>>>>> I've tried setting of RPATH env variable, or using
>>>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>>>> work.  Any advice how to resolve this problem?
>>>>>> Thank you,
>>>>>> -V
>>>>>> _______________________________________________
>>>>>> dtn-users mailing list
>>>>>> dtn-users@maillists.intel-research.net
>>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>>>
>>>
>>>
>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>



Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81KuIOg028338 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 13:56:18 -0700
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=us-ascii
Received: from [192.168.1.10] ([94.30.69.47]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L830033865TGZ40@asmtp030.mac.com> for dtn-users@maillists.intel-research.net; Wed, 01 Sep 2010 13:56:21 -0700 (PDT)
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009010148
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-01_11:2010-09-01, 2010-09-01, 1970-01-01 signatures=0
From: Darren Long <darren.long@mac.com>
In-reply-to: <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com>
Date: Wed, 01 Sep 2010 21:56:17 +0100
Message-id: <D069060E-4578-4B55-BA01-0D351E85C086@mac.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com> <4C7E952A.6090508@folly.org.uk> <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com>
To: Victor lyamtsev <vlyamtsev@gmail.com>
X-Mailer: Apple Mail (2.1081)
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 20:56:18 -0000

Hi,

No really sensible suggestions from me, but I suppose a native build on your arm device is out of the question is it?

I remember my NSLU2 (running Debian) taking about 12 hours, until I got distcc working with a cross compiler.  My sheevaplug (again running Debian) builds oasys and DTN2 in about 30 mins, IIRC.

Darren

On 1 Sep 2010, at 21:19, Victor lyamtsev wrote:

> I've tried that as well - no luck....
> 
> On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>>> Hi Elwyn,
>>> Again, I am working with ARM cross compilation toolchain on Intel host
>>> What use can it be if add ARM binaries to load path for Intel linker?
>>> I am looking how to add them for "arm-linux-ld", from command line.
>>> Any idea how i can do that?
>>> Thanks,
>>> -V
>> Hi.
>> 
>> You could try
>> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>> 
>> That will tell ld to search those directories.
>> 
>> /E
>>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>>  Hi.
>>>> 
>>>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>>>> and for that matter /home/arm/oasys/lib?
>>>> 
>>>> The loader has a cache of places to look for libraries which is maintained by
>>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>>>> then you will get the symptoms described.  make install doesn't do the cache
>>>> update for you (if I remember correctly).
>>>> 
>>>> ldconfig -p will print a list of currently known directories and the libraries
>>>> it has seen there so you can check.
>>>> 
>>>> You can add new directories with
>>>> ldconfig /home/arm/tcl-8.4 ....
>>>> 
>>>> or you can add the directory names to /etc/ld.so.config with your favourite text
>>>> editor.
>>>> 
>>>> Regards,
>>>> Elwyn
>>>> 
>>>> 
>>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>>> Hello,
>>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>> 
>>>>> When i run dtn2 configuration script:
>>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>>> --prefix=/home/build/dtn2
>>>>> I see the the following problem in log:
>>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>>>> -rpath-link)
>>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>>>> ...
>>>>> 
>>>>> So, it seems as problem is with linker not able to resolve references
>>>>> to tcl shared libs for oasys.
>>>>> 
>>>>> I've tried setting of RPATH env variable, or using
>>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>>> work.  Any advice how to resolve this problem?
>>>>> Thank you,
>>>>> -V
>>>>> _______________________________________________
>>>>> dtn-users mailing list
>>>>> dtn-users@maillists.intel-research.net
>>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>> 
>> 
>> 
> 
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81KJ2u0026615 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 13:19:02 -0700
Received: by yxk8 with SMTP id 8so2146497yxk.28 for <dtn-users@maillists.intel-research.net>; Wed, 01 Sep 2010 13:19:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.205.2 with SMTP id c2mr531406ybg.159.1283372343199; Wed, 01 Sep 2010 13:19:03 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Wed, 1 Sep 2010 13:19:03 -0700 (PDT)
In-Reply-To: <4C7E952A.6090508@folly.org.uk>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com> <4C7E952A.6090508@folly.org.uk>
Date: Wed, 1 Sep 2010 16:19:03 -0400
Message-ID: <AANLkTi=jAQ6mM7oJGKTy+j5crRax2Z-Q1EFcTbLPd-Ri@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: elwynd@folly.org.uk
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o81KJ2u0026615
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 20:19:02 -0000

I've tried that as well - no luck....

On Wed, Sep 1, 2010 at 2:02 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>  On 01/09/2010 18:41, Victor lyamtsev wrote:
>> Hi Elwyn,
>> Again, I am working with ARM cross compilation toolchain on Intel host
>> What use can it be if add ARM binaries to load path for Intel linker?
>> I am looking how to add them for "arm-linux-ld", from command line.
>> Any idea how i can do that?
>> Thanks,
>> -V
> Hi.
>
> You could try
> --extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"
>
> That will tell ld to search those directories.
>
> /E
>> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>>  Hi.
>>>
>>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>>> and for that matter /home/arm/oasys/lib?
>>>
>>> The loader has a cache of places to look for libraries which is maintained by
>>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>>> then you will get the symptoms described.  make install doesn't do the cache
>>> update for you (if I remember correctly).
>>>
>>> ldconfig -p will print a list of currently known directories and the libraries
>>> it has seen there so you can check.
>>>
>>> You can add new directories with
>>> ldconfig /home/arm/tcl-8.4 ....
>>>
>>> or you can add the directory names to /etc/ld.so.config with your favourite text
>>> editor.
>>>
>>> Regards,
>>> Elwyn
>>>
>>>
>>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>>> Hello,
>>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>>> liboasyscompat-1.3.0.so  liboasys.so
>>>>
>>>> When i run dtn2 configuration script:
>>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>>> --prefix=/home/build/dtn2
>>>> I see the the following problem in log:
>>>> bin/ld: warning: libtcl8.4.so, needed by
>>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>>> -rpath-link)
>>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>>> ...
>>>>
>>>> So, it seems as problem is with linker not able to resolve references
>>>> to tcl shared libs for oasys.
>>>>
>>>> I've tried setting of RPATH env variable, or using
>>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>>> work.  Any advice how to resolve this problem?
>>>> Thank you,
>>>> -V
>>>> _______________________________________________
>>>> dtn-users mailing list
>>>> dtn-users@maillists.intel-research.net
>>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>>
>
>



Received: from auth.c.painless.aaisp.net.uk (b.c.painless.aaisp.net.uk [81.187.30.63]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81Hx9Zd020087 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 10:59:10 -0700
Received: from 247.254.187.81.in-addr.arpa ([81.187.254.247]) by c.painless.aaisp.net.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1OqraY-0002zj-Op; Wed, 01 Sep 2010 18:59:11 +0100
Message-ID: <4C7E952A.6090508@folly.org.uk>
Date: Wed, 01 Sep 2010 19:02:18 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com>	<4C7E88F1.7020905@folly.org.uk> <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com>
In-Reply-To: <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: elwynd@folly.org.uk
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 17:59:10 -0000

 On 01/09/2010 18:41, Victor lyamtsev wrote:
> Hi Elwyn,
> Again, I am working with ARM cross compilation toolchain on Intel host
> What use can it be if add ARM binaries to load path for Intel linker?
> I am looking how to add them for "arm-linux-ld", from command line.
> Any idea how i can do that?
> Thanks,
> -V
Hi.

You could try
--extra-ld-flags="-L/home/arm/tcl-8.4 -L/home/arm/oasys/lib"

That will tell ld to search those directories.

/E
> On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>>  Hi.
>>
>> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
>> and for that matter /home/arm/oasys/lib?
>>
>> The loader has a cache of places to look for libraries which is maintained by
>> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
>> then you will get the symptoms described.  make install doesn't do the cache
>> update for you (if I remember correctly).
>>
>> ldconfig -p will print a list of currently known directories and the libraries
>> it has seen there so you can check.
>>
>> You can add new directories with
>> ldconfig /home/arm/tcl-8.4 ....
>>
>> or you can add the directory names to /etc/ld.so.config with your favourite text
>> editor.
>>
>> Regards,
>> Elwyn
>>
>>
>> On 01/09/2010 17:39, Victor lyamtsev wrote:
>>> Hello,
>>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>>> liboasyscompat-1.3.0.so  liboasys.so
>>>
>>> When i run dtn2 configuration script:
>>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>>> --prefix=/home/build/dtn2
>>> I see the the following problem in log:
>>> bin/ld: warning: libtcl8.4.so, needed by
>>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>>> -rpath-link)
>>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>>> ...
>>>
>>> So, it seems as problem is with linker not able to resolve references
>>> to tcl shared libs for oasys.
>>>
>>> I've tried setting of RPATH env variable, or using
>>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>>> work.  Any advice how to resolve this problem?
>>> Thank you,
>>> -V
>>> _______________________________________________
>>> dtn-users mailing list
>>> dtn-users@maillists.intel-research.net
>>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>>



Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81HfUXF019253 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 10:41:30 -0700
Received: by gwj16 with SMTP id 16so4048464gwj.28 for <dtn-users@maillists.intel-research.net>; Wed, 01 Sep 2010 10:41:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.131.12 with SMTP id i12mr3943407ybn.110.1283362892661; Wed, 01 Sep 2010 10:41:32 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Wed, 1 Sep 2010 10:41:32 -0700 (PDT)
In-Reply-To: <4C7E88F1.7020905@folly.org.uk>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com> <4C7E88F1.7020905@folly.org.uk>
Date: Wed, 1 Sep 2010 13:41:32 -0400
Message-ID: <AANLkTinD9504+bYb6vBp5OM9jk55eO5V+Fa_LXkK4Huj@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by maillists.intel-research.net id o81HfUXF019253
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 17:41:31 -0000

Hi Elwyn,
Again, I am working with ARM cross compilation toolchain on Intel host
What use can it be if add ARM binaries to load path for Intel linker?
I am looking how to add them for "arm-linux-ld", from command line.
Any idea how i can do that?
Thanks,
-V
On Wed, Sep 1, 2010 at 1:10 PM, Elwyn Davies <elwynd@folly.org.uk> wrote:
>  Hi.
>
> Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
> and for that matter /home/arm/oasys/lib?
>
> The loader has a cache of places to look for libraries which is maintained by
> ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
> then you will get the symptoms described.  make install doesn't do the cache
> update for you (if I remember correctly).
>
> ldconfig -p will print a list of currently known directories and the libraries
> it has seen there so you can check.
>
> You can add new directories with
> ldconfig /home/arm/tcl-8.4 ....
>
> or you can add the directory names to /etc/ld.so.config with your favourite text
> editor.
>
> Regards,
> Elwyn
>
>
> On 01/09/2010 17:39, Victor lyamtsev wrote:
>> Hello,
>> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
>> I managed to build tcl 8.4 and oasys 1.3 shared libs.
>> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
>> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
>> liboasyscompat-1.3.0.so  liboasys.so
>>
>> When i run dtn2 configuration script:
>> ./configure --host=arm-linux --build=i686-pc-linux-gnu
>> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
>> --prefix=/home/build/dtn2
>> I see the the following problem in log:
>> bin/ld: warning: libtcl8.4.so, needed by
>> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
>> -rpath-link)
>> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
>> ...
>>
>> So, it seems as problem is with linker not able to resolve references
>> to tcl shared libs for oasys.
>>
>> I've tried setting of RPATH env variable, or using
>> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
>> work.  Any advice how to resolve this problem?
>> Thank you,
>> -V
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@maillists.intel-research.net
>> http://maillists.intel-research.net/mailman/listinfo/dtn-users
>
>



Received: from b.painless.aaisp.net.uk (b.painless.aaisp.net.uk [81.187.30.52]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81H71R3017678 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 10:07:01 -0700
Received: from 247.254.187.81.in-addr.arpa ([81.187.254.247]) by b.painless.aaisp.net.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <elwynd@folly.org.uk>) id 1Oqqm5-00031w-Vs; Wed, 01 Sep 2010 18:07:02 +0100
Message-ID: <4C7E88F1.7020905@folly.org.uk>
Date: Wed, 01 Sep 2010 18:10:09 +0100
From: Elwyn Davies <elwynd@folly.org.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: Victor lyamtsev <vlyamtsev@gmail.com>
References: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com>
In-Reply-To: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: dtn-users@maillists.intel-research.net
Subject: Re: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: elwynd@folly.org.uk
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 17:07:02 -0000

 Hi.

Have you told the loader (/bin/ld) that it should look in /home/arm tcl-8.4 ..
and for that matter /home/arm/oasys/lib?

The loader has a cache of places to look for libraries which is maintained by
ldconfig (usually /sbin/ldconfig).  If the two directories are not in ld's cache
then you will get the symptoms described.  make install doesn't do the cache
update for you (if I remember correctly). 

ldconfig -p will print a list of currently known directories and the libraries
it has seen there so you can check.

You can add new directories with
ldconfig /home/arm/tcl-8.4 ....

or you can add the directory names to /etc/ld.so.config with your favourite text
editor.

Regards,
Elwyn


On 01/09/2010 17:39, Victor lyamtsev wrote:
> Hello,
> I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
> I managed to build tcl 8.4 and oasys 1.3 shared libs.
> /home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
> /home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
> liboasyscompat-1.3.0.so  liboasys.so
>
> When i run dtn2 configuration script:
> ./configure --host=arm-linux --build=i686-pc-linux-gnu
> --with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
> --prefix=/home/build/dtn2
> I see the the following problem in log:
> bin/ld: warning: libtcl8.4.so, needed by
> /home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
> -rpath-link)
> /home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
> ...
>
> So, it seems as problem is with linker not able to resolve references
> to tcl shared libs for oasys.
>
> I've tried setting of RPATH env variable, or using
> --with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
> work.  Any advice how to resolve this problem?
> Thank you,
> -V
> _______________________________________________
> dtn-users mailing list
> dtn-users@maillists.intel-research.net
> http://maillists.intel-research.net/mailman/listinfo/dtn-users



Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by maillists.intel-research.net (8.13.8/8.13.8) with ESMTP id o81Gdgvt016373 for <dtn-users@maillists.intel-research.net>; Wed, 1 Sep 2010 09:39:42 -0700
Received: by gyf3 with SMTP id 3so4022363gyf.28 for <dtn-users@maillists.intel-research.net>; Wed, 01 Sep 2010 09:39:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.148.17 with SMTP id v17mr4712475ybd.86.1283359184279; Wed, 01 Sep 2010 09:39:44 -0700 (PDT)
Received: by 10.150.181.1 with HTTP; Wed, 1 Sep 2010 09:39:44 -0700 (PDT)
Date: Wed, 1 Sep 2010 12:39:44 -0400
Message-ID: <AANLkTi=L-hTUnFDWSKZt4EjwjKZxxrZhQE8i+aJ+3EJQ@mail.gmail.com>
From: Victor lyamtsev <vlyamtsev@gmail.com>
To: dtn-users@maillists.intel-research.net
Content-Type: text/plain; charset=ISO-8859-1
Subject: [dtn-users] dtn2 cross compilation problem
X-BeenThere: dtn-users@maillists.intel-research.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: dtn-users mailing list <dtn-users.maillists.intel-research.net>
List-Unsubscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=unsubscribe>
List-Archive: <http://maillists.intel-research.net/pipermail/dtn-users>
List-Post: <mailto:dtn-users@maillists.intel-research.net>
List-Help: <mailto:dtn-users-request@maillists.intel-research.net?subject=help>
List-Subscribe: <http://maillists.intel-research.net/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@maillists.intel-research.net?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 16:39:43 -0000

Hello,
I am trying to cross compile DTN2 on i686 Linux ( Ubuntu 8.4) for ARM...
I managed to build tcl 8.4 and oasys 1.3 shared libs.
/home/arm/tcl-8.4 - libtcl8.4.so  libtclstub8.4.a
/home/arm/oasys/lib - liboasys-1.3.0.so  liboasyscompat.so
liboasyscompat-1.3.0.so  liboasys.so

When i run dtn2 configuration script:
./configure --host=arm-linux --build=i686-pc-linux-gnu
--with-tcl=/home/arm/tcl-8.4 -with-oasys=/home/arm/oasys
--prefix=/home/build/dtn2
I see the the following problem in log:
bin/ld: warning: libtcl8.4.so, needed by
/home/arm/oasys/lib/liboasys-1.3.0.so, not found (try using -rpath or
-rpath-link)
/home/arm/oasys/lib/liboasys-1.3.0.so: undefined reference to `Tcl_DeleteInterp'
...

So, it seems as problem is with linker not able to resolve references
to tcl shared libs for oasys.

I've tried setting of RPATH env variable, or using
--with-extra-ldflags="rpath=/home/arm/tcl-8.4/lib" Nothing seems to
work.  Any advice how to resolve this problem?
Thank you,
-V

