Current-Users archive

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

Re: cannot dlopen non-loadable /usr/lib/libpthread.so.1



On Tue, 18 Jan 2011 23:14:35 +0100
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:

> On Tue, Jan 18, 2011 at 11:05:58PM +0100, Thomas Klausner wrote:
> > I've just seen this for the first time when starting fbreader.
> > 
> > loading /usr/pkg/lib/zlibrary/ui/zlui-gtk.so...
> > Cannot dlopen non-loadable /usr/lib/libpthread.so.1
> > 
> > Does this ring a bell with anyone?
> 
> ld.elf_so recently got a new feature to check for this. If a program
> wants to dlopen a module that needs libpthread, the main program must be
> linked against as well. Variant I: zlui-gtk.so doesn't actually need
> libpthread.so, because the pthread stubs in libc are good enough.
> Variant II: link the main program against libpthread.
> 
> Note: the problem this check is for is not new and applies to all NetBSD
> releases (and most other systems).
> 
> Joerg

The error message should reference a manpage, or clearly read what you
just explained to us.

-- 
NetBSD - Simplicity is prerequisite for reliability


Home | Main Index | Thread Index | Old Index