[omniORB] HP-11.00 fix for 'unable to find shared library' problems

David_Tiller@circuitcity.com David_Tiller@circuitcity.com
Fri, 13 Jul 2001 14:55:37 -0400


I've just compiled omniORB 3.0.4 under HPUX 11.00 (32 bit), and found that
the shared
libraries are being built without the ability to use SHLIB_PATH. (Mentioned
in article
2001-02/00175). The examples that use libomniORB3.sl fail to load, while
the ones that
only use libomnithread.sl work fine. This is because libomniORB3.sl has an
explicit
reference to something like
"../../../lib/hppa_hpux_11.00/libomnithread.sl.2" in it. Since
SHLIB_PATH support is off in libomniORB3 and it's highly unlikely that
every piece of
code will be developed 3 levels from lib/hppa_hpux_11.00, turning on
SHLIB_PATH
support would be nice.

Adding "-Wl,+s" to the HPUX sections of the makefiles under $(TOP)/src/lib
fixes the
problem.