[omniORB] SSL & static linking

Slava Garelin garelin@ukr.net
Thu Sep 5 09:44:01 2002


On Wednesday 04 September 2002 20:42, you wrote:
> On Wednesday 4 September, Slava Garelin wrote:
> > If I try link SSL example statically, then I have
>
> The SSL library relies on some static constructors. On most platforms,
> the static linker notices that the library is not used, so it misses
> it out entirely, meaning the constructors are never run. The
> work-around for this is to force the use of a symbol from the library
> by the application. You do this by putting
>
>   #include <omniORB4/optionalFeatures.h>
>
> in one of the application's source files. By default, the
> optionalFeatures header forces linking with both the SSL transport (if
> it exists) and the codeset library. To turn off linking with the
> codeset library, #define OMNI_CODESETS to be 0 before the #include.

I do it.
But trouble still exists.

=======================
omniORB: Initialising incoming endpoints.
omniORB: Error: Unable to create an endpoint of this description: giop:ssl::
omniORB: throw INITIALIZE from objectAdapter.cc:241 
(NO,INITIALIZE_TransportError)
Caught CORBA::SystemException.
omniORB: ORB not destroyed; no final clean-up.
========================

-- 
Slava Garelin