[omniORB] omniorb 2.8 and 3.01
Sai-Lai Lo
S.Lo@uk.research.att.com
25 Sep 2000 12:11:45 +0100
Just to give you an example. On our machines, we have all the shared
libraries of all omniORB versions living in one directory, e.g.
/project/omni/version6.0/lib/sun4_sosV_5.5.
$ export LD_LIBRARY_PATH=/project/omni/version6.0/lib/sun4_sosV_5.5
$ ldd omniORB_300/bin/eg2_clt
libomniORB3.so.0 => /project/omni/version6.0/lib/sun4_sosV_5.5/libomniORB3.so.0
libtcpwrapGK.so.2 => /project/omni/version6.0/lib/sun4_sosV_5.5/libtcpwrapGK.so.2
libomnithread.so.2 => /project/omni/version6.0/lib/sun4_sosV_5.5/libomnithread.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
libposix4.so.1 => /usr/lib/libposix4.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libm.so.1 => /opt/SUNWspro/lib/libm.so.1
libC.so.5 => /usr/lib/libC.so.5
libw.so.1 => /usr/lib/libw.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libmp.so.1 => /usr/lib/libmp.so.1
$ ldd omniORB_280/bin/eg2_clt
libomniORB2.so.8 => /project/omni/version6.0/lib/sun4_sosV_5.5/libomniORB2.so.8
libomniDynamic2.so.8 => /project/omni/version6.0/lib/sun4_sosV_5.5/libomniDynamic2.so.8
libomnithread.so.2 => /project/omni/version6.0/lib/sun4_sosV_5.5/libomnithread.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
libposix4.so.1 => /usr/lib/libposix4.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libtcpwrapGK.so.1 => /project/omni/version6.0/lib/sun4_sosV_5.5/libtcpwrapGK.so.1
libm.so.1 => /opt/SUNWspro/lib/libm.so.1
libC.so.5 => /usr/lib/libC.so.5
libw.so.1 => /usr/lib/libw.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libmp.so.1 => /usr/lib/libmp.so.1
As you can see, the loader is able to pick the right shared library
version. This is taken from Solaris 2.5 but the applies all platforms.
Regards,
Sai-Lai
>> On Mon, 18 Sep 2000, bruno PATIN wrote:
>>
>> > I have two applications. One runs with omniorb 2.8 and the other with
>> > omniorb 3.01. Is there a possibility with one definition of
>> > LD_LIBRARY_PATH to make them work together (they must cooperate) ?
>>
>> Just put both 'lib' directories in the LD_LIBRARY_PATH. The library names
>> for omniORB 2.8 and 3.01 are different, so there should be no problem. In
>> fact you could put all the libraries together in one directory.
> I saw something else. When I try to run an old application, there had been
> problems because of mixing names when loading the dynamic libraries. In order
> to solve them I was obliged to write a script for each application that
> redefines the LD_LIBRARY_PATH variable and the default path for the
> configuration file of omniorb (/etc/omniORB.cfg by default). That's not too
> practical.
--
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.com
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND