<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-1385</id>
	<title>Nabble - Gnome - ORBit</title>
	<updated>2008-11-13T03:14:37Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Gnome---ORBit-f1385.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Gnome---ORBit-f1385.html" />
	<subtitle type="html">Gnome CORBA ORB.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-20478819</id>
	<title>Re: error while cross-compiling ORBit2-2.14.1 for &quot;ARM Cortex-A8&quot;</title>
	<published>2008-11-13T03:14:37Z</published>
	<updated>2008-11-13T03:14:37Z</updated>
	<author>
		<name>amit pundir</name>
	</author>
	<content type="html">Thanks for your help.
&lt;br&gt;I cross-compiled it for my ARCH.
&lt;br&gt;&lt;br&gt;I got your point from one of your earlier mails and replace the call
&lt;br&gt;of cross-compiled orbit-idl-2 with the native platforms
&lt;br&gt;/usr/bin/orbit-idl-2 and it builds fine.
&lt;br&gt;&lt;br&gt;I just wish it wont break my next dependent builds :)
&lt;br&gt;&lt;br&gt;Thanks and Regards
&lt;br&gt;Amit Pundir
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 13, 2008 at 3:22 PM, Amit Pundir &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20478819&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pundiramit@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks for the values.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I cached those values at configuration time and it is configured well
&lt;br&gt;&amp;gt; from there but now I got stuck at compilation.
&lt;br&gt;&amp;gt; It is trying to execute a cross-compiled binary(meant for arm) and fails.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the appropriate log:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt; Making all in orb-core
&lt;br&gt;&amp;gt; make[8]: Entering directory
&lt;br&gt;&amp;gt; `/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit/orb-core'
&lt;br&gt;&amp;gt; (rm -f corba-defs.h corba-defs-stubs.c corba-defs-skels.c
&lt;br&gt;&amp;gt; corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c ||
&lt;br&gt;&amp;gt; true) &amp;gt; /dev/null
&lt;br&gt;&amp;gt; ../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL
&lt;br&gt;&amp;gt; -I../../../src/idl/CORBA -I../../../src/idl/interop
&lt;br&gt;&amp;gt; -I../../../src/orb/orb-core --noskels --nodefskels --nostubs --noidata
&lt;br&gt;&amp;gt; --nocommon --showcpperrors --define=Object=OObject
&lt;br&gt;&amp;gt; --define=TypeCode=TTypeCode --deps ./.deps/corba-defs.idl.P
&lt;br&gt;&amp;gt; ../../../src/orb/orb-core/corba-defs.idl
&lt;br&gt;&amp;gt; /bin/bash: ../../../src/idl-compiler/orbit-idl-2: cannot execute binary file
&lt;br&gt;&amp;gt; make[8]: *** [corba-defs.h] Error 126
&lt;br&gt;&amp;gt; make[8]: Leaving directory
&lt;br&gt;&amp;gt; `/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit/orb-core'
&lt;br&gt;&amp;gt; make[7]: *** [all-recursive] Error 1
&lt;br&gt;&amp;gt; make[7]: Leaving directory
&lt;br&gt;&amp;gt; `/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit'
&lt;br&gt;&amp;gt; make[6]: *** [all] Error 2
&lt;br&gt;&amp;gt; make[6]: Leaving directory
&lt;br&gt;&amp;gt; `/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit'
&lt;br&gt;&amp;gt; make[5]: *** [all-recursive] Error 1
&lt;br&gt;&amp;gt; make[5]: Leaving directory
&lt;br&gt;&amp;gt; `/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include'
&lt;br&gt;&amp;gt; make[4]: *** [all] Error 2
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any work around for this??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Once in a while when I get situation like this i.e. the compilation
&lt;br&gt;&amp;gt; fails during building tests or some checks, I used to skip
&lt;br&gt;&amp;gt; building/installing that part of the program.
&lt;br&gt;&amp;gt; Should I skip building &amp;quot;orb-core&amp;quot; part or what ? Also, I'm not sure
&lt;br&gt;&amp;gt; what purpose &amp;quot;orb-core&amp;quot; source solves in ORBit package.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much again for CORBA variables.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Amit Pundir
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 13, 2008 at 3:05 PM, Frank Rehberger &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20478819&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Frank.Rehberger@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Amit Pundir wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello team,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; First of all please excuse me for my questions if they seem trivial or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if they have already been discussed on this mailing list though I have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; done much googling for this information.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm trying to cross-compile ORBit2-2.14.13 for my ARM machine using
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; code-sourcery gnu toolchain. I'm getting the following error during
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configuration.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; checking whether byte ordering is bigendian... no
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; checking alignment of CORBA_octet... 0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configure: error: Failed to find alignment. Check config.log for details.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In config.log I found that compiler is not able to set the alignment
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of CORBA_octet and ac_cv_alignof_CORBA_octet is set to 0. Thats why
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm getting this error.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Similarly I'm sure I will get the same error while setting the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_boolean, char, wchar etc..
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Are there any known values for the following variables which I can
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cache during configuration process?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; well, the alignment is defined by CORBA-Spec, octet and structs &amp;nbsp;and
&lt;br&gt;&amp;gt;&amp;gt; others are not aligned, probably expressed as &amp;quot;1&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_octet &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_boolean &amp;nbsp; 4 (bool is represented as long)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_char &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_wchar &amp;nbsp; &amp;nbsp; 2 (same as short)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_short &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_long &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_long_long 8
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_float &amp;nbsp; &amp;nbsp; 4
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_double &amp;nbsp; &amp;nbsp;8
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_long_double ? (probably 8)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_struct &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment of CORBA_pointer &amp;nbsp; (not specified by CORBA, probably platform
&lt;br&gt;&amp;gt;&amp;gt; specific)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hope that helps.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards, frank
&lt;br&gt;&amp;gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt;&amp;gt; Version: GnuPG v1.2.2 (MingW32)
&lt;br&gt;&amp;gt;&amp;gt; Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; iD8DBQFJG/Tk99BSmbIl7S0RAqmSAKC+yEIS8oJjgmDeKnR0W0PWVgK/WQCgv6xk
&lt;br&gt;&amp;gt;&amp;gt; kbvdx4jERv7b18aSFv3Fj/o=
&lt;br&gt;&amp;gt;&amp;gt; =QDXO
&lt;br&gt;&amp;gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20478819&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/error-while-cross-compiling-ORBit2-2.14.1-for-%22ARM-Cortex-A8%22-tp20475964p20478819.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20477719</id>
	<title>Re: error while cross-compiling ORBit2-2.14.1 for &quot;ARM Cortex-A8&quot;</title>
	<published>2008-11-13T01:52:28Z</published>
	<updated>2008-11-13T01:52:28Z</updated>
	<author>
		<name>amit pundir</name>
	</author>
	<content type="html">Thanks for the values.
&lt;br&gt;&lt;br&gt;I cached those values at configuration time and it is configured well
&lt;br&gt;from there but now I got stuck at compilation.
&lt;br&gt;It is trying to execute a cross-compiled binary(meant for arm) and fails.
&lt;br&gt;&lt;br&gt;Here is the appropriate log:
&lt;br&gt;&lt;br&gt;--------------------------------------
&lt;br&gt;Making all in orb-core
&lt;br&gt;make[8]: Entering directory
&lt;br&gt;`/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit/orb-core'
&lt;br&gt;(rm -f corba-defs.h corba-defs-stubs.c corba-defs-skels.c
&lt;br&gt;corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c ||
&lt;br&gt;true) &amp;gt; /dev/null
&lt;br&gt;../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL
&lt;br&gt;-I../../../src/idl/CORBA -I../../../src/idl/interop
&lt;br&gt;-I../../../src/orb/orb-core --noskels --nodefskels --nostubs --noidata
&lt;br&gt;--nocommon --showcpperrors --define=Object=OObject
&lt;br&gt;--define=TypeCode=TTypeCode --deps ./.deps/corba-defs.idl.P
&lt;br&gt;../../../src/orb/orb-core/corba-defs.idl
&lt;br&gt;/bin/bash: ../../../src/idl-compiler/orbit-idl-2: cannot execute binary file
&lt;br&gt;make[8]: *** [corba-defs.h] Error 126
&lt;br&gt;make[8]: Leaving directory
&lt;br&gt;`/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit/orb-core'
&lt;br&gt;make[7]: *** [all-recursive] Error 1
&lt;br&gt;make[7]: Leaving directory
&lt;br&gt;`/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit'
&lt;br&gt;make[6]: *** [all] Error 2
&lt;br&gt;make[6]: Leaving directory
&lt;br&gt;`/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include/orbit'
&lt;br&gt;make[5]: *** [all-recursive] Error 1
&lt;br&gt;make[5]: Leaving directory
&lt;br&gt;`/home/amit/omap35xx/ti/src_gnome_build/ORBit2-2.14.13/include'
&lt;br&gt;make[4]: *** [all] Error 2
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Any work around for this??
&lt;br&gt;&lt;br&gt;Once in a while when I get situation like this i.e. the compilation
&lt;br&gt;fails during building tests or some checks, I used to skip
&lt;br&gt;building/installing that part of the program.
&lt;br&gt;Should I skip building &amp;quot;orb-core&amp;quot; part or what ? Also, I'm not sure
&lt;br&gt;what purpose &amp;quot;orb-core&amp;quot; source solves in ORBit package.
&lt;br&gt;&lt;br&gt;Thank you very much again for CORBA variables.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Amit Pundir
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 13, 2008 at 3:05 PM, Frank Rehberger &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20477719&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Frank.Rehberger@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Amit Pundir wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello team,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; First of all please excuse me for my questions if they seem trivial or
&lt;br&gt;&amp;gt;&amp;gt; if they have already been discussed on this mailing list though I have
&lt;br&gt;&amp;gt;&amp;gt; done much googling for this information.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to cross-compile ORBit2-2.14.13 for my ARM machine using
&lt;br&gt;&amp;gt;&amp;gt; code-sourcery gnu toolchain. I'm getting the following error during
&lt;br&gt;&amp;gt;&amp;gt; configuration.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt;&amp;gt; checking whether byte ordering is bigendian... no
&lt;br&gt;&amp;gt;&amp;gt; checking alignment of CORBA_octet... 0
&lt;br&gt;&amp;gt;&amp;gt; configure: error: Failed to find alignment. Check config.log for details.
&lt;br&gt;&amp;gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In config.log I found that compiler is not able to set the alignment
&lt;br&gt;&amp;gt;&amp;gt; of CORBA_octet and ac_cv_alignof_CORBA_octet is set to 0. Thats why
&lt;br&gt;&amp;gt;&amp;gt; I'm getting this error.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Similarly I'm sure I will get the same error while setting the
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_boolean, char, wchar etc..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Are there any known values for the following variables which I can
&lt;br&gt;&amp;gt;&amp;gt; cache during configuration process?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; well, the alignment is defined by CORBA-Spec, octet and structs &amp;nbsp;and
&lt;br&gt;&amp;gt; others are not aligned, probably expressed as &amp;quot;1&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_octet &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_boolean &amp;nbsp; 4 (bool is represented as long)
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_char &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_wchar &amp;nbsp; &amp;nbsp; 2 (same as short)
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_short &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_long &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_long_long 8
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_float &amp;nbsp; &amp;nbsp; 4
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_double &amp;nbsp; &amp;nbsp;8
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_long_double ? (probably 8)
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_struct &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt;&amp;gt; alignment of CORBA_pointer &amp;nbsp; (not specified by CORBA, probably platform
&lt;br&gt;&amp;gt; specific)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Hope that helps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards, frank
&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt; Version: GnuPG v1.2.2 (MingW32)
&lt;br&gt;&amp;gt; Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iD8DBQFJG/Tk99BSmbIl7S0RAqmSAKC+yEIS8oJjgmDeKnR0W0PWVgK/WQCgv6xk
&lt;br&gt;&amp;gt; kbvdx4jERv7b18aSFv3Fj/o=
&lt;br&gt;&amp;gt; =QDXO
&lt;br&gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20477719&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/error-while-cross-compiling-ORBit2-2.14.1-for-%22ARM-Cortex-A8%22-tp20475964p20477719.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20477459</id>
	<title>Re: error while cross-compiling ORBit2-2.14.1 for &quot;ARM Cortex-A8&quot;</title>
	<published>2008-11-13T01:35:32Z</published>
	<updated>2008-11-13T01:35:32Z</updated>
	<author>
		<name>Frank Rehberger</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Amit Pundir wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello team,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First of all please excuse me for my questions if they seem trivial or
