Re: Can't shl_load() a library ...

From: Praveen (pravlm_at_ureach.com)
Date: 07/30/03


Date: 30 Jul 2003 07:57:08 -0700

Hi Guys ,

Thanks for the replies that was realy nice of you guys.
I solved the problem ,
we have to install a patch "PHCO_27632" and have to export
"LD_PRELOAD=/usr/lib/pa20_64/libpthread.1"

It works it does not break any othre third party software.

Thanks
Praveen and Venkat

jignaasu@yahoo.com (jignaasu) wrote in message news:<1238ce7b.0307292212.115e81d@posting.google.com>...
> > Thanks. I have an executble which inturn loads the threaded shared library.
> > I tried to load the libpthread using
> >
> > dlopen("/usr/lib/libpthread.1",....)
> >
> > Still I'm getting a dlopen error. I also tried with putenv() in my
> > executable before loading the shared library.
>
> i think you should not link your shared library with libpthread.1. you
> can either link the executable with libpthread or use LD_PRELOAD while
> invoking the executable. setting LD_PRELOAD from within the executable
> will not work.



Relevant Pages

  • Re: Cant shl_load() a library ...
    ... I have an executble which inturn loads the threaded shared library. ... I tried to load the libpthread using ... Still I'm getting a dlopen error. ...
    (comp.sys.hp.hpux)
  • Re: Cant shl_load() a library ...
    ... I have an executble which inturn loads the threaded shared library. ... > Still I'm getting a dlopen error. ... can either link the executable with libpthread or use LD_PRELOAD while ...
    (comp.sys.hp.hpux)
  • Re: Cant shl_load() a library ...
    ... Praveen And Venkat ... I have an executble which inturn loads the threaded shared library. ... > can either link the executable with libpthread or use LD_PRELOAD while ...
    (comp.sys.hp.hpux)