Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem using dlopen



You can try to use the ldd utility to figure out if it depends on the specified so library file.

2009/1/5 Daniel Carosone <dan%geek.com.au@localhost>
On Sun, Jan 04, 2009 at 09:37:02PM -0600, David Dudley wrote:
> I have a library that won't load with dlopen.  Even worse, when
> dlerror is called, it returns the wrong library name.
>
> The library is named
> /usr/local/EPICS/lib/netbsd-x86/libEpics.so,
>
> I surrounded the call with print statements so I could capture it,
> I get
> -------------------------------------------------
> Doing dlopen on /usr/local/EPICS/lib/netbsd-x86/libEpics.so
> Back from dlopen
> Got error
> Shared object "nss_dns.so.0" not found
> -------------------------------------------------
> This is all in a single thread, inline.


I guess your libEpics.so is itself marked as being dependent on
nss_dns.so.0, and this is not being satisfied.  Perhaps the link
invocation for building libEpics should be investigated.

--
Dan.



--
        çå
MSN:haoniukun%hotmail.com@localhost


Home | Main Index | Thread Index | Old Index