FW: [omniORB] Calling omniORB shared library from a an
applications shared librar on SGI
Cameron Malley
cameron@ptmnet.com
Fri, 23 Jun 2000 16:50:21 +1000
We have pthread as the last library.
The first symptom is that the following code always gives the failed to narrow
message even though this works fine on other platforms.
It also works fine if the code making this call is itself not in a shared
library.
CORBA::Object_var obj = orb->string_to_object ( ior );
pnsprj = GLDBProjects::_narrow ( obj.in () );
if ( CORBA::is_nil ( pnsprj.in () ) ) {
fprintf ( stderr,
"Failed to narrow GLDBProjects stringified reference.\n" );
Terry Lee wrote:
>
> Hi,
>
> I dent this out on the omniORB message system here is the
> first reply...
>
> Terry
>
> -----Original Message-----
> From: James Riden [mailto:jamesr@harlequin.co.uk]
> Sent: Thursday, June 22, 2000 10:18 AM
> To: Terry Lee
> Cc: omniorb-list@uk.research.att.com; gregoryg@ParadigmGeo.com
> Subject: Re: [omniORB] Calling omniORB shared library from a an
> applications shared librar on SGI
>
> "Terry Lee" <terryl@wt.net> writes:
> > We have a library where our CORBA client code resides.
> > This library is normally a shared library. When linked
> > this amounts to our shared library calling the omniORB
> > shared library. On NT and Solaris this runs fine but on
> > SGI it fails. Any ideas? If our library is statically
> > linked with the application it works okay.
>
> There are a few linking strangenesses of IRIX - for instance -lpthread
> should come as the last library in the link line. If you can describe
> how it fails on SGI, I could probably be a bit more specific.
> (segfaulting in pthread_key_create is a common symptom of the above
> problem).
>
> cheers,
> Jamie
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered
> through the MessageLabs Virus Control Centre. For further information visit
> http://www.star.net.uk/stats.asp
--
Cameron Malley Email: cameron@ParadigmGeo.com 67 High St
Software Development Manager Phone: +61 7 33778021 Toowong
Well Technology R&D Fax: +61 7 32178755 Brisbane Q 4066
Paradigm Geophysical Pty Ltd Australia