[ 
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_...@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.

Reply via email to