methodmissing / rbczmq

Ruby extension that wraps the official high level ZeroMQ C API ( http://czmq.zeromq.org/ )
http://github.com/methodmissing/rbczmq
MIT License
125 stars 32 forks source link

Ensure linking bundled libraries #58

Open kou opened 8 years ago

kou commented 8 years ago

If dependency libraries (czmq, libsodium and zeromq) are already installed in system and they exist in Ruby's library path, rbczmq uses headers of bundled libraries and shared objects of system libraries. Because link command generated by mkmf.rb uses $DEFLIBPATH | $LIBPATH as library search path. $DEFLIBPATH includes Ruby's library path. If dependency libraries already exist in Ruby's library path, they are used instead of bundled libraries.

It causes segmentation fault.

kou commented 8 years ago

See also:

kou commented 8 years ago

It seems that https://github.com/SciRuby/iruby/issues/70 is occurred by this problem.