&lt;br&gt;&amp;gt; if they have already been discussed on this mailing list though I have
&lt;br&gt;&amp;gt; done much googling for this information.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to cross-compile ORBit2-2.14.13 for my ARM machine using
&lt;br&gt;&amp;gt; code-sourcery gnu toolchain. I'm getting the following error during
&lt;br&gt;&amp;gt; configuration.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt; checking whether byte ordering is bigendian... no
&lt;br&gt;&amp;gt; checking alignment of CORBA_octet... 0
&lt;br&gt;&amp;gt; configure: error: Failed to find alignment. Check config.log for details.
&lt;br&gt;&amp;gt; ----------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In config.log I found that compiler is not able to set the alignment
&lt;br&gt;&amp;gt; of CORBA_octet and ac_cv_alignof_CORBA_octet is set to 0. Thats why
&lt;br&gt;&amp;gt; I'm getting this error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Similarly I'm sure I will get the same error while setting the
&lt;br&gt;&amp;gt; alignment of CORBA_boolean, char, wchar etc..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any known values for the following variables which I can
&lt;br&gt;&amp;gt; cache during configuration process?
&lt;br&gt;&amp;gt;
&lt;/div&gt;well, the alignment is defined by CORBA-Spec, octet and structs &amp;nbsp;and
&lt;br&gt;others are not aligned, probably expressed as &amp;quot;1&amp;quot;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; alignment of CORBA_octet &amp;nbsp; &amp;nbsp; 1
&lt;br&gt;&amp;gt; alignment of CORBA_boolean &amp;nbsp; 4 (bool is represented as long)
&lt;br&gt;&amp;gt; alignment of CORBA_char &amp;nbsp; &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; alignment of CORBA_wchar &amp;nbsp; &amp;nbsp; 2 (same as short)
&lt;br&gt;&amp;gt; alignment of CORBA_short &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt; alignment of CORBA_long &amp;nbsp; &amp;nbsp; &amp;nbsp;4
&lt;br&gt;&amp;gt; alignment of CORBA_long_long 8
&lt;br&gt;&amp;gt; alignment of CORBA_float &amp;nbsp; &amp;nbsp; 4
&lt;br&gt;&amp;gt; alignment of CORBA_double &amp;nbsp; &amp;nbsp;8
&lt;br&gt;&amp;gt; alignment of CORBA_long_double ? (probably 8)
&lt;br&gt;&amp;gt; alignment of CORBA_struct &amp;nbsp; &amp;nbsp;1
&lt;br&gt;&amp;gt; alignment of CORBA_pointer &amp;nbsp; (not specified by CORBA, probably platform
&lt;/div&gt;specific)
&lt;br&gt;&amp;gt;
&lt;br&gt;Hope that helps.
&lt;br&gt;&lt;br&gt;Regards, frank
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.2.2 (MingW32)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;iD8DBQFJG/Tk99BSmbIl7S0RAqmSAKC+yEIS8oJjgmDeKnR0W0PWVgK/WQCgv6xk
&lt;br&gt;kbvdx4jERv7b18aSFv3Fj/o=
&lt;br&gt;=QDXO
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20477459&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/error-while-cross-compiling-ORBit2-2.14.1-for-%22ARM-Cortex-A8%22-tp20475964p20477459.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20475964</id>
	<title>error while cross-compiling ORBit2-2.14.1 for &quot;ARM Cortex-A8&quot;</title>
	<published>2008-11-12T23:32:51Z</published>
	<updated>2008-11-12T23:32:51Z</updated>
	<author>
		<name>amit pundir</name>
	</author>
	<content type="html">Hello team,
&lt;br&gt;&lt;br&gt;First of all please excuse me for my questions if they seem trivial or
&lt;br&gt;if they have already been discussed on this mailing list though I have
&lt;br&gt;done much googling for this information.
&lt;br&gt;&lt;br&gt;I'm trying to cross-compile ORBit2-2.14.13 for my ARM machine using
&lt;br&gt;code-sourcery gnu toolchain. I'm getting the following error during
&lt;br&gt;configuration.
&lt;br&gt;&lt;br&gt;----------------------------
&lt;br&gt;checking whether byte ordering is bigendian... no
&lt;br&gt;checking alignment of CORBA_octet... 0
&lt;br&gt;configure: error: Failed to find alignment. Check config.log for details.
&lt;br&gt;----------------------------
&lt;br&gt;&lt;br&gt;In config.log I found that compiler is not able to set the alignment
&lt;br&gt;of CORBA_octet and ac_cv_alignof_CORBA_octet is set to 0. Thats why
&lt;br&gt;I'm getting this error.
&lt;br&gt;&lt;br&gt;Similarly I'm sure I will get the same error while setting the
&lt;br&gt;alignment of CORBA_boolean, char, wchar etc..
&lt;br&gt;&lt;br&gt;Are there any known values for the following variables which I can
&lt;br&gt;cache during configuration process?
&lt;br&gt;&lt;br&gt;alignment of CORBA_octet
&lt;br&gt;alignment of CORBA_boolean
&lt;br&gt;alignment of CORBA_char
&lt;br&gt;alignment of CORBA_wchar
&lt;br&gt;alignment of CORBA_short
&lt;br&gt;alignment of CORBA_long
&lt;br&gt;alignment of CORBA_long_long
&lt;br&gt;alignment of CORBA_float
&lt;br&gt;alignment of CORBA_double
&lt;br&gt;alignment of CORBA_long_double
&lt;br&gt;alignment of CORBA_struct
&lt;br&gt;alignment of CORBA_pointer
&lt;br&gt;&lt;br&gt;Any help on this will be appreciated.
&lt;br&gt;Thanks for your concern.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Amit Pundir
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20475964&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/error-while-cross-compiling-ORBit2-2.14.1-for-%22ARM-Cortex-A8%22-tp20475964p20475964.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20105161</id>
	<title>Re: win32 native build</title>
	<published>2008-10-22T00:08:03Z</published>
	<updated>2008-10-22T00:08:03Z</updated>
	<author>
		<name>Marcelo Vanzin</name>
	</author>
	<content type="html">On Tue, Oct 21, 2008 at 11:35 PM, Bart Vanherck
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20105161&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bvanherck@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; True, the simple hello world application crached when I runned them. I know
&lt;br&gt;&amp;gt; now that the solution is try to build the lib with MVC and patch it to
&lt;br&gt;&amp;gt; export the variables and functions and so on ...
&lt;br&gt;&lt;br&gt;If you want to play with that, you may want to take a look at
&lt;br&gt;&lt;a href=&quot;http://bugzilla.gnome.org/show_bug.cgi?id=537328&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugzilla.gnome.org/show_bug.cgi?id=537328&lt;/a&gt;. It's been a few
&lt;br&gt;months since I touched that code, but it worked for me with MSVC.
&lt;br&gt;&lt;br&gt;(I have my own hacked together makefiles to compile orbit on Win32, I
&lt;br&gt;could send them to you but they're not pretty.)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Marcelo Vanzin
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20105161&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mmvgroups@...&lt;/a&gt;
&lt;br&gt;&amp;quot;Life's too short to drink cheap beer.&amp;quot;
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20105161&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20105161.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20104833</id>
	<title>Re: win32 native build</title>
	<published>2008-10-21T23:35:48Z</published>
	<updated>2008-10-21T23:35:48Z</updated>
	<author>
		<name>Bart Vanherck-4</name>
	</author>
	<content type="html">Tor Lillqvist wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; It seems to work, at least for function calls. The data structures remain
&lt;br&gt;&amp;gt;&amp;gt; still unresolved.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think that must be because the corresponding declarations in the
&lt;br&gt;&amp;gt; headers don't have the __declspec(dllimport) attributes. gcc can
&lt;br&gt;&amp;gt; manage without, MSVC can't.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; My linkage gives unresolved for this (DATA) symbols. The solution was that I
&lt;br&gt;&amp;gt;&amp;gt; just needed to remove &amp;quot;DATA&amp;quot; before building the lib file. But my little
&lt;br&gt;&amp;gt;&amp;gt; test program links now.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But it is probable that actual use of these variables without MSVC
&lt;br&gt;&amp;gt; knowing that they are actually imported from a DLL produces bogus
&lt;br&gt;&amp;gt; results or even crashes? Does the program actually work?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --tml
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;True, the simple hello world application crached when I runned them. I 
&lt;br&gt;know now that the solution is try to build the lib with MVC and patch it 
&lt;br&gt;to export the variables and functions and so on ...
&lt;br&gt;&lt;br&gt;Bart
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20104833&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20104833.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20044440</id>
	<title>Re: win32 native build</title>
	<published>2008-10-17T23:10:13Z</published>
	<updated>2008-10-17T23:10:13Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">&amp;gt; It seems to work, at least for function calls. The data structures remain
&lt;br&gt;&amp;gt; still unresolved.
&lt;br&gt;&lt;br&gt;I think that must be because the corresponding declarations in the
&lt;br&gt;headers don't have the __declspec(dllimport) attributes. gcc can
&lt;br&gt;manage without, MSVC can't.
&lt;br&gt;&lt;br&gt;&amp;gt; My linkage gives unresolved for this (DATA) symbols. The solution was that I
&lt;br&gt;&amp;gt; just needed to remove &amp;quot;DATA&amp;quot; before building the lib file. But my little
&lt;br&gt;&amp;gt; test program links now.
&lt;br&gt;&lt;br&gt;But it is probable that actual use of these variables without MSVC
&lt;br&gt;knowing that they are actually imported from a DLL produces bogus
&lt;br&gt;results or even crashes? Does the program actually work?
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20044440&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20044440.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20034071</id>
	<title>Re: win32 native build</title>
	<published>2008-10-17T06:33:12Z</published>
	<updated>2008-10-17T06:33:12Z</updated>
	<author>
		<name>Bart Vanherck-4</name>
	</author>
	<content type="html">Thank you.
&lt;br&gt;&lt;br&gt;It seems to work, at least for function calls. The data structures 
&lt;br&gt;remain still unresolved.
&lt;br&gt;&lt;br&gt;In the def file for example I see this:
&lt;br&gt;TC_CORBA_short_struct DATA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;TC_CORBA_string_struct DATA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;TC_CORBA_unsigned_long_long_struct DATA &amp;nbsp; 
&lt;br&gt;TC_CORBA_unsigned_long_struct DATA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;TC_CORBA_unsigned_short_struct DATA &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;My linkage gives unresolved for this (DATA) symbols. The solution was 
&lt;br&gt;that I just needed to remove &amp;quot;DATA&amp;quot; before building the lib file. But my 
&lt;br&gt;little test program links now.
&lt;br&gt;&lt;br&gt;kind regards,
&lt;br&gt;&lt;br&gt;Bart
&lt;br&gt;&lt;br&gt;Tor Lillqvist wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I already downloaded the
&lt;br&gt;&amp;gt;&amp;gt; ORBit2-dev_2.4.16-1_win32.zip from the gnome ftp site, but there were no lib
&lt;br&gt;&amp;gt;&amp;gt; files included.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can produce one for instance like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; download &lt;a href=&quot;http://tml.pp.fi/pexports-0.44.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tml.pp.fi/pexports-0.44.zip&lt;/a&gt;, unpack, put pexports.exe
&lt;br&gt;&amp;gt; somewhere in %PATH% . pexports also comes with mingw.
&lt;br&gt;&amp;gt; cd foo\lib
&lt;br&gt;&amp;gt; pexports ..\bin\libORBit-2-0.dll &amp;gt;ORBit-2.def
&lt;br&gt;&amp;gt; lib -def:ORBit-2.def -machine:x86 -out:ORBit-2.lib
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; where lib is lib.exe that comes with MSVC.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can also use link -dump -exports instead of pexports, but then you
&lt;br&gt;&amp;gt; will have to edit the output file into .def syntax, and the exported
&lt;br&gt;&amp;gt; variables won't be marked with the DATA keyword, which probably is
&lt;br&gt;&amp;gt; very relevant for the produced import library to be useful with MSVC.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that I have never used ORBit2 with MSVC-built code myself, I only
&lt;br&gt;&amp;gt; told above how to produce an MS import library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --tml
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20034071&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20034071.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20019234</id>
	<title>Re: win32 native build</title>
	<published>2008-10-16T10:40:21Z</published>
	<updated>2008-10-16T10:40:21Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">&amp;gt; download &lt;a href=&quot;http://tml.pp.fi/pexports-0.44.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tml.pp.fi/pexports-0.44.zip&lt;/a&gt;, unpack, put pexports.exe
&lt;br&gt;&amp;gt; somewhere in %PATH% .
&lt;br&gt;&lt;br&gt;I misremembered, that file contains pexports sources, no executable...
&lt;br&gt;(and compiling it requires flex and bison (or lex and yacc)). So look
&lt;br&gt;for pexports.exe from mingw instead.
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20019234&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20019234.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20019136</id>
	<title>Re: win32 native build</title>
	<published>2008-10-16T10:37:19Z</published>
	<updated>2008-10-16T10:37:19Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">&amp;gt; I already downloaded the
&lt;br&gt;&amp;gt; ORBit2-dev_2.4.16-1_win32.zip from the gnome ftp site, but there were no lib
&lt;br&gt;&amp;gt; files included.
&lt;br&gt;&lt;br&gt;You can produce one for instance like this:
&lt;br&gt;&lt;br&gt;download &lt;a href=&quot;http://tml.pp.fi/pexports-0.44.zip&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tml.pp.fi/pexports-0.44.zip&lt;/a&gt;, unpack, put pexports.exe
&lt;br&gt;somewhere in %PATH% . pexports also comes with mingw.
&lt;br&gt;cd foo\lib
&lt;br&gt;pexports ..\bin\libORBit-2-0.dll &amp;gt;ORBit-2.def
&lt;br&gt;lib -def:ORBit-2.def -machine:x86 -out:ORBit-2.lib
&lt;br&gt;&lt;br&gt;where lib is lib.exe that comes with MSVC.
&lt;br&gt;&lt;br&gt;You can also use link -dump -exports instead of pexports, but then you
&lt;br&gt;will have to edit the output file into .def syntax, and the exported
&lt;br&gt;variables won't be marked with the DATA keyword, which probably is
&lt;br&gt;very relevant for the produced import library to be useful with MSVC.
&lt;br&gt;&lt;br&gt;Note that I have never used ORBit2 with MSVC-built code myself, I only
&lt;br&gt;told above how to produce an MS import library.
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20019136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20019136.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20014855</id>
	<title>win32 native build</title>
	<published>2008-10-16T07:06:23Z</published>
	<updated>2008-10-16T07:06:23Z</updated>
	<author>
		<name>Bart Vanherck-4</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I march 2008 there were some mailings about letting ORBit work with MS &amp;nbsp;
&lt;br&gt;compilers. What is the current state on this? Is there something that 
&lt;br&gt;still needs to be done ?
&lt;br&gt;&lt;br&gt;I want to port some existing code to work on win32. I already downloaded 
&lt;br&gt;the ORBit2-dev_2.4.16-1_win32.zip from the gnome ftp site, but there 
&lt;br&gt;were no lib files included.
&lt;br&gt;&lt;br&gt;kind regards,
&lt;br&gt;&lt;br&gt;Bart
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=20014855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/win32-native-build-tp20014855p20014855.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19511682</id>
	<title>Re: I just missed the train for 2.14.15</title>
	<published>2008-09-16T06:20:28Z</published>
	<updated>2008-09-16T06:20:28Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 16/09/2008, at 14.59, Jules Colding wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My fixes for #538388 and #552323 apparently just missed the train. &amp;nbsp;
&lt;br&gt;&amp;gt; Could we please have a 2.14.16 in the near future?
&lt;br&gt;&lt;br&gt;No worries, Kjartan has been kind to do 2.14.16 in the close future.
&lt;br&gt;&lt;br&gt;Thanks :-)
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19511682&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/I-just-missed-the-train-for-2.14.15-tp19511359p19511682.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19511359</id>
	<title>I just missed the train for 2.14.15</title>
	<published>2008-09-16T05:59:28Z</published>
	<updated>2008-09-16T05:59:28Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;My fixes for #538388 and #552323 apparently just missed the train. &amp;nbsp;
