Re: Can't shl_load() a library ...
From: jignaasu (jignaasu_at_yahoo.com)
Date: 07/30/03
- Next message: Doug Dingus: "Re: Free UNIX for non-commerical use."
- Previous message: Benjamin Gawert: "Re: Free UNIX for non-commerical use."
- In reply to: venky_rk: "Re: Can't shl_load() a library ..."
- Next in thread: Praveen: "Re: Can't shl_load() a library ..."
- Reply: Praveen: "Re: Can't shl_load() a library ..."
- Reply: Praveen: "Re: Can't shl_load() a library ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jul 2003 23:12:23 -0700
> 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.
- Next message: Doug Dingus: "Re: Free UNIX for non-commerical use."
- Previous message: Benjamin Gawert: "Re: Free UNIX for non-commerical use."
- In reply to: venky_rk: "Re: Can't shl_load() a library ..."
- Next in thread: Praveen: "Re: Can't shl_load() a library ..."
- Reply: Praveen: "Re: Can't shl_load() a library ..."
- Reply: Praveen: "Re: Can't shl_load() a library ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|