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

compile fail on centOS7 #4

Open
jjmanzer opened this issue Aug 25, 2015 · 1 comment
Open

compile fail on centOS7 #4

jjmanzer opened this issue Aug 25, 2015 · 1 comment

Comments

@jjmanzer
Copy link

I get the following when I try to 'gem install zk-eventmachine'

make[1]: Leaving directory `/usr/local/lib/ruby/gems/2.2.0/gems/zookeeper-1.3.0/ext/c'
checking for rb_thread_blocking_region()... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling event_lib.c
compiling zkrb_wrapper_compat.c
compiling zkrb_wrapper.c
compiling zkrb.c
In file included from /usr/local/include/ruby-2.2.0/ruby.h:33:0,
                 from zkrb.c:68:
zkrb.c: In function ‘get_call_type’:
/usr/local/include/ruby-2.2.0/ruby/ruby.h:422:18: error: expected ‘(’ before ‘!’ token
 #define RTEST(v) !(((VALUE)(v) & ~Qnil) == 0)
                  ^
zkrb.c:148:6: note: in expansion of macro ‘RTEST’
   if RTEST(async) {
      ^
zkrb.c:148:19: error: expected ‘;’ before ‘{’ token
   if RTEST(async) {
                   ^
In file included from /usr/local/include/ruby-2.2.0/ruby.h:33:0,
                 from zkrb.c:68:
zkrb.c: In function ‘get_self_pipe_read_fd’:
/usr/local/include/ruby-2.2.0/ruby/ruby.h:423:18: error: expected ‘(’ before ‘!’ token
 #define NIL_P(v) !((VALUE)(v) != Qnil)
                  ^
zkrb.c:761:6: note: in expansion of macro ‘NIL_P’
   if NIL_P(pipe_read)
      ^
zkrb.c:762:7: error: expected ‘;’ before ‘rb_raise’
       rb_raise(rb_eRuntimeError, "@pipe_read was nil!");
       ^
make: *** [zkrb.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/zookeeper-1.3.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/zookeeper-1.3.0/gem_make.out

This is on CentOS Linux release 7.1.1503 (Core) and I am using ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux].

What is going wrong? Can I fix this? Also I noticed this repo hasn't gotten many updates in a long time so is this gem feature complete or dead?

@slyphon
Copy link
Contributor

slyphon commented Aug 25, 2015

yeah, this repo is pretty much dead. I'm doing maintenance of zk and zookeeper gems, but I'm not maintaining this lib anymore.

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

2 participants