zk-ruby / zookeeper

Zookeeper bindings for Ruby
MIT License
148 stars 75 forks source link

Zookeeper installation failing since the latest update #116

Open AnujVKulkarni opened 2 years ago

AnujVKulkarni commented 2 years ago

The issue is apparently happening since this package ext/zkc-3.4.14.tar.gz was replaced with zkc-3.4.5.tar.gz around 3 days ago.

It is causing zookeeper installation to fail in one of our pipelines. It was working fine until 3 days ago.

Here are the logs -

01:09:51 #48 459.3 STDERR: ERROR: Error installing zookeeper: 01:09:51 #48 459.3  ERROR: Failed to build gem native extension. 01:09:51 #48 459.3 compiling event_lib.c 01:09:51 #48 459.3 compiling zkrb.c 01:09:51 #48 459.3 zkrb.c: In function 'alloc_zkrb_instance': 01:09:51 #48 459.3 zkrb.c:248: error: expected expression before 'zkrb_instance_data_t'

malmckay commented 2 years ago

@AnujVKulkarni We found issues with using 3.4.14, so had to revert. Are you see these errors when using git or a released version of the gem?

zzantozz commented 2 years ago

I see this error when installing the kafkat gem. I'm not a Ruby guy, so I'm not sure how all this fits together.

$ sudo gem install kafkat
[...]
creating Makefile

make
compiling zkrb_wrapper_compat.c
compiling event_lib.c
compiling zkrb.c
zkrb.c: In function ‘alloc_zkrb_instance’:
zkrb.c:248:3: warning: implicit declaration of function ‘ZALLOC_N’ [-Wimplicit-function-declaration]
   zkrb_instance_data_t* zk = ZALLOC_N(zkrb_instance_data_t, 1);
   ^
zkrb.c:248:39: error: expected expression before ‘zkrb_instance_data_t’
   zkrb_instance_data_t* zk = ZALLOC_N(zkrb_instance_data_t, 1);
                                       ^
make: *** [zkrb.o] Error 1
kingyyy commented 2 years ago

same here