≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1505

Bug #1505: Command-T does not compile on ruby 1.9

Kind bug
Product Command-T
When Created 2010-03-22T15:41:50Z, updated 2010-03-24T09:46:59Z
Status closed
Reporter anonymous
Tags no tags

Description

Ruby 1.9.1 is the default on my distro (Arch Linux), but the Command-T plugin does not compile.

The following is the error message:

gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H    -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o ext.o -c ext.c
gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H    -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o match.o -c match.c
match.c: In function ‘CommandTMatch_score’:
match.c:160: error: ‘struct RArray’ has no member named ‘len’
match.c:169: error: ‘struct RArray’ has no member named ‘len’
match.c:169: error: ‘struct RString’ has no member named ‘len’
match.c:177: error: ‘struct RArray’ has no member named ‘len’
match.c:178: error: ‘struct RArray’ has no member named ‘len’
match.c:181: error: ‘struct RArray’ has no member named ‘ptr’
match.c:185: error: ‘struct RString’ has no member named ‘ptr’
match.c:186: error: ‘struct RString’ has no member named ‘ptr’
match.c:210: error: ‘struct RArray’ has no member named ‘ptr’
make: *** [match.o] Error 1

Comments

  1. Greg Hurrell 2010-03-22T17:47:04Z

    Thanks for the report. I'll get multiruby set up on this machine so I can do some test compiles against multiple versions of Ruby.

  2. Greg Hurrell 2010-03-22T18:12:57Z

    I expect that compilation on 1.9 is fixed now.

    While I was at it, I also preemptively applied a fix for compilation on old versions of Ruby like 1.8.5 as well.

    Gonna test this presently with a few versions of Ruby, and hopefully will be able to mark as closed shortly.

  3. anonymous 2010-03-22T20:44:33Z

    Still doesn't compile:

    gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses -fPIC -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o ext.o -c ext.c gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses -fPIC -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o match.o -c match.c gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses -fPIC -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o matcher.o -c matcher.c matcher.c: In function ‘comp’: matcher.c:37: error: ‘struct RFloat’ has no member named ‘value’ matcher.c:38: error: ‘struct RFloat’ has no member named ‘value’ make: *** [matcher.o] Error 1

  4. Greg Hurrell 2010-03-23T05:33:31Z

    Ok, tested on 1.9.1. The errors you reported above are now fixed, but found a couple others:

    matcher.c:37: error: ‘struct RFloat’ has no member named ‘value’
    matcher.c:38: error: ‘struct RFloat’ has no member named ‘value’

    Will squish those and we'll be good to go.

  5. Greg Hurrell 2010-03-23T05:37:58Z

    Ok, done. Marking as closed.

  6. Greg Hurrell 2010-03-23T05:38:16Z

    Status changed:

    • From: new
    • To: closed
  7. Greg Hurrell 2010-03-23T16:48:08Z

    The new release is out.

  8. Greg Hurrell 2010-03-24T09:46:59Z

    Oops, accidentally deleted the following comment:

    Still doesn't compile:

    gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H    -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o ext.o -c ext.c
    gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H    -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o match.o -c match.c
    gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_RUBY_H    -fPIC -march=x86-64 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -o matcher.o -c matcher.c
    matcher.c: In function ‘comp’:
    matcher.c:37: error: ‘struct RFloat’ has no member named ‘value’
    matcher.c:38: error: ‘struct RFloat’ has no member named ‘value’
    make: *** [matcher.o] Error 1

    Looks like this is the issue I commented on earlier and fixed prior to the 0.2 release.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets