You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jeff Hodges (JIRA)" <ji...@apache.org> on 2010/11/02 21:32:23 UTC

[jira] Created: (THRIFT-979) ruby bindings used to work on jruby

ruby bindings used to work on jruby
-----------------------------------

                 Key: THRIFT-979
                 URL: https://issues.apache.org/jira/browse/THRIFT-979
             Project: Thrift
          Issue Type: Bug
    Affects Versions: 0.5
            Reporter: Jeff Hodges


The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.

I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury closed THRIFT-979.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6
         Assignee: Jeff Hodges

Awesome, that version worked. I just committed this. Thanks for your persistence and responsiveness.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>            Assignee: Jeff Hodges
>             Fix For: 0.6
>
>         Attachments: THRIFT-979-2.patch, THRIFT-979-3.patch, THRIFT-979-4.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Hodges updated THRIFT-979:
-------------------------------

    Attachment: THRIFT-979-4.patch

Swear to god, I'm not a total idiot.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979-3.patch, THRIFT-979-4.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Hodges updated THRIFT-979:
-------------------------------

    Attachment: THRIFT-979-2.patch

Corrected patch for jruby support.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927595#action_12927595 ] 

Kevin Clark commented on THRIFT-979:
------------------------------------

Does the right thing happen (no Makefile generation, no compilation) if you wrap the extconf.rb in an `if RUBY_ENGINE != jruby`? (I'm not sure if that's the right RUBY_ENGINE value - you should double check).

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927899#action_12927899 ] 

Kevin Clark commented on THRIFT-979:
------------------------------------

Just an update - I've got dependency issues on the machine I was using for dev. Will try to resolve.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927613#action_12927613 ] 

Jeff Hodges edited comment on THRIFT-979 at 11/2/10 5:31 PM:
-------------------------------------------------------------

That was the deal I was trying. No clue why it doesn't seem to work.

This is what extconf.rb looks like locally:

{code}
unless RUBY_ENGINE =~ /jruby/
  require 'mkmf'

  $CFLAGS = "-g -O2 -Wall -Werror"

  have_func("strlcpy", "string.h")

  create_makefile 'thrift_native'
end
{code}

Output I get from that is the usual "Failed to build gem native extension". This reproducible on your end?

      was (Author: jmhodges):
    That was the deal I was trying. No clue with it doesn't seem to work.

This is what extconf.rb looks like locally:

{code}
unless RUBY_ENGINE =~ /jruby/
  require 'mkmf'

  $CFLAGS = "-g -O2 -Wall -Werror"

  have_func("strlcpy", "string.h")

  create_makefile 'thrift_native'
end
{code}

Output I get from that is the usual "Failed to build gem native extension". This reproducible on your end?
  
> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927613#action_12927613 ] 

Jeff Hodges commented on THRIFT-979:
------------------------------------

That was the deal I was trying. No clue with it doesn't seem to work.

This is what extconf.rb looks like locally:

{code}
unless RUBY_ENGINE =~ /jruby/
  require 'mkmf'

  $CFLAGS = "-g -O2 -Wall -Werror"

  have_func("strlcpy", "string.h")

  create_makefile 'thrift_native'
end
{code}

Output I get from that is the usual "Failed to build gem native extension". This reproducible on your end?

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Hodges updated THRIFT-979:
-------------------------------

    Attachment: THRIFT-979-3.patch

Diffing against trunk. Yeesh.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979-3.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933180#action_12933180 ] 

Kevin Clark commented on THRIFT-979:
------------------------------------

+1

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932688#action_12932688 ] 

Jeff Hodges commented on THRIFT-979:
------------------------------------

Er, wrong diff. One moment.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928005#action_12928005 ] 

Kevin Clark commented on THRIFT-979:
------------------------------------

Ahh, that'd make sense. Could you try having the JRuby guard output a Makefile with stubbed out targets? Might be enough to fake it out.

Soon as I have it reproing at home, I'll do the same.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933192#action_12933192 ] 

Bryan Duxbury commented on THRIFT-979:
--------------------------------------

