[omniORB] Problems with SGI and OmniORB-4.0.0
Mark Underwood
mlu@cfdrc.com
Wed Jan 15 16:18:02 2003
--------------D363E0997C4E0F48DAD9B34B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
After following the suggestion below, the following code is only executed on
the SGI when the executable is linked with omniORB4.so. If linking to
omniORB4.a, it is not executed.
class CS_8859_1_init {
public:
CS_8859_1_init() {
omniCodeSet::registerNCS_C(&_NCS_C_8859_1);
omniCodeSet::registerTCS_C(&_TCS_C_8859_1_10);
omniCodeSet::registerTCS_C(&_TCS_C_8859_1_11);
omniCodeSet::registerTCS_C(&_TCS_C_8859_1_12);
}
};
static CS_8859_1_init _CS_8859_1_init_;
Looking at the omniORB4.a it contains the above symbol but not the
statically linked executable. Also, the OMNI_FORCE_LINK in codeSets.cc
never seems to happen since the SGI also does not bring in any symbols from
codeSets.o.
Thanks,
Mark
Duncan Grisby wrote:
> On Tuesday 7 January, Mark Underwood wrote:
>
> > The only change I had to make was to define OMNI_REQUIRES_FQ_CTOR after
> > the configure completed (this already seems to be fixed in cvs
> > development version).
>
> Yes, that is already fixed in CVS.
>
> > However, both the 4.0.0 and development versions dump core (SIGSEGV)
> > when calling CORBA::ORB_init.
>
> [...]
> > orbParameters::nativeCharCodeSet and orbParameters::nativeWCharCodeSet
> > end up as NULL which causes problems either with setting the
> > anyCharCodeSet/anyWCharCodeSet or in initialise_my_code_set().
>
> That looks like the static initialisers for the code sets are not
> running. I don't know why not. Try putting some debugging output in
> the static initialisers (in cs-8859-1.cc for example), to see whether
> they are running or not.
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby --
> -- duncan@grisby.org --
> -- http://www.grisby.org --
--
==================================================================
| Mark L. Underwood, Ph. D. |
| Senior Engineer/MDICE Development Software Technology Branch |
| |
| Email : mlu@cfdrc.com |
| CFD Research Corporation www : http://www.cfdrc.com |
| Cummings Research Park Phone : (256) 726-4872 |
| 215 Wynn Drive Main Desk: (256) 726-4800 |
| Huntsville, AL 35805 Fax : (256) 726-4806 |
==================================================================
--------------D363E0997C4E0F48DAD9B34B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
After following the suggestion below, the following code is only executed
on the SGI when the executable is linked with omniORB4.so. If linking
to omniORB4.a, it is not executed.
<p>class CS_8859_1_init {
<br>public:
<br> CS_8859_1_init() {
<br> omniCodeSet::registerNCS_C(&_NCS_C_8859_1);
<br> omniCodeSet::registerTCS_C(&_TCS_C_8859_1_10);
<br> omniCodeSet::registerTCS_C(&_TCS_C_8859_1_11);
<br> omniCodeSet::registerTCS_C(&_TCS_C_8859_1_12);
<br> }
<br>};
<br>static CS_8859_1_init _CS_8859_1_init_;
<p>Looking at the omniORB4.a it contains the above symbol but not the statically
linked executable. Also, the OMNI_FORCE_LINK in codeSets.cc never
seems to happen since the SGI also does not bring in any symbols from
codeSets.o.
<p>Thanks,<br>
Mark
<br>
<br>
<p>Duncan Grisby wrote:
<blockquote TYPE=CITE>On Tuesday 7 January, Mark Underwood wrote:
<p>> The only change I had to make was to define OMNI_REQUIRES_FQ_CTOR
after
<br>> the configure completed (this already seems to be fixed in cvs
<br>> development version).
<p>Yes, that is already fixed in CVS.
<p>> However, both the 4.0.0 and development versions dump core (SIGSEGV)
<br>> when calling CORBA::ORB_init.
<p>[...]
<br>> orbParameters::nativeCharCodeSet and orbParameters::nativeWCharCodeSet
<br>> end up as NULL which causes problems either with setting the
<br>> anyCharCodeSet/anyWCharCodeSet or in initialise_my_code_set().
<p>That looks like the static initialisers for the code sets are not
<br>running. I don't know why not. Try putting some debugging output in
<br>the static initialisers (in cs-8859-1.cc for example), to see whether
<br>they are running or not.
<p>Cheers,
<p>Duncan.
<p>--
<br> -- Duncan Grisby
--
<br> -- duncan@grisby.org --
<br> -- <a href="http://www.grisby.org">http://www.grisby.org</a>
--</blockquote>
<pre>--
==================================================================
| Mark L. Underwood, Ph. D. |
| Senior Engineer/MDICE Development Software Technology Branch |
| |
| Email : mlu@cfdrc.com |
| CFD Research Corporation www : <A HREF="http://www.cfdrc.com">http://www.cfdrc.com</A> |
| Cummings Research Park Phone : (256) 726-4872 |
| 215 Wynn Drive Main Desk: (256) 726-4800 |
| Huntsville, AL 35805 Fax : (256) 726-4806 |
==================================================================</pre>
</html>
--------------D363E0997C4E0F48DAD9B34B--