[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.&nbsp; If linking
to omniORB4.a, it is not executed.
<p>class CS_8859_1_init {
<br>public:
<br>&nbsp; CS_8859_1_init() {
<br>&nbsp;&nbsp;&nbsp; omniCodeSet::registerNCS_C(&amp;_NCS_C_8859_1);
<br>&nbsp;&nbsp;&nbsp; omniCodeSet::registerTCS_C(&amp;_TCS_C_8859_1_10);
<br>&nbsp;&nbsp;&nbsp; omniCodeSet::registerTCS_C(&amp;_TCS_C_8859_1_11);
<br>&nbsp;&nbsp;&nbsp; omniCodeSet::registerTCS_C(&amp;_TCS_C_8859_1_12);
<br>&nbsp; }
<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.&nbsp; Also, the OMNI_FORCE_LINK in codeSets.cc never
seems to happen since the SGI&nbsp;also does not bring in any symbols from
codeSets.o.
<p>Thanks,<br>
Mark
<br>&nbsp;
<br>&nbsp;
<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>&nbsp;-- Duncan Grisby&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--
<br>&nbsp; -- duncan@grisby.org&nbsp;&nbsp;&nbsp;&nbsp; --
<br>&nbsp;&nbsp; -- <a href="http://www.grisby.org">http://www.grisby.org</a>
--</blockquote>

<pre>--&nbsp;
==================================================================
| Mark L. Underwood, Ph. D.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| Senior Engineer/MDICE Development&nbsp;&nbsp; Software Technology Branch |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Email&nbsp;&nbsp;&nbsp; : mlu@cfdrc.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| CFD Research Corporation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <A HREF="http://www.cfdrc.com">http://www.cfdrc.com</A> |
| Cummings Research Park&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phone&nbsp;&nbsp;&nbsp; : (256) 726-4872&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| 215 Wynn Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Main Desk: (256) 726-4800&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| Huntsville, AL 35805&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : (256) 726-4806&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
==================================================================</pre>
&nbsp;</html>

--------------D363E0997C4E0F48DAD9B34B--