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

bundle install fails on Ruby 2.1.5 #1

Open
rtyler opened this issue Jul 5, 2015 · 0 comments
Open

bundle install fails on Ruby 2.1.5 #1

rtyler opened this issue Jul 5, 2015 · 0 comments
Labels

Comments

@rtyler
Copy link

rtyler commented Jul 5, 2015

➜  zipkin-query git:(master) ✗ bundle install
Fetching gem metadata from https://rubygems.org/..
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/tyler/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150705-17740-1e3zhpw.rb extconf.rb
checking for strlcpy() in string.h... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling binary_protocol_accelerated.c
compiling compact_protocol.c
compiling thrift_native.c
compiling memory_buffer.c
compiling protocol.c
compiling struct.c
struct.c:28:1: error: static declaration of ‘strlcpy’ follows non-static declaration
 strlcpy (char *dst, const char *src, size_t dst_sz)
 ^
In file included from /home/tyler/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/defines.h:68:0,
                 from /home/tyler/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/ruby.h:29,
                 from /home/tyler/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby.h:33,
                 from struct.h:22,
                 from struct.c:20:
/home/tyler/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/missing.h:207:20: note: previous declaration of ‘strlcpy’ was here
 RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
                    ^
Makefile:224: recipe for target 'struct.o' failed
make: *** [struct.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/tyler/.rvm/gems/ruby-2.1.5@rubygems/gems/thrift-0.6.0 for inspection.
Results logged to /home/tyler/.rvm/gems/ruby-2.1.5@rubygems/extensions/x86_64-linux/2.1.0/thrift-0.6.0/gem_make.out
An error occurred while installing thrift (0.6.0), and Bundler cannot continue.
Make sure that `gem install thrift -v '0.6.0'` succeeds before bundling.
➜  zipkin-query git:(master) ✗ 
@rtyler rtyler added the bug label Jul 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant