morellon / rrd-ffi

A ruby wrapper for librrd (rrdtool) using ffi.
MIT License
71 stars 20 forks source link

Support for rrdtool 1.6? #31

Open rdvdijk opened 7 years ago

rdvdijk commented 7 years ago

Any chance on supporting rrdtool 1.6.0?

I ran into this error:

dyld: lazy symbol binding failed: Symbol not found: _rrd_get_context
  Referenced from: /usr/local/lib/librrd.dylib
  Expected in: flat namespace

dyld: Symbol not found: _rrd_get_context
  Referenced from: /usr/local/lib/librrd.dylib
  Expected in: flat namespace

Downgrading rrdtool (to 1.4.8_1 in my case) fixed it for me.

(The error above my actually be unrelated to rrd-ffi?)

geoffgarside commented 7 years ago

I've started seeing this as well, I had a FreeBSD server running with rrdtool 1.6.0, ruby 2.2 and rrd-ffi without any problems, but macOS just keeps throwing this up.

I've not been able to get 1.4.8_1 installed at all.

Theres no call to rrd_get_context() in the gem, but loading up and running RRD::Wrapper.clear_error or probably any library call results in this error being printed out.

My guess would be its something related to the merging of librrd and librrd_th, pkg-config doesn't seem to suggest that pthreads or anything like that needs to be linked as well though, so not overly sure how to fix.