redis / hiredis-rb

Ruby wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
319 stars 90 forks source link

Native extension build failing #54

Closed cjcolvar closed 5 years ago

cjcolvar commented 5 years ago

I'm having this problem with the just released version 0.6.2. The output of the mkmf.log is below. FWIW I'm hitting this problem on travis-ci as well.

have_header: checking for sys/socket.h... -------------------- yes

"gcc -o conftest -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/x86_64-darwin15 -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0 -I.  -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -fno-common -pipe conftest.c  -L. -L/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl@1.1/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl@1.1/lib     -lruby.2.4.1  -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -E -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/x86_64-darwin15 -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/backward -I/Users/cjcolvar/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0 -I.  -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -fno-common -pipe  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sys/socket.h>
/* end */

--------------------
cjcolvar commented 5 years ago

Fixed with the 0.6.3 release.

rafaelfranca commented 5 years ago

Sorry about the mess! Still trying to get familiar with the release process.

wfarr commented 5 years ago

I'm seeing similar build errors on the v0.6.3 tag w/ Ruby 2.3.8

rafaelfranca commented 5 years ago

0.6.2 was released without the vendored hiredis. 0.6.3 has it, so if it is failing to compile it is not related to this issue.