On 2014-06-30, Wesley MOUEDINE ASSABY <open...@e-solutions.re> wrote:
> dlopen: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: done
> (failed).
> /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
> specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
...
>
> and verify now : ldconfig -r | grep libpthread.so.18.0
> 68:-lpthread.18.0 => /usr/lib/libpthread.so.18.0
>
> and the file exists.
>
> I don't understand why it is not loaded ...

dlopen() doesn't automatically pull in libpthread. Either the main
program must be linked against it, or you need LD_PRELOAD.


On 2014-06-30, Wesley MOUEDINE ASSABY <open...@e-solutions.re> wrote:
> On 30.06.2014 18:11, Ted Unangst wrote:
>>
>> LD_PRELOAD=libpthread.so ruby ....
>
> I tried this : env LD_PRELOAD=/usr/lib/libpthread.so.18.0 ruby18 
> path_to_rb
> The error go away. But the ruby app doesn't work.

So this fixed one problem, now you have another and need to debug a
bit further..

Reply via email to