&lt;br&gt;Could we please have a 2.14.16 in the near future?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19511359&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/I-just-missed-the-train-for-2.14.15-tp19511359p19511359.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19168015</id>
	<title>Re: Error processing an idl file.</title>
	<published>2008-08-26T11:47:15Z</published>
	<updated>2008-08-26T11:47:15Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On 26/08/2008, at 20.31, Javier Fernandez Garcia-Boente wrote:
&lt;br&gt;&amp;gt; The strange thing is that i have not that error using Debian/stable
&lt;br&gt;&amp;gt; neither Ubuntu/Hardy. That error appears only in Debian/testing.
&lt;br&gt;&lt;br&gt;It must be something in Debian/testing as it compiles just fine for me &amp;nbsp;
&lt;br&gt;on darwin. I'm also using 2.14.12 as you are.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19168015&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Error-processing-an-idl-file.-tp19167701p19168015.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19167701</id>
	<title>Error processing an idl file.</title>
	<published>2008-08-26T11:31:44Z</published>
	<updated>2008-08-26T11:31:44Z</updated>
	<author>
		<name>Javier Fernandez</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Im getting an strange error processing a very simple IDL file:
&lt;br&gt;&lt;br&gt;#ifndef _FCOMMONMODULE_IDL_
&lt;br&gt;#define _FCOMMONMODULE_IDL_
&lt;br&gt;&lt;br&gt;module f_common {
&lt;br&gt;&lt;br&gt;enum FisterraErrorType {
&lt;br&gt;&amp;nbsp; FisterraFailed, FisterraNoPermission,
&lt;br&gt;&amp;nbsp; FisterraBadAddress, FisterraParseError, FisterraCorrupt,
&lt;br&gt;&amp;nbsp; FisterraTypeMismatch, FisterraNoDatabaseAvailable,
&lt;br&gt;&amp;nbsp; FisterraInShutdown, FisterraDatabaseTransactionError, 
&lt;br&gt;&amp;nbsp; FisterraDatabaseOperationError, FisterraDatabaseUpdateConflict, &amp;nbsp; 
&lt;br&gt;&amp;nbsp; FisterraDatabaseConnectionError, FisterraEDIError
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;exception FisterraException {
&lt;br&gt;&amp;nbsp; FisterraErrorType err_no;
&lt;br&gt;&amp;nbsp; string message;
&lt;br&gt;};
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;#endif /* _FCOMMONMODULE_IDL_ */
&lt;br&gt;&lt;br&gt;This IDL just define several error types for using them in a
&lt;br&gt;client/server application.
&lt;br&gt;&lt;br&gt;Im compiling gthis IDL file using:
&lt;br&gt;&lt;br&gt;/usr/bin/orbit-idl-2 --onlytop -I . &amp;nbsp;./f_com_corba_common.idl
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Im receiving the following error:
&lt;br&gt;&lt;br&gt;orbit-idl-2 2.14.12 compiling
&lt;br&gt;&amp;nbsp; mode, hide preprocessor errors, passes: stubs skels common headers 
&lt;br&gt;&lt;br&gt;Processing file ./f_com_corba_common.idl
&lt;br&gt;**
&lt;br&gt;** ERROR:(orbit-idl-c-headers.c:300):ch_output_types: assertion failed:
&lt;br&gt;(htail &amp;&amp; strlen (htail) &amp;gt;= 2)
&lt;br&gt;Aborted
&lt;br&gt;&lt;br&gt;If i remove the &amp;quot;--onlytop&amp;quot; option, the file is successfully processed.
&lt;br&gt;However, i need this option in other IDL files that i have to use later,
&lt;br&gt;in which additional IDL files are included using the &amp;quot;#include&amp;quot;
&lt;br&gt;directive. 
&lt;br&gt;&lt;br&gt;The strange thing is that i have not that error using Debian/stable
&lt;br&gt;neither Ubuntu/Hardy. That error appears only in Debian/testing. 
&lt;br&gt;&lt;br&gt;Thanks for your help. &amp;nbsp; 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19167701&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Error-processing-an-idl-file.-tp19167701p19167701.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18689520</id>
	<title>Re: Memory leak on CORBA_String_dup</title>
	<published>2008-07-28T05:34:34Z</published>
	<updated>2008-07-28T05:34:34Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi arijit,
&lt;br&gt;&lt;br&gt;On 28/07/2008, at 14.28, arijit wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 28/07/2008, at 11.29, arijit wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;I am using ORBit2 on server side and OpenORB on the client side.
&lt;br&gt;&amp;gt;&amp;gt; The ORBit2 returns a string by doing CORBA_String_sup of a const
&lt;br&gt;&amp;gt;&amp;gt; char *. In OpenORB, I take care of making sure the retruned value is
&lt;br&gt;&amp;gt;&amp;gt; null-ified (though, I believe, it cannot contribute to the server
&lt;br&gt;&amp;gt;&amp;gt; leaking memory!!).
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;I have confirmed that the leak is with the String being passed,
&lt;br&gt;&amp;gt;&amp;gt; by, increasing the size of the String being returned, and seeing the
&lt;br&gt;&amp;gt;&amp;gt; server leak increasing significantly!
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Am I missing something, or am I going horribly wrong somewhere?
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Any help is much appreciated!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Seeing the server side method code will help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;nbsp; jules
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp;Here is the code snippet:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; static uancorba_SessionID
&lt;br&gt;&amp;gt; impl_uancorba_SessionManager_createConfigSession
&lt;br&gt;&amp;gt; (impl_POA_uancorba_SessionManager *servant,
&lt;br&gt;&amp;gt; CORBA_Environment *ev)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;uancorba_SessionID retval;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;retval = CORBA_string_dup(&amp;quot;TEST THIS OUT FIRST&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (retval);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the idl, SessionID is defined, thus:
&lt;br&gt;&amp;gt; module uancorba {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; * The SessionID is a unique identifier used to represent the &amp;nbsp;
&lt;br&gt;&amp;gt; user's session.
&lt;br&gt;&amp;gt; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp;typedef string SessionID;
&lt;br&gt;&amp;gt; .....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using ORBit2 version number: 2.12.4.
&lt;/div&gt;&lt;br&gt;Your code is correct and should not leak but you are using an ancient &amp;nbsp;
&lt;br&gt;version of ORBit2. Please try again with something newer like &amp;quot;2.14.13&amp;quot;.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18689520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-leak-on-CORBA_String_dup-tp18686880p18689520.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18689395</id>
	<title>Re: Memory leak on CORBA_String_dup</title>
	<published>2008-07-28T05:28:17Z</published>
	<updated>2008-07-28T05:28:17Z</updated>
	<author>
		<name>arijit-3</name>
	</author>
	<content type="html">On 28/07/2008, at 11.29, arijit wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp; I am using ORBit2 on server side and OpenORB on the client side. &amp;nbsp;
&lt;br&gt;&amp;gt; The ORBit2 returns a string by doing CORBA_String_sup of a const &amp;nbsp;
&lt;br&gt;&amp;gt; char *. In OpenORB, I take care of making sure the retruned value is &amp;nbsp;
&lt;br&gt;&amp;gt; null-ified (though, I believe, it cannot contribute to the server &amp;nbsp;
&lt;br&gt;&amp;gt; leaking memory!!).
&lt;br&gt;&amp;gt; &amp;nbsp; I have confirmed that the leak is with the String being passed, &amp;nbsp;
&lt;br&gt;&amp;gt; by, increasing the size of the String being returned, and seeing the &amp;nbsp;
&lt;br&gt;&amp;gt; server leak increasing significantly!
&lt;br&gt;&amp;gt; &amp;nbsp; Am I missing something, or am I going horribly wrong somewhere?
&lt;br&gt;&amp;gt; &amp;nbsp; Any help is much appreciated!!
&lt;/div&gt;&lt;br&gt;Seeing the server side method code will help.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&amp;nbsp; Here is the code snippet:
&lt;br&gt;&lt;br&gt;static uancorba_SessionID
&lt;br&gt;impl_uancorba_SessionManager_createConfigSession(impl_POA_uancorba_SessionManager *servant,
&lt;br&gt;CORBA_Environment *ev)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uancorba_SessionID retval;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retval = CORBA_string_dup(&amp;quot;TEST THIS OUT FIRST&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (retval);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;In the idl, SessionID is defined, thus:
&lt;br&gt;module uancorba {
&lt;br&gt;&lt;br&gt;&amp;nbsp; /** 
&lt;br&gt;&amp;nbsp; &amp;nbsp;* The SessionID is a unique identifier used to represent the user's session.
&lt;br&gt;&amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; typedef string SessionID;
&lt;br&gt;.....
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I am using ORBit2 version number: 2.12.4.
&lt;br&gt;&lt;br&gt;Thanks a ton for all your help!!
&lt;br&gt;&lt;br&gt;-Arijit
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18689395&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-leak-on-CORBA_String_dup-tp18686880p18689395.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18688269</id>
	<title>Re: Memory leak on CORBA_String_dup</title>
	<published>2008-07-28T04:15:44Z</published>
	<updated>2008-07-28T04:15:44Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 28/07/2008, at 11.29, arijit wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp; I am using ORBit2 on server side and OpenORB on the client side. &amp;nbsp;
&lt;br&gt;&amp;gt; The ORBit2 returns a string by doing CORBA_String_sup of a const &amp;nbsp;
&lt;br&gt;&amp;gt; char *. In OpenORB, I take care of making sure the retruned value is &amp;nbsp;
&lt;br&gt;&amp;gt; null-ified (though, I believe, it cannot contribute to the server &amp;nbsp;
&lt;br&gt;&amp;gt; leaking memory!!).
&lt;br&gt;&amp;gt; &amp;nbsp; I have confirmed that the leak is with the String being passed, &amp;nbsp;
&lt;br&gt;&amp;gt; by, increasing the size of the String being returned, and seeing the &amp;nbsp;
&lt;br&gt;&amp;gt; server leak increasing significantly!
&lt;br&gt;&amp;gt; &amp;nbsp; Am I missing something, or am I going horribly wrong somewhere?
&lt;br&gt;&amp;gt; &amp;nbsp; Any help is much appreciated!!
&lt;/div&gt;&lt;br&gt;Seeing the server side method code will help.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18688269&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-leak-on-CORBA_String_dup-tp18686880p18688269.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18686880</id>
	<title>Memory leak on CORBA_String_dup</title>
	<published>2008-07-28T02:29:08Z</published>
	<updated>2008-07-28T02:29:08Z</updated>
	<author>
		<name>arijit-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp; &amp;nbsp;I am using ORBit2 on server side and OpenORB on the client side. The ORBit2 returns a string by doing CORBA_String_sup of a const char *. In OpenORB, I take care of making sure the retruned value is null-ified (though, I believe, it cannot contribute to the server leaking memory!!).
&lt;br&gt;&amp;nbsp; &amp;nbsp;I have confirmed that the leak is with the String being passed, by, increasing the size of the String being returned, and seeing the server leak increasing significantly!
&lt;br&gt;&amp;nbsp; &amp;nbsp;Am I missing something, or am I going horribly wrong somewhere?
&lt;br&gt;&amp;nbsp; &amp;nbsp;Any help is much appreciated!!
&lt;br&gt;-Arijit
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18686880&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-leak-on-CORBA_String_dup-tp18686880p18686880.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18531047</id>
	<title>Re: Crosscompiling ORbit2 for ARM9</title>
	<published>2008-07-18T07:52:28Z</published>
	<updated>2008-07-18T07:52:28Z</updated>
	<author>
		<name>Frank Rehberger</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
-----BEGIN PGP SIGNED MESSAGE----- &lt;br&gt;
Hash: SHA1 &lt;br&gt;
&amp;nbsp;&lt;br&gt;
Hi Giraut,&lt;br&gt;
&lt;br&gt;
it is a while ago I cross compiled orbit, but probably this is related
to the generated code from IDL files, such as &quot;orbit-interface.idl&quot; The
cross compiled orbit-idl executable will not be able to do the job on
your host-system. You will need to define native orbit-idl compiler on
your host-system, to do the idl-code-generation job to generate the
code from IDL files for your target system.&lt;br&gt;
&lt;br&gt;
Cross compiling should be done in two steps:&lt;br&gt;
1. Compile Orbit2 native for your host system&lt;br&gt;
2. Cross compile Orbit2, but tweak the environment to use the
orbit-idl-2 executable from step 1.&lt;br&gt;
2(alternative). It might also help to copy the generated files form
step 1 into x-compile workspace, but not sure if this might do AFAICS,
the generated code should be generic, not depending on endianess.&lt;br&gt;
&lt;br&gt;
Hope that helps, Frank&lt;br&gt;
&lt;br&gt;
Hope that helps,&lt;br&gt;
giraut benoit wrote:&lt;br&gt;
| Hello&lt;br&gt;
|&lt;br&gt;
| I have a error during the compilation of Orbit2 in a scratchbox
context :&lt;br&gt;
| The orbit-interface-common.c is missing so the compilation fail.&lt;br&gt;
|&lt;br&gt;
| Did someone get this error before ?&lt;br&gt;
|&lt;br&gt;
| Thx benoit&lt;br&gt;
|&lt;br&gt;
|&lt;br&gt;
| /bin/sh ../../../libtool --tag=CC&amp;nbsp;&amp;nbsp; --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include
-I../../../include/orbit/orb-core -I../../../include
-I../../../include/orbit/orb-core
-DORBIT_TYPELIB_DIR=\&quot;&quot;/usr/local/lib/orbit-2.0&quot;\&quot;
-DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -DG_DISABLE_DEPRECATED -I../../../linc2/include
-I../../../linc2/include -pthread -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -g -O2
-Werror-implicit-function-declaration&amp;nbsp; -MT orbit-interface-common.lo
-MD -MP -MF .deps/orbit-interface-common.Tpo -c -o
orbit-interface-common.lo orbit-interface-common.c&lt;br&gt;
|&amp;nbsp; gcc -DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include
-I../../../include/orbit/orb-core -I../../../include
-I../../../include/orbit/orb-core
-DORBIT_TYPELIB_DIR=\&quot;/usr/local/lib/orbit-2.0\&quot; -DORBIT2_INTERNAL_API
-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-DG_DISABLE_DEPRECATED -I../../../linc2/include
-I../../../linc2/include -pthread -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -g -O2
-Werror-implicit-function-declaration -MT orbit-interface-common.lo -MD
-MP -MF .deps/orbit-interface-common.Tpo -c orbit-interface-common.c&amp;nbsp;
-fPIC -DPIC -o .libs/orbit-interface-common.o&lt;br&gt;
| sbox-arm-linux-gcc: orbit-interface-common.c: No such file or
directory&lt;br&gt;
| sbox-arm-linux-gcc: no input files&lt;br&gt;
| make[5]: *** [orbit-interface-common.lo] Error 1&lt;br&gt;
| make[5]: Leaving directory
`/home/benoit/ORBit2-2.14.13/src/orb/orb-core'&lt;br&gt;
| make[4]: *** [all] Error 2&lt;br&gt;
| make[4]: Leaving directory
`/home/benoit/ORBit2-2.14.13/src/orb/orb-core'&lt;br&gt;
| make[3]: *** [all-recursive] Error 1&lt;br&gt;
| make[3]: Leaving directory `/home/benoit/ORBit2-2.14.13/src/orb'&lt;br&gt;
| make[2]: *** [all-recursive] Error 1&lt;br&gt;
| make[2]: Leaving directory `/home/benoit/ORBit2-2.14.13/src'&lt;br&gt;
| make[1]: *** [all-recursive] Error 1&lt;br&gt;
| make[1]: Leaving directory `/home/benoit/ORBit2-2.14.13'&lt;br&gt;
| make: *** [all] Error 2&lt;br&gt;
|&lt;br&gt;
&lt;br&gt;
|&lt;br&gt;
| -------------------------&lt;br&gt;
|&lt;br&gt;
| _______________________________________________&lt;br&gt;
| orbit-list mailing list&lt;br&gt;
| &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531047&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;&lt;br&gt;
| &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-----BEGIN PGP SIGNATURE----- &lt;br&gt;
Version: GnuPG v1.2.2 (MingW32) &lt;br&gt;
Comment: Using GnuPG with Mozilla - &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt; &lt;br&gt;
&amp;nbsp;&lt;br&gt;
iD8DBQFIgK4i99BSmbIl7S0RAsEXAKCVCNtJ3MPJ7Z0ufV/1axvlvBmbVQCdEhlJ &lt;br&gt;
TEq4b2W2bM0W5svyQvvaFw4= &lt;br&gt;
=7Jq/ &lt;br&gt;
-----END PGP SIGNATURE----- &lt;br&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18531047&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Crosscompiling-ORbit2-for-ARM9-tp18527985p18531047.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18527985</id>
	<title>Crosscompiling ORbit2 for ARM9</title>
	<published>2008-07-18T05:17:30Z</published>
	<updated>2008-07-18T05:17:30Z</updated>
	<author>
		<name>giraut benoit</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Hello&lt;br&gt;&lt;br&gt;I have a error during the compilation of Orbit2 in a scratchbox context :&lt;br&gt;The orbit-interface-common.c is missing so the compilation fail.&lt;br&gt;&lt;br&gt;Did someone get this error before ? &lt;br&gt;&lt;br&gt;Thx benoit&lt;br&gt;
&lt;br&gt;&lt;br&gt;/bin/sh ../../../libtool --tag=CC&amp;nbsp;&amp;nbsp; --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include -I../../../include/orbit/orb-core -I../../../include -I../../../include/orbit/orb-core -DORBIT_TYPELIB_DIR=\&amp;quot;&amp;quot;/usr/local/lib/orbit-2.0&amp;quot;\&amp;quot; -DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -I../../../linc2/include -I../../../linc2/include -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -g -O2 -Werror-implicit-function-declaration&amp;nbsp; -MT orbit-interface-common.lo -MD -MP -MF .deps/orbit-interface-common.Tpo -c -o orbit-interface-common.lo orbit-interface-common.c&lt;br&gt;
&amp;nbsp;gcc -DHAVE_CONFIG_H -I. -I../../.. -I. -I. -I../../../include -I../../../include/orbit/orb-core -I../../../include -I../../../include/orbit/orb-core -DORBIT_TYPELIB_DIR=\&amp;quot;/usr/local/lib/orbit-2.0\&amp;quot; -DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -I../../../linc2/include -I../../../linc2/include -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -Werror-implicit-function-declaration -MT orbit-interface-common.lo -MD -MP -MF .deps/orbit-interface-common.Tpo -c orbit-interface-common.c&amp;nbsp; -fPIC -DPIC -o .libs/orbit-interface-common.o&lt;br&gt;
sbox-arm-linux-gcc: orbit-interface-common.c: No such file or directory&lt;br&gt;sbox-arm-linux-gcc: no input files&lt;br&gt;make[5]: *** [orbit-interface-common.lo] Error 1&lt;br&gt;make[5]: Leaving directory `/home/benoit/ORBit2-2.14.13/src/orb/orb-core&amp;#39;&lt;br&gt;
make[4]: *** [all] Error 2&lt;br&gt;make[4]: Leaving directory `/home/benoit/ORBit2-2.14.13/src/orb/orb-core&amp;#39;&lt;br&gt;make[3]: *** [all-recursive] Error 1&lt;br&gt;make[3]: Leaving directory `/home/benoit/ORBit2-2.14.13/src/orb&amp;#39;&lt;br&gt;
make[2]: *** [all-recursive] Error 1&lt;br&gt;make[2]: Leaving directory `/home/benoit/ORBit2-2.14.13/src&amp;#39;&lt;br&gt;make[1]: *** [all-recursive] Error 1&lt;br&gt;make[1]: Leaving directory `/home/benoit/ORBit2-2.14.13&amp;#39;&lt;br&gt;make: *** [all] Error 2&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18527985&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Crosscompiling-ORbit2-for-ARM9-tp18527985p18527985.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18587654</id>
	<title>java client to C server on another box</title>
	<published>2008-07-17T12:24:54Z</published>
	<updated>2008-07-17T12:24:54Z</updated>
	<author>
		<name>Tom Ballard</name>
	</author>
	<content type="html">I have a braindead client/server in java and another one in C using the 
&lt;br&gt;same idl file. I haven't been able to find the proper incantation for 
&lt;br&gt;making the java client talk to the C server. &amp;nbsp;Anyone know of a simple 
&lt;br&gt;example? 
&lt;br&gt;&lt;br&gt;-tom
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18587654&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java-client-to-C-server-on-another-box-tp18587654p18587654.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18065097</id>
	<title>Re: PATCH: Fix and simplify get_netid()</title>
	<published>2008-06-23T01:52:54Z</published>
	<updated>2008-06-23T01:52:54Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi Michael,
&lt;br&gt;&lt;br&gt;On 23/06/2008, at 10.46, Michael Meeks wrote:
&lt;br&gt;&amp;gt; Hi Jules,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sat, 2008-06-21 at 21:29 +0200, Jules Colding wrote:
&lt;br&gt;&amp;gt;&amp;gt; The linc2/src/linc-protocols.c:get_netid() function produced nonsense
&lt;br&gt;&amp;gt;&amp;gt; values for ORBNetID=&amp;quot;ipaddr&amp;quot; on Mac OS X Leopard. Please see:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	IPv4/6 is your baby ;-) go for it.
&lt;br&gt;&lt;br&gt;Thanks :-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; OpenSolaris traditionally has
&lt;br&gt;&amp;gt; problems with changes here - but no doubt they can find those later
&lt;br&gt;&amp;gt; themselves.
&lt;br&gt;&lt;br&gt;Yes, I was worrying about Solaris myself. To bad that I don't have a &amp;nbsp;
&lt;br&gt;box to test on before making changes...
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18065097&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PATCH%3A-Fix-and-simplify-get_netid%28%29-tp18047980p18065097.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18065034</id>
	<title>Re: PATCH: Fix and simplify get_netid()</title>
	<published>2008-06-23T01:46:01Z</published>
	<updated>2008-06-23T01:46:01Z</updated>
	<author>
		<name>michael meeks</name>
	</author>
	<content type="html">Hi Jules,
&lt;br&gt;&lt;br&gt;On Sat, 2008-06-21 at 21:29 +0200, Jules Colding wrote:
&lt;br&gt;&amp;gt; The linc2/src/linc-protocols.c:get_netid() function produced nonsense &amp;nbsp;
&lt;br&gt;&amp;gt; values for ORBNetID=&amp;quot;ipaddr&amp;quot; on Mac OS X Leopard. Please see:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IPv4/6 is your baby ;-) go for it. OpenSolaris traditionally has
&lt;br&gt;problems with changes here - but no doubt they can find those later
&lt;br&gt;themselves.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Michael.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18065034&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.meeks@...&lt;/a&gt; &amp;nbsp;&amp;lt;&amp;gt;&amp;lt;, Pseudo Engineer, itinerant idiot
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18065034&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PATCH%3A-Fix-and-simplify-get_netid%28%29-tp18047980p18065034.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18064943</id>
	<title>Re: PATCH: Fix and simplify get_netid()</title>
	<published>2008-06-23T01:41:08Z</published>
	<updated>2008-06-23T01:41:08Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 21/06/2008, at 21.29, Jules Colding wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The linc2/src/linc-protocols.c:get_netid() function produced &amp;nbsp;
&lt;br&gt;&amp;gt; nonsense values for ORBNetID=&amp;quot;ipaddr&amp;quot; on Mac OS X Leopard. Please see:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://bugzilla.gnome.org/show_bug.cgi?id=539510&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugzilla.gnome.org/show_bug.cgi?id=539510&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The patch below fixes this and makes for a simpler get_netid() bu &amp;nbsp;
&lt;br&gt;&amp;gt; introducing a new helper function. The patch has been tested on &amp;nbsp;
&lt;br&gt;&amp;gt; Leopard and Ubuntu Gutsy. &amp;quot;make check&amp;quot; is also happy on both &amp;nbsp;
&lt;br&gt;&amp;gt; platforms. Please forgive me if the patch below is whitespace-messed- 
&lt;br&gt;&amp;gt; up. My current mailer isn't too happy about inserted text...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; May I commit? Comments?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Committed. Hopefully people will yell at me if something breaks...
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18064943&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PATCH%3A-Fix-and-simplify-get_netid%28%29-tp18047980p18064943.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18047980</id>
	<title>PATCH: Fix and simplify get_netid()</title>
	<published>2008-06-21T12:29:03Z</published>
	<updated>2008-06-21T12:29:03Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;The linc2/src/linc-protocols.c:get_netid() function produced nonsense &amp;nbsp;
&lt;br&gt;values for ORBNetID=&amp;quot;ipaddr&amp;quot; on Mac OS X Leopard. Please see:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://bugzilla.gnome.org/show_bug.cgi?id=539510&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugzilla.gnome.org/show_bug.cgi?id=539510&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The patch below fixes this and makes for a simpler get_netid() bu &amp;nbsp;
&lt;br&gt;introducing a new helper function. The patch has been tested on &amp;nbsp;
&lt;br&gt;Leopard and Ubuntu Gutsy. &amp;quot;make check&amp;quot; is also happy on both &amp;nbsp;
&lt;br&gt;platforms. Please forgive me if the patch below is whitespace-messed- 
&lt;br&gt;up. My current mailer isn't too happy about inserted text...
&lt;br&gt;&lt;br&gt;May I commit? Comments?
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Index: linc2/ChangeLog
&lt;br&gt;===================================================================
&lt;br&gt;--- linc2/ChangeLog	(revision 2073)
&lt;br&gt;+++ linc2/ChangeLog	(working copy)
&lt;br&gt;@@ -1,3 +1,13 @@
&lt;br&gt;+2008-06-21 &amp;nbsp;Jules Colding &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18047980&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;colding@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+
&lt;br&gt;+	* src/linc-protocols.c (get_netid): This function
&lt;br&gt;+	failed on Mac OS X for (ORBNetID == &amp;quot;ipaddr&amp;quot;). It is
&lt;br&gt;+	now fixed and simplified greatly by the use of the new
&lt;br&gt;+	function get_first_non_local_ipaddr().
&lt;br&gt;+	(get_first_non_local_ipaddr): &amp;nbsp;This function will
&lt;br&gt;+	correctly deduce the first non-loopback interface
&lt;br&gt;+	on the host.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; ============================== 2.14.13 ===========================
&lt;br&gt;&lt;br&gt;&amp;nbsp; 2008-05-25 &amp;nbsp;Tor Lillqvist &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18047980&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tml@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Index: linc2/src/linc-protocols.c
&lt;br&gt;===================================================================
&lt;br&gt;--- linc2/src/linc-protocols.c	(revision 2073)
&lt;br&gt;+++ linc2/src/linc-protocols.c	(working copy)
&lt;br&gt;@@ -145,7 +145,49 @@
&lt;br&gt;&amp;nbsp; #endif
&lt;br&gt;&amp;nbsp; #define DEFAULT_LINC2_IFNUM (32)
&lt;br&gt;&lt;br&gt;+#ifndef G_OS_WIN32
&lt;br&gt;&amp;nbsp; static char *
&lt;br&gt;+get_first_non_local_ipaddr(char *buf,
&lt;br&gt;+			 &amp;nbsp; size_t len)
&lt;br&gt;+{
&lt;br&gt;+	int sock;
&lt;br&gt;+	const char *retv;
&lt;br&gt;+	struct if_nameindex *ifname_idx_array;
&lt;br&gt;+	struct if_nameindex *ifname_idx;
&lt;br&gt;+	struct ifreq ifr;
&lt;br&gt;+	struct sockaddr_in sin;
&lt;br&gt;+
&lt;br&gt;+	*buf = '\0';
&lt;br&gt;+
&lt;br&gt;+	sock = socket(AF_INET, SOCK_DGRAM, 0);
&lt;br&gt;+	if (-1 == sock)
&lt;br&gt;+		return;
&lt;br&gt;+
&lt;br&gt;+	ifname_idx_array = if_nameindex();
&lt;br&gt;+	for (ifname_idx = ifname_idx_array; ifname_idx &amp;&amp; ifname_idx- 
&lt;br&gt;&amp;nbsp;&amp;gt;if_name &amp;&amp; ifname_idx-&amp;gt;if_name[0]; ifname_idx++) {
&lt;br&gt;+		strncpy(ifr.ifr_name, ifname_idx-&amp;gt;if_name, IFNAMSIZ);
&lt;br&gt;+		if (!ioctl(sock, SIOCGIFADDR, &amp;ifr)) {
&lt;br&gt;+			memcpy(&amp;sin, &amp;(ifr.ifr_addr), sizeof(struct sockaddr_in));
&lt;br&gt;+			retv = (const char*)inet_ntoa(sin.sin_addr);
&lt;br&gt;+			retv = strcmp(&amp;quot;127.0.0.1&amp;quot;, retv) ? retv : NULL;
&lt;br&gt;+			if (retv) {
&lt;br&gt;+				strncpy(buf, (const char*)inet_ntoa(sin.sin_addr), len);
&lt;br&gt;+				break;
&lt;br&gt;+			}
&lt;br&gt;+		}
&lt;br&gt;+	}
&lt;br&gt;+
&lt;br&gt;+	if (ifname_idx_array)
&lt;br&gt;+		if_freenameindex(ifname_idx_array);
&lt;br&gt;+
&lt;br&gt;+	if (-1 != sock)
&lt;br&gt;+		close(sock);
&lt;br&gt;+
&lt;br&gt;+	return buf;
&lt;br&gt;+}
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;+static char *
&lt;br&gt;&amp;nbsp; get_netid(LinkNetIdType which,
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp;char *buf,
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp;size_t len)
&lt;br&gt;@@ -161,58 +203,13 @@
&lt;br&gt;&amp;nbsp; 	if ((LINK_NET_ID_IS_IPADDR == which)
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp; &amp;nbsp;|| (LINK_NET_ID_IS_CUSTOM == which)) {
&lt;br&gt;&amp;nbsp; #ifndef G_OS_WIN32
&lt;br&gt;-		struct sockaddr_in *adr = NULL;
&lt;br&gt;-		struct ifreq *my_ifreqs = NULL;
&lt;br&gt;-		struct ifconf my_ifconf = { 0 };
&lt;br&gt;-		int sock = -1;
&lt;br&gt;-		int num = 0;
&lt;br&gt;-		int i = 0;
&lt;br&gt;+		if (fixed_host_net_id)
&lt;br&gt;+			strncpy(buf, fixed_host_net_id, len);
&lt;br&gt;+		else
&lt;br&gt;+			get_first_non_local_ipaddr(buf, len);
&lt;br&gt;+		if ('\0' == *buf)
&lt;br&gt;+			strncpy(buf, &amp;quot;127.0.0.1&amp;quot;, len);
&lt;br&gt;&lt;br&gt;-		sock = socket(AF_INET,SOCK_DGRAM,0);
&lt;br&gt;-		if (-1 == sock)
&lt;br&gt;-			goto out;
&lt;br&gt;-#ifdef SIOCGIFNUM
&lt;br&gt;-		i = ioctl(sock, SIOCGIFNUM, &amp;num);
&lt;br&gt;-		if ((0 &amp;gt; i) || !num) {
&lt;br&gt;-			close(sock);
&lt;br&gt;-			goto out;
&lt;br&gt;-		}
&lt;br&gt;-#else
&lt;br&gt;-		num = DEFAULT_LINC2_IFNUM;
&lt;br&gt;-#endif
&lt;br&gt;-		my_ifconf.ifc_len = sizeof(struct ifreq) * num;
&lt;br&gt;-		my_ifconf.ifc_req = (struct ifreq*)malloc(my_ifconf.ifc_len);
&lt;br&gt;-		if (!my_ifconf.ifc_req) {
&lt;br&gt;-			close(sock);
&lt;br&gt;-			goto out;
&lt;br&gt;-		}
&lt;br&gt;-		if (ioctl(sock,SIOCGIFCONF,&amp;my_ifconf) &amp;lt; 0) {
&lt;br&gt;-			close(sock);
&lt;br&gt;-			free(my_ifconf.ifc_req);
&lt;br&gt;-			goto out;
&lt;br&gt;-		}
&lt;br&gt;-		close(sock);
&lt;br&gt;-
&lt;br&gt;-		my_ifreqs = my_ifconf.ifc_req;
&lt;br&gt;- 		for (i = 0; i &amp;lt; num; i++) {
&lt;br&gt;-			adr = (struct sockaddr_in *)&amp;my_ifreqs[i].ifr_ifru.ifru_addr;
&lt;br&gt;-			if (fixed_host_net_id) {
&lt;br&gt;-				if (!strcmp(fixed_host_net_id, inet_ntoa(adr-&amp;gt;sin_addr)))
&lt;br&gt;-					break;
&lt;br&gt;-			} else {
&lt;br&gt;-				if (strcmp(&amp;quot;127.0.0.1&amp;quot;, inet_ntoa(adr-&amp;gt;sin_addr)))
&lt;br&gt;-					break;
&lt;br&gt;-			}
&lt;br&gt;-			if (!strcmp(&amp;quot;0.0.0.0&amp;quot;, inet_ntoa(adr-&amp;gt;sin_addr))) {
&lt;br&gt;-				if (i)
&lt;br&gt;-					adr = (struct sockaddr_in *)&amp;my_ifreqs[--i].ifr_ifru.ifru_addr;
&lt;br&gt;-				break;
&lt;br&gt;-			}
&lt;br&gt;-		}
&lt;br&gt;-		strncpy(buf, (const char*)inet_ntoa(adr-&amp;gt;sin_addr), len);
&lt;br&gt;-		free(my_ifconf.ifc_req);
&lt;br&gt;-
&lt;br&gt;-		/* will be 127.0.0.1 anyway, if no other address is defined... */
&lt;br&gt;&amp;nbsp; 		return buf;
&lt;br&gt;&amp;nbsp; #else
&lt;br&gt;&amp;nbsp; 		SOCKET sock;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18047980&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PATCH%3A-Fix-and-simplify-get_netid%28%29-tp18047980p18047980.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17359886</id>
	<title>Lorica - A CORBA firewall conduit</title>
	<published>2008-05-21T03:00:05Z</published>
	<updated>2008-05-21T03:00:05Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I just want briefly to mention that Lorica 1.0 is released. Lorica &amp;nbsp;
&lt;br&gt;solves the CORBA firewall problem by tunneling all CORBA connections &amp;nbsp;
&lt;br&gt;through one specific network port. It is GPL'ed and available from &amp;nbsp;
&lt;br&gt;&amp;lt;lorica.42tools.com&amp;gt;. Binaries exists for Fedora 8, Gentoo, RHEL4u4, &amp;nbsp;
&lt;br&gt;Mac OS X, Ubuntu Gutsy and Windows.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17359886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Lorica---A-CORBA-firewall-conduit-tp17359886p17359886.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17317193</id>
	<title>RE: Making ORBit work with MS VS compilers</title>
	<published>2008-05-16T04:26:29Z</published>
	<updated>2008-05-16T04:26:29Z</updated>
	<author>
		<name>Markus Duft</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Attached is our patch for ORBit2-2.14.2, which also fixes the idl
&lt;br&gt;&amp;gt; &amp;gt; compiler to create code that can be built into a Windows dll.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry for taking so long to get back to this issue... I haven't really
&lt;br&gt;&amp;gt; done anything about this in the meantime. I had a look at this patch
&lt;br&gt;&amp;gt; now.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The patch changes this in Makefile.shared:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -	$(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $&amp;lt;
&lt;br&gt;&amp;gt; +	if test `uname` = &amp;quot;Interix&amp;quot; ; then \
&lt;br&gt;&amp;gt; +		$(IDL_COMPILER) $(IDL_FLAGS_W32) --deps
&lt;/div&gt;$(*D)/.deps/$(*F).idl.P
&lt;br&gt;&amp;gt; `unixpath2win $&amp;lt;`; \
&lt;br&gt;&amp;gt; +	else \
&lt;br&gt;&amp;gt; +		$(IDL_COMPILER) $(IDL_FLAGS) --deps
&lt;br&gt;$(*D)/.deps/$(*F).idl.P $&amp;lt;; \
&lt;br&gt;&amp;gt; +	fi
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Surely this approach can't be feasible in the long run? If the
&lt;br&gt;&amp;gt; eventual goal is for instance to make those modules in the GNOME stack
&lt;br&gt;&amp;gt; that currently can be built for Win32 with mingw on msys also
&lt;br&gt;&amp;gt; buildable with parity on Interix, aren't there hundreds of Makefiles
&lt;br&gt;&amp;gt; and other places where similar stuff would need to be changed then?
&lt;br&gt;&amp;gt; Ditto for the other parts in the diff where unixpath2win is involved.
&lt;br&gt;&lt;br&gt;First of all Hi :)
&lt;br&gt;&lt;br&gt;Parity got better in the meantime, and any binary that is built with
&lt;br&gt;parity understands all kinds of paths, also interix ones. So the
&lt;br&gt;unixpath2win can be omitted if $IDL_COMPILER points to a binary that was
&lt;br&gt;built with parity (which should be the case anyway)
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to use &amp;quot;mounts&amp;quot; like MSYS in Interix? I.e., is it
&lt;br&gt;&amp;gt; possible to make an Interix &amp;quot;Unix&amp;quot; path like /foo/bar refer to the
&lt;br&gt;&amp;gt; same actual location as the Win32 path X:\foo\bar? (Where X: is the
&lt;br&gt;&amp;gt; drive you are doing the work on, hopefully you don't have to use
&lt;br&gt;&amp;gt; several drive letters) Then one could simply require that such mounts
&lt;br&gt;&amp;gt; are used and no unixpath2win invocations would be needed to be added
&lt;br&gt;&amp;gt; all over the place.
&lt;br&gt;&lt;br&gt;On interix /dev/fs/C maps to C:. there is no other means of mounting
&lt;br&gt;anything.... but the whole last paragraph is obsolete because as I said
&lt;br&gt;already, parity built binaries can handle both styles of paths, even if
&lt;br&gt;you mix them (only exception: in a path list (separated by : on interix,
&lt;br&gt;and ; on windows) all paths must be the same style (either windows or
&lt;br&gt;unix) or otherwise the path conversion routines will get confused...)
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think at least currently Interix is not really that popular among
&lt;br&gt;&amp;gt; people porting software from Unix to Windows. I don't feel it would be
&lt;br&gt;&amp;gt; worth it at this point at least to apply your patch to the sources,
&lt;br&gt;&amp;gt; sorry.
&lt;br&gt;&lt;br&gt;Hmm... yeah, but interix _will_ get popular I think/hope/believe, since
&lt;br&gt;I made a port of Gentoo Prefix to interix, which enables even the use of
&lt;br&gt;gnome-terminal. From there onwards I'm just working on being able to
&lt;br&gt;build native windows binaries too, which would make things really cool
&lt;br&gt;:)
&lt;br&gt;&lt;br&gt;Cheers, Markus
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17317193&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Making-ORBit-work-with-MS-VS-compilers-tp16064593p17317193.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17270667</id>
	<title>Re: Making ORBit work with MS VS compilers</title>
	<published>2008-05-16T02:18:29Z</published>
	<updated>2008-05-16T02:18:29Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">&amp;gt; Attached is our patch for ORBit2-2.14.2, which also fixes the idl
&lt;br&gt;&amp;gt; compiler to create code that can be built into a Windows dll.
&lt;br&gt;&lt;br&gt;Sorry for taking so long to get back to this issue... I haven't really
&lt;br&gt;done anything about this in the meantime. I had a look at this patch
&lt;br&gt;now.
&lt;br&gt;&lt;br&gt;The patch changes this in Makefile.shared:
&lt;br&gt;&lt;br&gt;-	$(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $&amp;lt;
&lt;br&gt;+	if test `uname` = &amp;quot;Interix&amp;quot; ; then \
&lt;br&gt;+		$(IDL_COMPILER) $(IDL_FLAGS_W32) --deps $(*D)/.deps/$(*F).idl.P
&lt;br&gt;`unixpath2win $&amp;lt;`; \
&lt;br&gt;+	else \
&lt;br&gt;+		$(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $&amp;lt;; \
&lt;br&gt;+	fi
&lt;br&gt;&lt;br&gt;Surely this approach can't be feasible in the long run? If the
&lt;br&gt;eventual goal is for instance to make those modules in the GNOME stack
&lt;br&gt;that currently can be built for Win32 with mingw on msys also
&lt;br&gt;buildable with parity on Interix, aren't there hundreds of Makefiles
&lt;br&gt;and other places where similar stuff would need to be changed then?
&lt;br&gt;Ditto for the other parts in the diff where unixpath2win is involved.
&lt;br&gt;&lt;br&gt;Is it possible to use &amp;quot;mounts&amp;quot; like MSYS in Interix? I.e., is it
&lt;br&gt;possible to make an Interix &amp;quot;Unix&amp;quot; path like /foo/bar refer to the
&lt;br&gt;same actual location as the Win32 path X:\foo\bar? (Where X: is the
&lt;br&gt;drive you are doing the work on, hopefully you don't have to use
&lt;br&gt;several drive letters) Then one could simply require that such mounts
&lt;br&gt;are used and no unixpath2win invocations would be needed to be added
&lt;br&gt;all over the place.
&lt;br&gt;&lt;br&gt;I think at least currently Interix is not really that popular among
&lt;br&gt;people porting software from Unix to Windows. I don't feel it would be
&lt;br&gt;worth it at this point at least to apply your patch to the sources,
&lt;br&gt;sorry.
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17270667&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Making-ORBit-work-with-MS-VS-compilers-tp16064593p17270667.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17150318</id>
	<title>Re: Problem with the timeout code</title>
	<published>2008-05-09T08:17:50Z</published>
	<updated>2008-05-09T08:17:50Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 09/05/2008, at 16.37, Michael Meeks wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, 2008-05-09 at 11:27 +0200, Jules Colding wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - Make sure giop_thread_free() is not called on threads associated
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; with connections for which timeouts are outstanding. Is this &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; feasible?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It sounds kinda like a clean and obvious solution, but I don't &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; understand the code that well...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Jules, do you have any ideas? Have you ever seen this happen?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've never seen this happen before. I would agree that your proposal
&lt;br&gt;&amp;gt;&amp;gt; number 3 is the way to go, but I can not clearly see how to implement
&lt;br&gt;&amp;gt;&amp;gt; it. Michael?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	Really, it's not that clear to me how we are doing a thread_free and
&lt;br&gt;&amp;gt; the continuing to wait for a timeout in that thread ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	Are we correctly de-registering the timeout after we finish waiting ?
&lt;/div&gt;&lt;br&gt;I certainly think we are. I may have made an error but I was careful &amp;nbsp;
&lt;br&gt;to ref/unref whenever appropriate.
&lt;br&gt;&lt;br&gt;BR,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; or does the timeout get triggered in the IO thread or something ? :-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 		Michael.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17150318&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.meeks@...&lt;/a&gt; &amp;nbsp;&amp;lt;&amp;gt;&amp;lt;, Pseudo Engineer, itinerant idiot
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17150318&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-with-the-timeout-code-tp17129861p17150318.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17149482</id>
	<title>Re: Problem with the timeout code</title>
	<published>2008-05-09T07:37:44Z</published>
	<updated>2008-05-09T07:37:44Z</updated>
	<author>
		<name>michael meeks</name>
	</author>
	<content type="html">&lt;br&gt;On Fri, 2008-05-09 at 11:27 +0200, Jules Colding wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; - Make sure giop_thread_free() is not called on threads associated
&lt;br&gt;&amp;gt; &amp;gt; with connections for which timeouts are outstanding. Is this feasible?
&lt;br&gt;&amp;gt; &amp;gt; It sounds kinda like a clean and obvious solution, but I don't really
&lt;br&gt;&amp;gt; &amp;gt; understand the code that well...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Jules, do you have any ideas? Have you ever seen this happen?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've never seen this happen before. I would agree that your proposal &amp;nbsp;
&lt;br&gt;&amp;gt; number 3 is the way to go, but I can not clearly see how to implement &amp;nbsp;
&lt;br&gt;&amp;gt; it. Michael?
&lt;/div&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Really, it's not that clear to me how we are doing a thread_free and
&lt;br&gt;the continuing to wait for a timeout in that thread ;-)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Are we correctly de-registering the timeout after we finish waiting ?
&lt;br&gt;or does the timeout get triggered in the IO thread or something ? :-)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Michael.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17149482&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.meeks@...&lt;/a&gt; &amp;nbsp;&amp;lt;&amp;gt;&amp;lt;, Pseudo Engineer, itinerant idiot
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17149482&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-with-the-timeout-code-tp17129861p17149482.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17144434</id>
	<title>Re: Problem with the timeout code</title>
	<published>2008-05-09T02:27:21Z</published>
	<updated>2008-05-09T02:27:21Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">Hi Tor,
&lt;br&gt;&lt;br&gt;On 08/05/2008, at 17.15, Tor Lillqvist wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have run across a repeatable crash in a program that uses ORBit2 on
&lt;br&gt;&amp;gt; Windows. The crash is caused by code for the relatively new timeout
&lt;br&gt;&amp;gt; functionality added by Jules Colding. For some reason I see this crash
&lt;br&gt;&amp;gt; only in this one specific program (that I just recently started
&lt;br&gt;&amp;gt; testing on Windows), not in other programs that also use ORBit2
&lt;br&gt;&amp;gt; heavily.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In a nutshell, the problem is that giop_thread_free() frees a
&lt;br&gt;&amp;gt; GIOPThread while there still is an outstanding timeout added with
&lt;br&gt;&amp;gt; giop_timeout_add() for a connection whose thread is that thread. This
&lt;br&gt;&amp;gt; leads to heap corruption (references to freed memory).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I added some debugging printouts to the linc2 and GIOP code. Here is
&lt;br&gt;&amp;gt; an annotated dump of the output:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First just some introductory logging. As you see the debugging output
&lt;br&gt;&amp;gt; I added prints GIOPConnection (== a LinkConnection subclass) struct
&lt;br&gt;&amp;gt; pointers, reference counts of it, and the tdata (GIOPThread*) pointer
&lt;br&gt;&amp;gt; of the LinkConnection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB320 ref_count=1 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_init: cnx=062FB370
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB370 ref_count=1 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref: cnx=062FB370 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref: cnx=062FB370 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here giop_timeout_add() is called for a GIOPConnection:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; giop_timeout_add:1432: lcnx=062FB370 tdata=06334710 tdata- 
&lt;br&gt;&amp;gt; &amp;gt;lock=06335A88
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB370 ref_count=4 tdata=06334710
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now comes the interesting parts. giop_thread_free() gets called for
&lt;br&gt;&amp;gt; the tdata of the GIOPConnection that was passed to giop_timeout_add()
&lt;br&gt;&amp;gt; above.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; giop_thread_free:343: tdata=06334710 tdata-&amp;gt;lock=06335A88
&lt;br&gt;&amp;gt; giop_thread_free:350: tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;&amp;gt; giop_thread_free:363: FREEING tdata=06334710
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Other stuff...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB320 ref_count=1 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;&amp;gt; link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;&amp;gt; giop_timeout_add:1432: lcnx=062FB320 tdata=06335910 tdata- 
&lt;br&gt;&amp;gt; &amp;gt;lock=06335A88
&lt;br&gt;&amp;gt; link_connection_ref_T: cnx=062FB320 ref_count=3 tdata=06335910
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=4 tdata=06335910
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=06335910
&lt;br&gt;&amp;gt; giop_thread_free:343: tdata=06335910 tdata-&amp;gt;lock=06335A88
&lt;br&gt;&amp;gt; giop_thread_free:350: tdata=06335910 tdata-&amp;gt;lock=00000000
&lt;br&gt;&amp;gt; giop_thread_free:363: FREEING tdata=06335910
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now then the timeout fires for connection 062FB370. The tdata pointer
&lt;br&gt;&amp;gt; that gets passed to giop_timeout() is the one that was freed in the
&lt;br&gt;&amp;gt; first giop_thread_free() above. So giop_timeout() is using freed
&lt;br&gt;&amp;gt; memory here. This obviously causes problems sooner or later. (Without
&lt;br&gt;&amp;gt; changes to the code, the memory happens to still be intact, and the
&lt;br&gt;&amp;gt; crash comes from the tdata-&amp;gt;lock pointer still being NULL after
&lt;br&gt;&amp;gt; giop_thread_free() set it so.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; giop_timeout:1373: cnx=062FB370 tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;&amp;gt; link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;&amp;gt; giop_timeout:1394: cnx=062FB370 tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And then *crash* when g_mutex_lock() is called on the NULL pointer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How to solve this? I can think of some alternative approaches:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Keep a &amp;quot;back&amp;quot; pointer to the LinkConnection in the GIOPThread
&lt;br&gt;&amp;gt; struct. When setting up a timeout for the connection, initialise this
&lt;br&gt;&amp;gt; pointer. When freeing the thread before the timeout has expired, set
&lt;br&gt;&amp;gt; the tdata pointer of the corresponding connection to NULL. Michael
&lt;br&gt;&amp;gt; Meeks says this is ugly as it adds coupling between relatively
&lt;br&gt;&amp;gt; unconnected concepts. And can we be sure that each thread has just one
&lt;br&gt;&amp;gt; connection, no idea...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Make sure the timeout is always zero for local connections? The
&lt;br&gt;&amp;gt; rationale for the timeout code in Jules's ChangeLog entry from
&lt;br&gt;&amp;gt; 2006-12-05 talks about timeouts being necessary for remote servers
&lt;br&gt;&amp;gt; only. In my case, the connection is a local one (using TCP, though, no
&lt;br&gt;&amp;gt; Unix domain sockers on Windows obviously). This would probably solve
&lt;br&gt;&amp;gt; the problem I see. But can we be sure that this problematic scenario
&lt;br&gt;&amp;gt; can never happen for remote connections?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Make sure giop_thread_free() is not called on threads associated
&lt;br&gt;&amp;gt; with connections for which timeouts are outstanding. Is this feasible?
&lt;br&gt;&amp;gt; It sounds kinda like a clean and obvious solution, but I don't really
&lt;br&gt;&amp;gt; understand the code that well...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jules, do you have any ideas? Have you ever seen this happen?
&lt;/div&gt;&lt;br&gt;I've never seen this happen before. I would agree that your proposal &amp;nbsp;
&lt;br&gt;number 3 is the way to go, but I can not clearly see how to implement &amp;nbsp;
&lt;br&gt;it. Michael?
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17144434&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-with-the-timeout-code-tp17129861p17144434.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17129861</id>
	<title>Problem with the timeout code</title>
	<published>2008-05-08T08:15:43Z</published>
	<updated>2008-05-08T08:15:43Z</updated>
	<author>
		<name>Tor Lillqvist</name>
	</author>
	<content type="html">I have run across a repeatable crash in a program that uses ORBit2 on
&lt;br&gt;Windows. The crash is caused by code for the relatively new timeout
&lt;br&gt;functionality added by Jules Colding. For some reason I see this crash
&lt;br&gt;only in this one specific program (that I just recently started
&lt;br&gt;testing on Windows), not in other programs that also use ORBit2
&lt;br&gt;heavily.
&lt;br&gt;&lt;br&gt;In a nutshell, the problem is that giop_thread_free() frees a
&lt;br&gt;GIOPThread while there still is an outstanding timeout added with
&lt;br&gt;giop_timeout_add() for a connection whose thread is that thread. This
&lt;br&gt;leads to heap corruption (references to freed memory).
&lt;br&gt;&lt;br&gt;I added some debugging printouts to the linc2 and GIOP code. Here is
&lt;br&gt;an annotated dump of the output:
&lt;br&gt;&lt;br&gt;First just some introductory logging. As you see the debugging output
&lt;br&gt;I added prints GIOPConnection (== a LinkConnection subclass) struct
&lt;br&gt;pointers, reference counts of it, and the tdata (GIOPThread*) pointer
&lt;br&gt;of the LinkConnection.
&lt;br&gt;&lt;br&gt;link_connection_ref_T: cnx=062FB320 ref_count=1 tdata=00000000
&lt;br&gt;link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;link_connection_ref_T: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;link_connection_init: cnx=062FB370
&lt;br&gt;link_connection_ref_T: cnx=062FB370 ref_count=1 tdata=00000000
&lt;br&gt;link_connection_ref: cnx=062FB370 ref_count=2 tdata=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=00000000
&lt;br&gt;link_connection_ref: cnx=062FB370 ref_count=2 tdata=00000000
&lt;br&gt;&lt;br&gt;Here giop_timeout_add() is called for a GIOPConnection:
&lt;br&gt;&lt;br&gt;giop_timeout_add:1432: lcnx=062FB370 tdata=06334710 tdata-&amp;gt;lock=06335A88
&lt;br&gt;&lt;br&gt;link_connection_ref_T: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;link_connection_unref_unlock: cnx=062FB370 ref_count=4 tdata=06334710
&lt;br&gt;link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;&lt;br&gt;Now comes the interesting parts. giop_thread_free() gets called for
&lt;br&gt;the tdata of the GIOPConnection that was passed to giop_timeout_add()
&lt;br&gt;above.
&lt;br&gt;&lt;br&gt;giop_thread_free:343: tdata=06334710 tdata-&amp;gt;lock=06335A88
&lt;br&gt;giop_thread_free:350: tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;giop_thread_free:363: FREEING tdata=06334710
&lt;br&gt;&lt;br&gt;Other stuff...
&lt;br&gt;&lt;br&gt;link_connection_ref_T: cnx=062FB320 ref_count=1 tdata=00000000
&lt;br&gt;link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=00000000
&lt;br&gt;link_connection_ref: cnx=062FB320 ref_count=2 tdata=00000000
&lt;br&gt;giop_timeout_add:1432: lcnx=062FB320 tdata=06335910 tdata-&amp;gt;lock=06335A88
&lt;br&gt;link_connection_ref_T: cnx=062FB320 ref_count=3 tdata=06335910
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=4 tdata=06335910
&lt;br&gt;link_connection_unref_unlock: cnx=062FB320 ref_count=3 tdata=06335910
&lt;br&gt;giop_thread_free:343: tdata=06335910 tdata-&amp;gt;lock=06335A88
&lt;br&gt;giop_thread_free:350: tdata=06335910 tdata-&amp;gt;lock=00000000
&lt;br&gt;giop_thread_free:363: FREEING tdata=06335910
&lt;br&gt;&lt;br&gt;Now then the timeout fires for connection 062FB370. The tdata pointer
&lt;br&gt;that gets passed to giop_timeout() is the one that was freed in the
&lt;br&gt;first giop_thread_free() above. So giop_timeout() is using freed
&lt;br&gt;memory here. This obviously causes problems sooner or later. (Without
&lt;br&gt;changes to the code, the memory happens to still be intact, and the
&lt;br&gt;crash comes from the tdata-&amp;gt;lock pointer still being NULL after
&lt;br&gt;giop_thread_free() set it so.)
&lt;br&gt;&lt;br&gt;giop_timeout:1373: cnx=062FB370 tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;link_connection_unref_unlock: cnx=062FB370 ref_count=3 tdata=06334710
&lt;br&gt;giop_timeout:1394: cnx=062FB370 tdata=06334710 tdata-&amp;gt;lock=00000000
&lt;br&gt;&lt;br&gt;And then *crash* when g_mutex_lock() is called on the NULL pointer.
&lt;br&gt;&lt;br&gt;How to solve this? I can think of some alternative approaches:
&lt;br&gt;&lt;br&gt;- Keep a &amp;quot;back&amp;quot; pointer to the LinkConnection in the GIOPThread
&lt;br&gt;struct. When setting up a timeout for the connection, initialise this
&lt;br&gt;pointer. When freeing the thread before the timeout has expired, set
&lt;br&gt;the tdata pointer of the corresponding connection to NULL. Michael
&lt;br&gt;Meeks says this is ugly as it adds coupling between relatively
&lt;br&gt;unconnected concepts. And can we be sure that each thread has just one
&lt;br&gt;connection, no idea...
&lt;br&gt;&lt;br&gt;- Make sure the timeout is always zero for local connections? The
&lt;br&gt;rationale for the timeout code in Jules's ChangeLog entry from
&lt;br&gt;2006-12-05 talks about timeouts being necessary for remote servers
&lt;br&gt;only. In my case, the connection is a local one (using TCP, though, no
&lt;br&gt;Unix domain sockers on Windows obviously). This would probably solve
&lt;br&gt;the problem I see. But can we be sure that this problematic scenario
&lt;br&gt;can never happen for remote connections?
&lt;br&gt;&lt;br&gt;- Make sure giop_thread_free() is not called on threads associated
&lt;br&gt;with connections for which timeouts are outstanding. Is this feasible?
&lt;br&gt;It sounds kinda like a clean and obvious solution, but I don't really
&lt;br&gt;understand the code that well...
&lt;br&gt;&lt;br&gt;Jules, do you have any ideas? Have you ever seen this happen?
&lt;br&gt;&lt;br&gt;(If somebody wants to run tests with the same debugging output, I can
&lt;br&gt;mail the svn diff.)
&lt;br&gt;&lt;br&gt;--tml
&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17129861&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-with-the-timeout-code-tp17129861p17129861.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-16901111</id>
	<title>Re: SEGV in current svn trunk</title>
	<published>2008-04-25T09:41:23Z</published>
	<updated>2008-04-25T09:41:23Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 25/04/2008, at 10.02, Jules Colding wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 25/04/2008, at 09.21, Tor Lillqvist wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm getting segmentation faults repeatedly on Ubuntu Gutsy with my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; small ORBit2 (svn trunk) based daemon.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When did you start getting the segfaults? Was it after my commit to
&lt;br&gt;&amp;gt;&amp;gt; linc2/src/linc.c on 2008-04-23? If so that change will have to be
&lt;br&gt;&amp;gt;&amp;gt; reverted. Or correspondingly, if it was after some other recent
&lt;br&gt;&amp;gt;&amp;gt; change, you need to check if reverting that change helps. There &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; hasn't
&lt;br&gt;&amp;gt;&amp;gt; really been much done to ORBit2 lately, so if your code used to work
&lt;br&gt;&amp;gt;&amp;gt; fine earlier, finding what broke it shouldn't be hard.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I saw the segfault for the first time yesterday. Fortunately I hope it
&lt;br&gt;&amp;gt; is due to a mix-up of libraries from 2.14.9 and 2.14.&amp;lt;svn trunk&amp;gt;. This
&lt;br&gt;&amp;gt; morning I discovered that I had old libraries lying around which I've
&lt;br&gt;&amp;gt; now cleaned up. I strongly suspect this to be the real reason as your
&lt;br&gt;&amp;gt; fixes looks really innocent. I'll make some further testing to confirm
&lt;br&gt;&amp;gt; it and will let you know later today.
&lt;/div&gt;&lt;br&gt;No segfaults yet. I think we can safely conclude that the library mess &amp;nbsp;
&lt;br&gt;was the culprit.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=16901111&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/SEGV-in-current-svn-trunk-tp16883249p16901111.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-16892599</id>
	<title>Re: SEGV in current svn trunk</title>
	<published>2008-04-25T01:02:15Z</published>
	<updated>2008-04-25T01:02:15Z</updated>
	<author>
		<name>Jules Colding</name>
	</author>
	<content type="html">&lt;br&gt;On 25/04/2008, at 09.21, Tor Lillqvist wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; I'm getting segmentation faults repeatedly on Ubuntu Gutsy with my
&lt;br&gt;&amp;gt;&amp;gt; small ORBit2 (svn trunk) based daemon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When did you start getting the segfaults? Was it after my commit to
&lt;br&gt;&amp;gt; linc2/src/linc.c on 2008-04-23? If so that change will have to be
&lt;br&gt;&amp;gt; reverted. Or correspondingly, if it was after some other recent
&lt;br&gt;&amp;gt; change, you need to check if reverting that change helps. There hasn't
&lt;br&gt;&amp;gt; really been much done to ORBit2 lately, so if your code used to work
&lt;br&gt;&amp;gt; fine earlier, finding what broke it shouldn't be hard.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I saw the segfault for the first time yesterday. Fortunately I hope it &amp;nbsp;
&lt;br&gt;is due to a mix-up of libraries from 2.14.9 and 2.14.&amp;lt;svn trunk&amp;gt;. This &amp;nbsp;
&lt;br&gt;morning I discovered that I had old libraries lying around which I've &amp;nbsp;
&lt;br&gt;now cleaned up. I strongly suspect this to be the real reason as your &amp;nbsp;
&lt;br&gt;fixes looks really innocent. I'll make some further testing to confirm &amp;nbsp;
&lt;br&gt;it and will let you know later today.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;jules
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;orbit-list mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=16892599&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;orbit-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/orbit-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/orbit-list&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Gnome---ORBit---General-f1387.html&quot; embed=&quot;fixTarget[1387]&quot; target=&quot;_top&quot; &gt;Gnome - ORBit - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/SEGV-in-current-svn-trunk-tp16883249p16892599.html" />
</entry>

</feed>
