The JNA library bundled with JRuby is built against glibc 2.4+
--------------------------------------------------------------
Key: JRUBY-1784
URL: http://jira.codehaus.org/browse/JRUBY-1784
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1b2
Environment: Linux 2.6.17-1.2142_FC4smp (glibc 2.3.6), Java
1.5.0_14-b03
Reporter: Takanori Ishikawa
Assignee: Thomas E Enebo
Fix For: JRuby 1.1b2
The version of JNA that the JRuby is using is built against glibc 2.4+ on
Linux,
so compiling JRuby failed on Linux has an older glibc (2.3).
Environments:
{noformat}
% uname -a
Linux jruby-test 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686
i686 i386 GNU/Linux
% java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)
% /lib/libc.so.6
GNU C Library development release version 2.3.6, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
{noformat}
ant clean test, produces:
{noformat}
generate-method-classes:
[touch] Creating /home/ishikawa/jruby/build/__empty.rb
[java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/jna3904.tmp: /lib/libc.so.6: version `GLIBC_2.4' not found (required by
/tmp/jna3904.tmp)
[java] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[java] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
[java] at java.lang.Runtime.load0(Runtime.java:769)
[java] at java.lang.System.load(System.java:968)
[java] at com.sun.jna.Native.loadNativeLibrary(Native.java:387)
[java] at com.sun.jna.Native.<clinit>(Native.java:62)
[java] at
org.jruby.ext.posix.POSIXFactory.loadLinuxLibC(POSIXFactory.java:40)
[java] at
org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:22)
[java] at org.jruby.Ruby.init(Ruby.java:1218)
[java] at org.jruby.Ruby.newInstance(Ruby.java:367)
[java] at org.jruby.Main.runInterpreter(Main.java:153)
[java] at org.jruby.Main.run(Main.java:119)
[java] at org.jruby.Main.run(Main.java:93)
[java] at org.jruby.Main.main(Main.java:84)
{noformat}
JNA has updated their jna.jar to be built against glibc 2.3+. These new jar
file can be found at
* https://jna.dev.java.net/source/browse/jna/trunk/jnalib/dist/
and build with glibc 2.3.5 is Revision 344 at
*
https://jna.dev.java.net/source/browse/jna/trunk/jnalib/dist/jna.jar?rev=344&sortby=log&view=markup
I tested with newest version of jna.jar (rev. 433) and glibc 2.3+ version (rev.
344). The compile and tests all passed successfully.
--
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