Subject: Re: Why do I need to add an entry into ld.so.conf?
To: Rich Neswold <rich.neswold@gmail.com>
From: Joern Clausen <joern@TechFak.Uni-Bielefeld.DE>
List: port-i386
Date: 03/23/2005 22:51:54
Hi!
> Rereading this thread, I was reminded of the 'ldd' command. Running it
> exposed this:
>
> $ ldd eg1
> eg1:
> -lomnithread.3 => not found
> -lpthread.0 => /usr/lib/libpthread.so.0
> -lstdc++.5 => /usr/lib/libstdc++.so.5
> -lm.0 => /usr/lib/libm387.so.0
> -lm.0 => /usr/lib/libm.so.0
> -lgcc_s.1 => /usr/lib/libgcc_s.so.1
> -lomniORB4.0 => /usr/pkg/lib/libomniORB4.so.0
> -lc.12 => /usr/lib/libc.so.12
> -lomnithread.3 => /usr/pkg/lib/libomnithread.so.3
>
> omnithread is in the list twice! The first entry is "not found", so it
> fails to load the executable. Maybe there's a dependency in the
> omniORB4 library to the omnithread library... When I built the
> package, the runtime path wasn't properly specified?
Most probably. Try
ldd /usr/pkg/lib/libomniORB4.so.0
to check if it finds all its dependencies. If not, you have to rebuild
that library with a correct rpath, too.
--
Joern Clausen http://www.TechFak.Uni-Bielefeld.DE/~joern/
joern@TechFak.Uni-Bielefeld.DE http://thebloeg.blogspot.com/