Glenn MacGregor wrote:
>
> Hi all,
> I am writing a program that uses some shared objects that I have
> written. One shared object I have depends on another shared object
> which should work fine. On the link line to create this .so I give ld
> -shared, -rpath and -rpath-link. So in debugging the program I found
> that the dlopen of this .so fails so I step into the dlopen code and bug
> until I found the problem. This will be easier if I give an example, so
> here goes:
> test.so is made.
> gtest.so is made and is linked with test.so, so if I do a ldd on
> gtest.so I see that test.so is a dependancy but ldd says it can not find
> it.
> steping through the dlopen call for gtest.so when opening all the
> dependancies I see that the file it is trying to open in
> /usr/lib/test.so which is not where it is. It never looks in the dirs
> that I specified with the -rpath and the -rpath-link options to the
> linker.
Did you run 'ldconfig -v' after you put the shared libraries in
/usr/lib? It is a required step. Does ldconfig actually find the
library when it is run?
-Rob
--
Rob Riggs Devil's Thumb Entertainment
Network Administrator Boulder, CO - (303) 938-1200
[EMAIL PROTECTED] http://www.DevilsThumb.COM/~rob
"The notion of errors is ill-defined." - IRIX 'netstat' man page