You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2009/11/19 14:18:39 UTC

[jira] Created: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Buildr fails on windows with jruby and ODE 1.X
----------------------------------------------

                 Key: BUILDR-348
                 URL: https://issues.apache.org/jira/browse/BUILDR-348
             Project: Buildr
          Issue Type: Bug
          Components: JRuby
    Affects Versions: 1.3.5
         Environment: Windows XP
            Reporter: Rafal Rusin


Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
And running gives:

buildr _1.3.5_ clean test=no
C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
       from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
       from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
       from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
       from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
        ... 7 levels...
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
       from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'


On Linux, it works fine. 
Any ideas?

Regards

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


[jira] Updated: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

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

Alex Boisvert updated BUILDR-348:
---------------------------------

    Fix Version/s: 1.4

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Daniel Spiewak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839757#action_12839757 ] 

Daniel Spiewak commented on BUILDR-348:
---------------------------------------

Committed fix in r917594.  It would be great if we can get some verification for this before we resolve this issue.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Reopened: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

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

Alex Boisvert reopened BUILDR-348:
----------------------------------


Reopening until I apply this fix to trunk.

(Only seems to affect JRuby 1.4.0)

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Assigned: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

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

Antoine Toulme reassigned BUILDR-348:
-------------------------------------

    Assignee: Daniel Spiewak

Cool, I think this one should be marked fixed ?

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>            Assignee: Daniel Spiewak
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Mateusz Nowakowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780094#action_12780094 ] 

Mateusz Nowakowski commented on BUILDR-348:
-------------------------------------------

It's working, thanks.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Daniel Spiewak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839703#action_12839703 ] 

Daniel Spiewak commented on BUILDR-348:
---------------------------------------

If you do this, I'm pretty sure that all JLine-enabled REPLs (e.g. Scala) will cease to accept input.  That was the reason for the POSIX native system function in the first place.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Pepijn Van Eeckhoudt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839760#action_12839760 ] 

Pepijn Van Eeckhoudt commented on BUILDR-348:
---------------------------------------------

Could you change your fix to ffi_lib FFI::Platform::LIBC instead? I think that's the more appropriate way of handling this. I think you can safely do this on all platforms; not just on windows. You want libc's system anyway so there's no harm in making that explicit.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780015#action_12780015 ] 

Alex Boisvert commented on BUILDR-348:
--------------------------------------

Edit ruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:

And comment out line 410:

  module FileUtils
    extend FFI::Library
    alias_method :__jruby_system__, :system
    #attach_function :system, [:string], :int
    alias_method :__native_system__, :system
    alias_method :system, :__jruby_system__

Does that work for you?

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Resolved: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

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

Daniel Spiewak resolved BUILDR-348.
-----------------------------------

    Resolution: Fixed

A fair amount of time has passed with no comment, so I think we can assume that my fix is working.  :-)  Resolving...

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>            Assignee: Daniel Spiewak
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Daniel Spiewak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839763#action_12839763 ] 

Daniel Spiewak commented on BUILDR-348:
---------------------------------------

Done in r917597.  I'm going to hold off on making it explicit, just because I like to play it safe with this sort of thing.  :-)  It just seems that by going explicit, we're making ourselves more vulnerable to changes in JRuby/JFFI.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Commented: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839749#action_12839749 ] 

Antoine Toulme commented on BUILDR-348:
---------------------------------------

My discussion with the JRuby maintainer about this:

toulmean: headius: hi, can I ask you to take a very quick look at http://issues.apache.org/jira/browse/BUILDR-348 ?
[08:18am] toulmean: headius: and whether this is fixed post 1.4 ?
[08:27am] headius: exec I think has some bugs with jruby, not sure
[08:27am] headius: they're doing some posixy exec mojo
[08:29am] headius: toulmean: where does "system" come from? libc?
[08:29am] headius: yeah, looks like it
[08:30am] headius: the correct way to do this is to always ffi_lib FFI::LibC or whatever it is
[08:30am] headius: I don't remember the exact line
[08:30am] headius: we do not do that for you because on windows we don't want to load the libc compat layer if people don't need it
[08:30am] headius: and on windows, libc is not used loaded by the JVM process
[08:33am] toulmean: headius: good to know
[08:33am] toulmean: headius: so you need a special require on windows ?
[08:33am] toulmean: headius: got something like that ? that I could quote on the bug ?
[08:33am] toulmean: headius: is that still current with the recent jffi releases ?
[08:34am] headius: toulmean: yeah, that's going to be the way forever

I will discuss again with headius to find the right invocation for system with jruby - we have conflicting meetings so I will grab him tonight or tomorrow.

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>             Fix For: 1.4
>
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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


[jira] Resolved: (BUILDR-348) Buildr fails on windows with jruby and ODE 1.X

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

Rafal Rusin resolved BUILDR-348.
--------------------------------

    Resolution: Fixed

Your outstanding fix worked :-)
Thanks Alex

> Buildr fails on windows with jruby and ODE 1.X
> ----------------------------------------------
>
>                 Key: BUILDR-348
>                 URL: https://issues.apache.org/jira/browse/BUILDR-348
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.5
>         Environment: Windows XP
>            Reporter: Rafal Rusin
>
> Taking Apache ODE (rev. https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X@881749)
> And running gives:
> buildr _1.3.5_ clean test=no
> C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:113:in `create_invoker': Function 'system' not found in [current process] (FFI::NotFoundError)
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:74:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `each'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/shared/ffi/library.rb:72:in `attach_function'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:410
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/util.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/common.rb:31:in `require'
>         ... 7 levels...
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:18
>        from C:/Programs/jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/bin/buildr:19:in `load'
> On Linux, it works fine. 
> Any ideas?
> Regards

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