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

Error compiling from source on cygwin64 #54

Open buzain opened 8 years ago

buzain commented 8 years ago

When I try to compile rbczmq from source on cygwin64 running on Windows 10 I get the following error thrown by rake. Any ideas how to make it work? I need rbczmq to run iruby notebook in cygwin64.

CXXLD libzmq.la libtool: error: can't build x86_64-unknown-cygwin shared library unless -no-undefined is specified Makefile:651: recipe for target 'libzmq.la' failed make[2]: * [libzmq.la] Error 1 make[2]: Leaving directory '/tmp/tmp1/rbczmq/ext/zeromq/src' Makefile:563: recipe for target 'all' failed make[1]: * [all] Error 2 make[1]: Leaving directory '/tmp/tmp1/rbczmq/ext/zeromq/src' Makefile:414: recipe for target 'all-recursive' failed make: * [all-recursive] Error 1 ZeroMQ compile error! * ../../../../ext/rbczmq/extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=../../../../ext/rbczmq --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME) --with-system-libs --without-system-libs --with-system-libs --without-system-libs rake aborted! Command failed with status (1): [/usr/bin/ruby.exe -I. ../../../../ext/rbcz...] /usr/share/gems/gems/rake-compiler-0.9.3/lib/rake/extensiontask.rb:188:in block (2 levels) in define_compile_tasks' /usr/share/gems/gems/rake-compiler-0.9.3/lib/rake/extensiontask.rb:185:inblock in define_compile_tasks' Tasks: TOP => default => test => compile => compile:x86_64-cygwin => compile:rbczmq_ext:x86_64-cygwin => copy:rbczmq_ext:x86_64-cygwin:2.2.4 => tmp/x86_64-cygwin/rbczmq_ext/2.2.4/rbczmq_ext.so => tmp/x86_64-cygwin/rbczmq_ext/2.2.4/Makefile