≡

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 #2098

Bug #2098: Fails to compile command-t on ruby 2.x

Kind bug
Product Command-T
When Created 2013-07-02T21:50:31Z, updated 2013-07-11T13:29:09Z
Status closed
Reporter anonymous
Tags no tags

Description

~ ~/.v/r/command-t (master)>   ruby extconf.rb 
checking for ruby.h... yes
creating Makefile
~ ~/.v/r/command-t (master)> make
gcc -I. -I/usr/include/x86_64-linux -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_RUBY_H    -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC -m64 -std=c99 -Wall -Wextra -Wno-unused-parameter -o matcher.o -c matcher.c
In file included from /usr/include/ruby/ruby.h:1567:0,
                 from /usr/include/ruby.h:33,
                 from matcher.h:24,
                 from matcher.c:26:
/usr/include/ruby/intern.h:323:1: error: unknown type name ‘fd_set’
 typedef fd_set rb_fdset_t;
 ^
In file included from /usr/include/ruby/ruby.h:24:0,
                 from /usr/include/ruby.h:33,
                 from matcher.h:24,
                 from matcher.c:26:
/usr/include/ruby/intern.h:412:1: error: unknown type name ‘fd_set’
 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
 ^
/usr/include/ruby/intern.h:412:1: error: unknown type name ‘fd_set’
 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
 ^
/usr/include/ruby/intern.h:412:1: error: unknown type name ‘fd_set’
 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
 ^
make: *** [matcher.o] Error 1
~ ~/.v/r/command-t (master) [2]> ruby --version 
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
~ ~/.v/r/command-t (master)> rpm -qa|grep ruby
rubygems-2.0.3-1.fc19.noarch
rubygem-io-console-0.4.2-8.fc19.x86_64
ruby-devel-2.0.0.195-8.fc19.x86_64
rubypick-1.1.0-1.fc19.noarch
rubygem-rdoc-4.0.1-1.fc19.noarch
ruby-libs-2.0.0.195-8.fc19.x86_64
ruby-2.0.0.195-8.fc19.x86_64
rubygem-json-1.7.7-100.fc19.x86_64
rubygem-bigdecimal-1.2.0-8.fc19.x86_64
ruby-irb-2.0.0.195-8.fc19.noarch
rubygem-psych-2.0.0-8.fc19.x86_64

Comments

  1. anonymous 2013-07-03T08:32:59Z

    Hello, sorry for bug report, this got somehow resolved with today's fedora update.

  2. Greg Hurrell 2013-07-03T08:41:50Z

    Status changed:

    • From: new
    • To: closed
  3. anonymous 2013-07-11T13:29:09Z

    I am getting this error still in fedora 19 with all updates applied.

    Looks like adding:

    #include <sys/select.h>

    before:

    #include <ruby.h>

    in matcher.h

    Fixes it (in that fd_set is now defined). This seems to be a bug in ruby's headers, but I've no idea how to report or fix that :/

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets