From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Emmanuel Pinault Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Re: Issue with kgio and ruby 2.1.2 Date: Sat, 10 May 2014 00:05:18 +0000 Message-ID: <80B9CD93-8C72-41D9-880E-21A05B85C9C6@zumobi.com> References: <69876B82-B214-4D2A-8534-B9DDBD6DD215@zumobi.com> <69876B82-B214-4D2A-8534-B9DDBD6DD215@zumobi.com> <20140509235113.GA14984@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399680336 6124 80.91.229.3 (10 May 2014 00:05:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2014 00:05:36 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Sat May 10 02:05:29 2014 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:275 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WiunA-0005yf-Sr for gclrkg-kgio@m.gmane.org; Sat, 10 May 2014 02:05:29 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id CEF3B7571B for ; Sat, 10 May 2014 00:09:50 +0000 (UTC) Ok, I ll give it a try for rebuilding it from scratch . I found that my r= uby-install was old and maybe some flag need to be adjusted (and was mayb= e done already in latest version) By the way, I am running Xubuntu 12.04 on a VM, latest of ruby-install a= nd chruby now and will let you know what I found. Also I was looking at the code where I can only see one place in kgio ref= erring to method_defined? if (!rb_funcall(cFile, rb_intern("method_defined?"), 1, ID2SYM(id_to_path))) rb_define_alias(cFile, "to_path", "path=E2=80=9D); thanks Emmanuel On May 9, 2014, at 4:51 PM, Eric Wong wrote: > Emmanuel Pinault wrote: >> Hi=20 >>=20 >> I upgraded from Ruby 2.1.0 to Ruby 2.1.2 . I have installed rails and = unicorn and both of the version of Ruby have the same gem installed=E2=80= =A6 >>=20 >> unfortunately I see the following error with 2.1.2.. Works fine with = 2.1.0 >>=20 >> ruby -Itest /some/minitest/file_test.rb >>=20 >> /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `metho= d_defined?': -2.0000000001404037 is not a symbol (TypeError) >=20 > Hi, this looks like a binary compatibility problem. > The most likely suspect is some build/compiler options changed > between when you installed 2.1.0 and today. >=20 > I just checked Ruby 2.1.2 for accidental ABI changes (by looking > for header changes in the include/ directory) but did not find any. > I also just upgraded some of my machines without problems. >=20 > Can you try a clean build + install, perhaps with a different home > directory and user? Thanks.