This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

binary incompatible change breaks Sun Java

Attempting to use the Sun JDK 1.3.1 with the current glibc, I get the
following error:

Error occurred during initialization of VM
Unable to load native library: /usr/lib/SunJava2-1.3.1/jre/lib/i386/ symbol __libc_wait, version GLIBC_2.0 not defined in file with link time reference

This is one more binary incompatible change in

$ nm /usr/lib/SunJava2-1.3.1/jre/lib/i386/ | grep ' U __'
         U __assert_fail@@GLIBC_2.0
         U __divdi3@@GLIBC_2.0
         U __environ@@GLIBC_2.0
         U __libc_wait@@GLIBC_2.0
         U __lxstat@@GLIBC_2.0
         U __moddi3@@GLIBC_2.0
         U __xstat64@@GLIBC_2.1
         U __xstat@@GLIBC_2.0

Here is a fix.

2002-04-19  Bruno Haible  <>

	* posix/Versions: Move back __libc_wait to GLIBC_2.0 section.

--- glibc-20020408/posix/Versions.bak	2002-02-04 12:42:40.000000000 +0100
+++ glibc-20020408/posix/Versions	2002-04-19 01:01:00.000000000 +0200
@@ -14,6 +14,9 @@
     # functions used by libstdc++ 2.7.2
+    # functions used by SunJava2-1.3.1/jre/lib/i386/
+    __libc_wait;
     # global variables
     __environ; _environ;
@@ -108,7 +111,7 @@
     # functions which have an additional interface since they are
     # are cancelable.
-    __libc_wait; __libc_waitpid; __libc_pause; __libc_nanosleep; __libc_fork;
+    __libc_waitpid; __libc_pause; __libc_nanosleep; __libc_fork;
     __libc_pread; __libc_pread64; __libc_pwrite; __libc_pwrite64;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]