[ https://issues.apache.org/jira/browse/THRIFT-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173935#comment-13173935 ]
Daniil commented on THRIFT-1382: -------------------------------- I want to install gem Cassandra, but fails because of Thrift (or Thrift_client). sudo gem install cassandra Building native extensions. This could take a while… ERROR: Error installing cassandra: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for strlcpy() in string.h… no creating Makefile make gcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -Wall -Werror -o struct.o -c struct.c struct.c:28:1: ошибка: static-декларация «strlcpy» после неstatic-декларации /usr/include/ruby-1.9.1/ruby/missing.h:157:20: замечание: здесь была предыдущая декларация «strlcpy» make: * [struct.o] Ошибка 1 Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/thrift-0.7.0 for inspection. Results logged to /usr/lib/ruby/gems/1.9.1/gems/thrift-0.7.0/ext/gem_make.out How to install the gems? Please, help me. Thanks. > Bundle install doesnot work because thrift crashes > -------------------------------------------------- > > Key: THRIFT-1382 > URL: https://issues.apache.org/jira/browse/THRIFT-1382 > Project: Thrift > Issue Type: Bug > Components: Ruby - Library > Affects Versions: 0.7 > Environment: I'm using ubuntu 11.10 using RVM. > Reporter: rodrigo dias > Assignee: Jake Farrell > Priority: Blocker > Fix For: 0.8 > > Attachments: thrift-1382.patch, thrift-1382.patch > > > Error running bundle install: > Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native > extension. > /home/developer3/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb > checking for strlcpy() in string.h... no > creating Makefile > make > gcc -I. > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/x86_64-linux > > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/ruby/backward > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1 -I. > -fPIC -g -O2 -Wall -Werror -o thrift_native.o -c thrift_native.c > gcc -I. > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/x86_64-linux > > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/ruby/backward > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1 -I. > -fPIC -g -O2 -Wall -Werror -o compact_protocol.o -c compact_protocol.c > gcc -I. > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/x86_64-linux > > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/ruby/backward > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1 -I. > -fPIC -g -O2 -Wall -Werror -o protocol.o -c protocol.c > gcc -I. > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/x86_64-linux > > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/ruby/backward > -I/home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1 -I. > -fPIC -g -O2 -Wall -Werror -o struct.o -c struct.c > struct.c:28:1: error: static declaration of 'strlcpy' follows non-static > declaration > /home/developer3/.rvm/rubies/ruby-1.9.2-head/include/ruby-1.9.1/ruby/missing.h:157:20: > note: previous declaration of 'strlcpy' was here > make: *** [struct.o] Error 1 > Gem files will remain installed in > /home/developer3/.rvm/gems/ruby-1.9.2-head@agg/gems/thrift-0.7.0 for > inspection. > Results logged to > /home/developer3/.rvm/gems/ruby-1.9.2-head@agg/gems/thrift-0.7.0/ext/gem_make.out > An error occured while installing thrift (0.7.0), and Bundler cannot continue. > Make sure that `gem install thrift -v '0.7.0'` succeeds before bundling. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira