Current-Users archive

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

Re: cannot dlopen non loadable libpthread error



On Sun, Sep 30, 2012 at 03:54:56PM +0200, Martin Husemann wrote:
> On Sun, Sep 30, 2012 at 07:12:42PM +0530, Mayuresh wrote:
> > The said program does not link with libpthread. (ldd doesn't show that.)
> > It tries to open libpthread dynamically with dlopen.
> 
> This is simply not possible on a lot of platforms, including NetBSD.
> Link the program with -pthread.

Is this limitation specific to pthread or is there a general limitation on
use of dlopen. (If the latter, I think many applications would have faced
problems.)


Also, I noticed the error going away with
LD_PRELOAD=/usr/lib/libpthread.so.1

How reliable/good is this workaround?

Mayuresh


Home | Main Index | Thread Index | Old Index