[omniORB] Fatal error during runtime
Shelton, Susan L.
Susan.Shelton@destia.com
Fri, 28 Jan 2000 10:09:19 -0600
The libraries just have the read flags set. When I don't use the full path
for linking, even when using the -L option, I get errors that it cannot open
the files: No such file or directory. It is as if it is looking for
everything locally, even though I am specifying for it to look elsewhere as
well.
Thanks,
Susan
-----Original Message-----
From: Andre Fornacon [mailto:afo@linux2.hrz.fh-zwickau.de]
Sent: None
To: Susan.Shelton@destia.com
Subject: Re: [omniORB] Fatal error during runtime
>
>$ ldd echo
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libomnithread.so.2 =>
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomnithread.so.2
> libomniORB2.so.8 =>
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniORB2.so.8
> libomniDynamic2.so.8 =>
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniDynamic2.so.8
> libomniLC.so.3 =>
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniLC.so.3
strange, this indicates that the dynamic linker find the libraries,
so it should work ...
have you checked the permissions for the libraries ?
they should have at least the read and execute bit set
>
>I have this path in the PATH,LD_LIBRARY_PATH, & LIBRARY_PATH.
>The following is a copy of the link command I am using:
>
>CC -D\__sparc__ -D\__sunos__ -D\__OSVERSION__=5 -D\_REENTRANT -o
echoclient
>echoSK.o main.o -lsocket -lnsl -L/usr/local/omniORB/lib/sun4_sosV_5.7
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomnithread.so
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniORB2.so
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniDynamic2.so
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniLC.so
>/usr/local/omniORB/lib/sun4_sosV_5.7/libomniGK_stub.a
why do you use the full path for linking ?
CC -D\__sparc__ -D\__sunos__ -D\__OSVERSION__=5 -D\_REENTRANT -o echoclient
echoSK.o main.o -lsocket -lnsl -L/usr/local/omniORB/lib/sun4_sosV_5.7
-lomniORB2 -lomniDynamic2 -lomnithread
should be enough
--
// Andre Fornacon -*- afo <at> zlug <dot> org
//
// frog>> "If you kiss me, I'll turn into a beautiful princess."
// geek>> "Look, I'm a computer programmer. I don't have time for girls,
// geek>> but a talking frog is very very cool."