Subject: Re: packages installing shared libraries for loading with dlopen
To: Brook Milligan <brook@biology.nmsu.edu>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-pkg
Date: 10/27/2006 23:11:24
On 10/27/06, Brook Milligan <brook@biology.nmsu.edu> wrote:
> I am having trouble with resolving symbols in a shared library created
> by a package I am working on. The situation is this:
>
> - package 1: creates a shared library libpkg1.so
> - package 2: creates a shared library libpkg2.so, which is linked
> against libpkg1.so
> - package 3: tries to load libpkg2.so via dlopen(3) and complains
> about not finding libpkg1.so
>
> All the symbols in libpkg1.so are resolved fine as determined by 'ldd
> libpkg1.so'. This is not true for libpkg2.so, as ldd complains about
> not finding libpkg1.so.
>
> I have tried building libpkg2.so with '-Wl,-rpath,<path to
> libpkg1.so>'
Just to be sure: rpath takes a directory, not a .so file; your message
seems to imply you are doing the latter.
--
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/