Etc.getlogin blows up JRuby, but works OK in MRI, on Windows
------------------------------------------------------------

                 Key: JRUBY-2355
                 URL: http://jira.codehaus.org/browse/JRUBY-2355
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1
         Environment: Latest JRuby 1.1 on Windows
            Reporter: Vladimir Sizikov


On windows:

jruby -e "require 'etc'; p Etc.getlogin"
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up 
function 'getlogin': The specified
 procedure could not be found.

        at com.sun.jna.Function.<init>(Function.java:126)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219)
        at com.sun.jna.Library$Handler.invoke(Library.java:191)
        at $Proxy0.getlogin(Unknown Source)
        at org.jruby.ext.posix.BaseNativePOSIX.getlogin(BaseNativePOSIX.java:52)
        at org.jruby.RubyEtc.getlogin(RubyEtc.java:138)
        at org.jruby.RubyEtcInvoker$getlogin_s_method_0_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:270)
        at __dash_e__.__file__(-e:1)
        at __dash_e__.load(-e)
        at org.jruby.Ruby.runScript(Ruby.java:511)
        at org.jruby.Ruby.runNormally(Ruby.java:431)
        at org.jruby.Ruby.runFromMain(Ruby.java:311)
        at org.jruby.Main.run(Main.java:141)
        at org.jruby.Main.run(Main.java:88)
        at org.jruby.Main.main(Main.java:79)


While MRI correctly retuns returns "vvs".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to