Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroMQ autogen failed #36

Open
wokibe opened this issue Feb 18, 2015 · 4 comments
Open

ZeroMQ autogen failed #36

wokibe opened this issue Feb 18, 2015 · 4 comments

Comments

@wokibe
Copy link

wokibe commented Feb 18, 2015

On my Mac 10.9.5 (Mavericks) the rbczmq installation failed:

iMac:~ kittekat$ gem install rbczmq
Building native extensions. This could take a while...
ERROR: Error installing rbczmq:
ERROR: Failed to build gem native extension.
/Users/kittekat/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb
"./autogen.sh"
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: configure.ac: subdirectory foreign/openpgm/build-staging/openpgm/pgm/ not present
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --include=config --force
configure.ac:57: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:58: error: possibly undefined macro: AC_PROG_LIBTOOL
configure:5345: error: possibly undefined macro: AC_DISABLE_STATIC
configure:5349: error: possibly undefined macro: AC_ENABLE_STATIC
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
autogen.sh: error: autoreconf exited with status 0
ZeroMQ autogen failed!
*** extconf.rb failed ***
...

Could not find the cause for the trouble. I am confused about the mentioned ...WIN32_DLL. This is a
Mac!

Here are the versions of the required tools:

iMac:~ kittekat$ libtool -V
Apple Inc. version cctools-862
iMac:~ kittekat$ autoconf -V
autoconf (GNU Autoconf) 2.69
...
-iMac:~ kittekat$ automake --version
automake (GNU automake) 1.14.1

Anyway, I found for me a workaround: I installed zeromq (4.0.4) and czmq (2.0.2) with homebrew and rbczmq (1.7.8) as "slim" gem:
brew install zeromq
brew install czmq
gem install rbczmq -- --wirh-system-libs

@methodmissing
Copy link
Owner

@wokibe thanks for the brilliant context - I'll take a look and fix the bundled libs shortly.

@quackingduck
Copy link

Same deal here

$ gem install rbczmq
Building native extensions.  This could take a while...
ERROR:  Error installing rbczmq:
    ERROR: Failed to build gem native extension.

    /Users/mylesbyrne/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150708-40430-k9lwlq.rb extconf.rb
"./autogen.sh"
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: configure.ac: subdirectory foreign/openpgm/build-staging/openpgm/pgm/ not present
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --include=config --force
configure.ac:57: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:58: error: possibly undefined macro: AC_PROG_LIBTOOL
configure:5346: error: possibly undefined macro: AC_DISABLE_STATIC
configure:5350: error: possibly undefined macro: AC_ENABLE_STATIC
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
autogen.sh: error: autoreconf exited with status 0
ZeroMQ autogen failed!
*** 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=.
    --curdir
    --ruby=/Users/mylesbyrne/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)
    --with-system-libs
    --without-system-libs

extconf failed, exit code 1

Gem files will remain installed in /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rbczmq-1.7.9 for inspection.
Results logged to /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/rbczmq-1.7.9/gem_make.out

Couldn't get it to work with --with-system-libs either 😞

~ $ gem install rbczmq
$ brew install zeromq czmq && gem install rbczmq -- --with-system-libs
Warning: zeromq-4.1.2 already installed
Warning: czmq-3.0.2 already installed
Building native extensions with: '--with-system-libs'
This could take a while...
ERROR:  Error installing rbczmq:
    ERROR: Failed to build gem native extension.

    /Users/mylesbyrne/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150708-41352-1i71oql.rb extconf.rb --with-system-libs
Warning -- using system version of libzmq.
Warning -- using system version of libczmq.
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for zmq.h in /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rbczmq-1.7.9/ext/zeromq/include... yes
checking for czmq.h in /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rbczmq-1.7.9/ext/czmq/include... yes
checking for main() in -lzmq... no
Error compiling and linking libzmq
*** 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=.
    --curdir
    --ruby=/Users/mylesbyrne/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)
    --with-system-libs
    --with-system-libs
    --with-rbczmq-dir
    --without-rbczmq-dir
    --with-rbczmq-include
    --without-rbczmq-include=${rbczmq-dir}/include
    --with-rbczmq-lib
    --without-rbczmq-lib=${rbczmq-dir}/lib
    --with-zmqlib
    --without-zmqlib

extconf failed, exit code 1

Gem files will remain installed in /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rbczmq-1.7.9 for inspection.
Results logged to /Users/mylesbyrne/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/rbczmq-1.7.9/gem_make.out

Versions:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.3
BuildVersion:   14D136
$ libtool -V
Apple Inc. version cctools-870
$ autoconf -V
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
$ automake --version
automake (GNU automake) 1.15
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.

@quackingduck
Copy link

Derp. Installing autogen (brew install autogen) fixed it 🎉

@jhroy
Copy link

jhroy commented Apr 16, 2016

Just wanted to let you know I had the same problem as @wokibe. Even though I'm on Yosemite, @wokibe 's solution worked very well. I can now run iRuby notebooks fine. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants