Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-07-02 Thread Wesley MOUEDINE ASSABY

Hi,

Running the web app, give me in the production.log :

Processing DashboardController#index (for 192.168.0.20 at 2014-07-02 
11:58:53) [GET]

  Parameters: {controller=dashboard, action=index}
LoadError (Cannot load specified object - 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so):

  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
  lib/rrdmon.rb:4
  app/controllers/dashboard_controller.rb:7:in `index'

Below, a beginning of dashboard_controller.rb file :
class DashboardController  ApplicationController
  def index
@proc = Mailserver.new.processes
@updates = Mailserver.new.updates
# problem to load rrdtools - can not load specified object RRD.so
Rrdmon.new.daily
  end


The error was away in the install using LD_PRELOAD in the install 
process.

But i don't know how to correct this app, if you can help me.

Thank you very much.







Rendering /var/mailserv/admin/public/500.html (500 Internal Server 
Error)


On 01.07.2014 03:14, Stuart Henderson wrote:

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..




Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-07-02 Thread Wesley MOUEDINE ASSABY

Now, it works using your advice, the following at startup
export LD_PRELOAD=/usr/lib/libpthread.so.18.0


Thank you very much.

--

On 01.07.2014 03:14, Stuart Henderson wrote:


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




/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

Hi,

I'm trying to make mailserv project working with the last OpenBSD 
version.


I meet this error :

/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 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2

I checked the file 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so exists.
I already read the documentation about rrdtool-1.4.8p1. (located in 
/usr/local/share/doc/pkg-readmes)


Packages Installed :
ruby-1.8.7.374p0object oriented script language with threads
ruby-1.9.3.484p0object oriented script language with threads
ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a daemon
ruby-fastercsv-1.5.4p2 faster Ruby CSV library
ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb 
primitives

ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
ruby-gems-1.8.23p1  package management framework for the Ruby language
ruby-iconv-1.8.7.374 libiconv interface for ruby
ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
ruby-mysql-2.8.1p16 access a MySQL database from Ruby
ruby-rake-0.9.2.2p0 ruby make
ruby-rrd-1.4.8p1ruby interface to librrd
ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project Rakefiles

$(ldconfig -r | grep rrd) give me :
139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

$(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me :

StartEnd  Type Open Ref GrpRef Name
0702e000 27032000 dlib 10   0  
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
06448000 26455000 rlib 01   0  
/usr/local/lib/librrd.so.4.0
05814000 2583f000 rlib 01   0  
/usr/local/lib/libruby18.so.0.0

06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
0e1bf000 2e1c3000 rlib 01   0  
/usr/local/lib/libpangocairo-1.0.so.3600.0
0396f000 23974000 rlib 011   0  
/usr/lib/libpthread.so.18.0
050fe000 25108000 rlib 03   0  
/usr/X11R6/lib/libpixman-1.so.32.4
0c77d000 2c785000 rlib 03   0  
/usr/local/lib/libpng.so.17.1
09da1000 29da5000 rlib 03   0  
/usr/X11R6/lib/libxcb-shm.so.1.0
067ec000 267f rlib 03   0  
/usr/X11R6/lib/libxcb-render.so.1.0
0d678000 2d67c000 rlib 03   0  
/usr/X11R6/lib/libXrender.so.6.0
021e9000 221ed000 rlib 03   0  
/usr/X11R6/lib/libXext.so.13.0
035a1000 2361f000 rlib 05   0  
/usr/X11R6/lib/libX11.so.16.0
0297b000 2298 rlib 08   0  
/usr/X11R6/lib/libxcb.so.3.0
0b102000 2b11a000 rlib 02   0  
/usr/local/lib/libcairo.so.12.2
0e448000 2e44d000 rlib 02   0  
/usr/local/lib/libpangoft2-1.0.so.3600.0
0649 264a3000 rlib 03   0  
/usr/local/lib/libharfbuzz.so.4.2
06042000 2604a000 rlib 04   0  
/usr/local/lib/libgraphite2.so.0.0
0767c000 27694000 rlib 03   0  
/usr/local/lib/libpango-1.0.so.3600.0
079c7000 279cb000 rlib 04   0  
/usr/local/lib/libgmodule-2.0.so.3800.0
0b625000 2b629000 rlib 04   0  
/usr/local/lib/libgthread-2.0.so.3800.0
0915e000 2916b000 rlib 04   0  
/usr/local/lib/libgobject-2.0.so.3800.0
0c779000 2c77d000 rlib 05   0  
/usr/local/lib/libffi.so.0.0
05441000 25457000 rlib 09   0  
/usr/local/lib/libpcre.so.3.0
0cf6c000 2cfc1000 rlib 08   0  
/usr/local/lib/libglib-2.0.so.3800.0
00a46000 20a57000 rlib 04   0  
/usr/X11R6/lib/libfontconfig.so.9.0
010b3000 210cd000 rlib 06   0  
/usr/X11R6/lib/libfreetype.so.22.0
038c 238c5000 rlib 05   0  
/usr/lib/libexpat.so.11.0
0c2bb000 2c2bf000 rlib 07   0  
/usr/X11R6/lib/libpthread-stubs.so.2.0
0ae99000 2aec rlib 01   0  
/usr/local/lib/libxml2.so.15.1

0616e000 26175000 rlib 08   0  /usr/lib/libz.so.5.0
049e3000 249e7000 rlib 09   0  
/usr/local/lib/libintl.so.6.0
0e60c000 2e6ec000 rlib 011   0  
/usr/local/lib/libiconv.so.6.0
0d051000 2d055000 rlib 02   0  
/usr/X11R6/lib/libXau.so.10.0
0111e000 21123000 rlib 02   0  
/usr/X11R6/lib/libXdmcp.so.11.0
0cba8000 2cbd6000 rlib 02   0  
/usr/lib/libstdc++.so.57.0


Any idea ?

Thank you very much.

Cheers,

Wesley MOUEDINE ASSABY



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

Now, error i have using LD_DEBUG :

env LD_DEBUG=1 ruby18 /var/mailserv/scripts/rrdmon_create.rb :

...
loading: libexpat.so.11.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/lib/libexpat.so.11.0 = 0x0
obj /usr/lib/libexpat.so.11.0 has 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so as head

loading: libXext.so.13.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/X11R6/lib/libXext.so.13.0 = 0x0
obj /usr/X11R6/lib/libXext.so.13.0 has 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so as head

loading: libpthread.so.18.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/lib/libpthread.so.18.0 = 0x68
dlopen: failed to open libpthread.so.18.0
unload_shlib called on 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so

unload_shlib called on /usr/local/lib/librrd.so.4.0
unload_shlib unloading on /usr/local/lib/librrd.so.4.0
unload_shlib called on /usr/local/lib/libruby18.so.0.0
unload_shlib called on /usr/lib/libm.so.9.0
unload_shlib called on /usr/lib/libc.so.73.1
unload_shlib unloading on 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
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 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2
doing dtors
doing dtors obj 0x8376a288 @0xb189630: 
[/usr/local/lib/libruby18.so.0.0]

doing dtors obj 0x8376a080 @0xc7cab30: [/usr/lib/libc.so.73.1]
doing dtors obj 0x844ee068 @0x6b20900: [/usr/lib/libm.so.9.0]


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 ...
Any idea ?

On 30.06.2014 16:52, sven falempin wrote:

ldd  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so would
probably give the raeson

it is a dlib

On Mon, Jun 30, 2014 at 8:38 AM, Wesley MOUEDINE ASSABY
open...@e-solutions.re wrote:

Hi,

I'm trying to make mailserv project working with the last OpenBSD 
version.


I meet this error :

/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 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2

I checked the file 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so

exists.
I already read the documentation about rrdtool-1.4.8p1. (located in
/usr/local/share/doc/pkg-readmes)

Packages Installed :
ruby-1.8.7.374p0object oriented script language with threads
ruby-1.9.3.484p0object oriented script language with threads
ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a 
daemon

ruby-fastercsv-1.5.4p2 faster Ruby CSV library
ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb 
primitives

ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
ruby-gems-1.8.23p1  package management framework for the Ruby 
language

ruby-iconv-1.8.7.374 libiconv interface for ruby
ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
ruby-mysql-2.8.1p16 access a MySQL database from Ruby
ruby-rake-0.9.2.2p0 ruby make
ruby-rrd-1.4.8p1ruby interface to librrd
ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project 
Rakefiles


$(ldconfig -r | grep rrd) give me :
139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

$(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me 
:


StartEnd  Type Open Ref GrpRef Name
0702e000 27032000 dlib 10   0
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
06448000 26455000 rlib 01   0  
/usr/local/lib/librrd.so.4.0

05814000 2583f000 rlib 01   0
/usr/local/lib/libruby18.so.0.0
06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
0e1bf000 2e1c3000 rlib 01   0
/usr/local/lib/libpangocairo-1.0.so.3600.0
0396f000 23974000 rlib 011   0  
/usr/lib/libpthread.so.18.0

050fe000 25108000 rlib 03   0
/usr/X11R6/lib/libpixman-1.so.32.4
0c77d000 2c785000 rlib 03   0  
/usr/local/lib/libpng.so.17.1

09da1000 29da5000 rlib 03   0
/usr/X11R6/lib/libxcb-shm.so.1.0
067ec000 267f rlib 03   0
/usr/X11R6/lib/libxcb-render.so.1.0
0d678000 2d67c000 rlib 03   0
/usr/X11R6/lib/libXrender.so.6.0
021e9000 221ed000 rlib 03   0
/usr/X11R6/lib/libXext.so.13.0
035a1000 2361f000 rlib 05   0  
/usr/X11R6/lib/libX11.so.16.0
0297b000 2298 rlib 08   0  
/usr/X11R6/lib/libxcb.so.3.0

0b102000 2b11a000 rlib 02   0
/usr/local/lib/libcairo.so.12.2
0e448000 2e44d000 rlib 02   0
/usr/local/lib/libpangoft2-1.0.so.3600.0
0649 264a3000 rlib 03   0
/usr/local/lib/libharfbuzz.so.4.2
06042000 2604a000 rlib 04   0
/usr/local/lib/libgraphite2.so.0.0
0767c000 27694000 rlib 03   0
/usr/local

Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Ted Unangst
On Mon, Jun 30, 2014 at 16:38, Wesley MOUEDINE ASSABY wrote:
 Hi,
 
 I'm trying to make mailserv project working with the last OpenBSD
 version.
 
 I meet this error :
 
 /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
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2

LD_PRELOAD=libpthread.so ruby 



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread sven falempin
On Mon, Jun 30, 2014 at 10:10 AM, Wesley MOUEDINE ASSABY 
open...@e-solutions.re wrote:

 Now, error i have using LD_DEBUG :

 env LD_DEBUG=1 ruby18 /var/mailserv/scripts/rrdmon_create.rb :

 ...
 loading: libexpat.so.11.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/lib/libexpat.so.11.0 = 0x0
 obj /usr/lib/libexpat.so.11.0 has 
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 as head
 loading: libXext.so.13.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/X11R6/lib/libXext.so.13.0 = 0x0
 obj /usr/X11R6/lib/libXext.so.13.0 has 
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 as head
 loading: libpthread.so.18.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/lib/libpthread.so.18.0 = 0x68
 dlopen: failed to open libpthread.so.18.0
 unload_shlib called on /usr/local/lib/ruby/site_ruby/
 1.8/i386-openbsd/RRD.so
 unload_shlib called on /usr/local/lib/librrd.so.4.0
 unload_shlib unloading on /usr/local/lib/librrd.so.4.0
 unload_shlib called on /usr/local/lib/libruby18.so.0.0
 unload_shlib called on /usr/lib/libm.so.9.0
 unload_shlib called on /usr/lib/libc.so.73.1
 unload_shlib unloading on /usr/local/lib/ruby/site_ruby/
 1.8/i386-openbsd/RRD.so
 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
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2
 doing dtors
 doing dtors obj 0x8376a288 @0xb189630: [/usr/local/lib/libruby18.so.0.0]
 doing dtors obj 0x8376a080 @0xc7cab30: [/usr/lib/libc.so.73.1]
 doing dtors obj 0x844ee068 @0x6b20900: [/usr/lib/libm.so.9.0]


 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 ...
 Any idea ?


 On 30.06.2014 16:52, sven falempin wrote:

 ldd  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so would
 probably give the raeson

 it is a dlib

 On Mon, Jun 30, 2014 at 8:38 AM, Wesley MOUEDINE ASSABY
 open...@e-solutions.re wrote:

 Hi,

 I'm trying to make mailserv project working with the last OpenBSD
 version.

 I meet this error :

 /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
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2

 I checked the file /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 exists.
 I already read the documentation about rrdtool-1.4.8p1. (located in
 /usr/local/share/doc/pkg-readmes)

 Packages Installed :
 ruby-1.8.7.374p0object oriented script language with threads
 ruby-1.9.3.484p0object oriented script language with threads
 ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a daemon
 ruby-fastercsv-1.5.4p2 faster Ruby CSV library
 ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb
 primitives
 ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
 ruby-gems-1.8.23p1  package management framework for the Ruby language
 ruby-iconv-1.8.7.374 libiconv interface for ruby
 ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
 ruby-mysql-2.8.1p16 access a MySQL database from Ruby
 ruby-rake-0.9.2.2p0 ruby make
 ruby-rrd-1.4.8p1ruby interface to librrd
 ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project Rakefiles

 $(ldconfig -r | grep rrd) give me :
 139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
 140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

 $(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me :

 StartEnd  Type Open Ref GrpRef Name
 0702e000 27032000 dlib 10   0
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 06448000 26455000 rlib 01   0
  /usr/local/lib/librrd.so.4.0
 05814000 2583f000 rlib 01   0
 /usr/local/lib/libruby18.so.0.0
 06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
 0e1bf000 2e1c3000 rlib 01   0
 /usr/local/lib/libpangocairo-1.0.so.3600.0
 0396f000 23974000 rlib 011   0
  /usr/lib/libpthread.so.18.0
 050fe000 25108000 rlib 03   0
 /usr/X11R6/lib/libpixman-1.so.32.4
 0c77d000 2c785000 rlib 03   0
  /usr/local/lib/libpng.so.17.1
 09da1000 29da5000 rlib 03   0
 /usr/X11R6/lib/libxcb-shm.so.1.0
 067ec000 267f rlib 03   0
 /usr/X11R6/lib/libxcb-render.so.1.0
 0d678000 2d67c000 rlib 03   0
 /usr/X11R6/lib/libXrender.so.6.0
 021e9000 221ed000 rlib 03   0
 /usr/X11R6/lib/libXext.so.13.0
 035a1000 2361f000 rlib 05   0
  /usr/X11R6/lib/libX11.so.16.0
 0297b000 2298 rlib 08   0
  /usr/X11R6/lib/libxcb.so.3.0
 0b102000 2b11a000 rlib 02   0
 /usr/local/lib/libcairo.so.12.2
 0e448000 2e44d000 rlib 02   0
 /usr/local/lib/libpangoft2-1.0.so.3600.0
 0649 264a3000 rlib 03   0
 /usr/local/lib

Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

On 30.06.2014 18:11, Ted Unangst wrote:

On Mon, Jun 30, 2014 at 16:38, Wesley MOUEDINE ASSABY wrote:

Hi,

I'm trying to make mailserv project working with the last OpenBSD
version.

I meet this error :

/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

(LoadError)
from /var/mailserv/scripts/rrdmon_create.rb:2


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.



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Paul de Weerd
I prefer topposting over forgetting to trim your quote...  If you
don't, I keep thinking you must not want me to actually read your
reply.

On Mon, Jun 30, 2014 at 10:14:58AM -0400, sven falempin wrote:
| dont forget to bottom post here

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Stuart Henderson
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..