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

From: venky_rk (venky_rk14_at_ureach.com)
Date: 07/29/03


Date: 29 Jul 2003 09:29:43 -0700

Hi,

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.
That also didn't help.

Any suggestions? I'm using HP11.0 and HP11.11.
Any patches available for this particular problem.
Pl. share the pointers.

thanks,
venkat

jignaasu@yahoo.com (jignaasu) wrote in message news:<1238ce7b.0307282039.4c1d43f9@posting.google.com>...
> > To overcome this, I used LD_PRELOAD=/usr/lib/libpthread.1 and it
> > worked.
> > But other applications(clear case)in my server crashes after setting
> > this env variable.
>
> set LD_PRELOAD=/usr/lib/libpthread.1 only for the particular
> application that needs it (e.g. by prefixing
> "LD_PRELOAD=/usr/lib/libpthread.1" to the command line). do not set it
> in some place like .profile or .bashrc or for an interactive shell
> from where it can apply to all applications launched subsequently.
>
> however, this LD_PRELOAD setting will apply to any other programs your
> application may exec and that may cause problems. this is a known
> problem and a fix will be made soon.



Relevant Pages

  • Re: Cant shl_load() a library ...
    ... we have to install a patch "PHCO_27632" and have to export ... 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)
  • 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)