This patch doesn't apply for me against the current Thrift trunk. It looks like a diff on a previous diff.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Hodges updated THRIFT-979:
-------------------------------

    Component/s: Ruby - Library

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Hodges updated THRIFT-979:
-------------------------------

    Attachment: THRIFT-979.patch

This patch implements the "okay, fine, we'll make a Makefile even though we don't need it" fix to the extconf.rb call for JRuby. Fixes this ticket.

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Chris Kite (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930258#action_12930258 ] 

Chris Kite commented on THRIFT-979:
-----------------------------------

I am able to reproduce this issue with JRuby 1.5.3 and Thrift 0.5.0. 

However, if I first build against MRI 1.9.2 to generate a Makefile and then comment out extconf.rb, the JRuby gem builds and installs correctly. 

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927625#action_12927625 ] 

Kevin Clark commented on THRIFT-979:
------------------------------------

I'll take a look when I get home and have a unix machine in front of me. Let me know if you manage to track it down in the meantime.

Any idea what's failing? The automake stuff or the gem stuff?

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928003#action_12928003 ] 

Jeff Hodges commented on THRIFT-979:
------------------------------------

With debug, it seems that rubygems is expecting a makefile to be made but is not seeing it. Perhaps, this only worked in the 0.2 branch because an old makefile was still being packaged up?

{code}
Building native extensions.  This could take a while...
Exception `Gem::InstallError' at /Users/jhodges/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb:16 - Makefile not found:

/Users/jhodges/.rvm/rubies/jruby-1.5.3/bin/jruby extconf.rb

Exception `Gem::Installer::ExtensionBuildError' at /Users/jhodges/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems/installer.rb:482 - ERROR: Failed to build gem native extension.

/Users/jhodges/.rvm/rubies/jruby-1.5.3/bin/jruby extconf.rb


Gem files will remain installed in /Users/jhodges/.rvm/gems/jruby-1.5.3/gems/thrift-0.5.1 for inspection.
Results logged to /Users/jhodges/.rvm/gems/jruby-1.5.3/gems/thrift-0.5.1/ext/gem_make.out

ERROR:  Error installing pkg/thrift-0.5.1.gem:
	ERROR: Failed to build gem native extension.

/Users/jhodges/.rvm/rubies/jruby-1.5.3/bin/jruby extconf.rb


Gem files will remain installed in /Users/jhodges/.rvm/gems/jruby-1.5.3/gems/thrift-0.5.1 for inspection.
Results logged to /Users/jhodges/.rvm/gems/jruby-1.5.3/gems/thrift-0.5.1/ext/gem_make.out
Exception `Gem::SystemExitException' at /Users/jhodges/.rvm/rubies/jruby-1.5.3/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:171 - Exiting RubyGems with exit_code 1
{code}

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-979) ruby bindings used to work on jruby

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933213#action_12933213 ] 

Bryan Duxbury commented on THRIFT-979:
--------------------------------------

Hm:

{quote}
[bryanduxbury rb]$pwd
/Users/bryanduxbury/projects/thrift/thrift-trunk/lib/rb
[bryanduxbury rb]$ruby -v
ruby 1.8.6 (2010-01-11 patchlevel 388) [i686-darwin10.4.0]
[bryanduxbury rb]$ruby ext/extconf.rb
ext/extconf.rb:20: uninitialized constant RUBY_ENGINE (NameError)
{quote}

> ruby bindings used to work on jruby
> -----------------------------------
>
>                 Key: THRIFT-979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.5
>            Reporter: Jeff Hodges
>         Attachments: THRIFT-979-2.patch, THRIFT-979-3.patch, THRIFT-979.patch
>
>
> The current ruby bindings do not work on JRuby do to the use of mkmf in the build. It used to be that on jruby, the build would just skip over the extconf.rb step and only install the pure ruby code. (See the current version up on <http://github.com/fauna/thrift>.
> I've been fighting with rubygems to figure out why I can't make this work like I was able to with 0.2. Unfortunately, I'm at my limit, so here's just the bug. Help appreciated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.