linux libjogl_awt.so UnsatisfiedLinkError 1.1.1 Can't load IA 32-bit .so on a IA

Under SUSE-10 linux in 586 machine after downloading nightly build 1.1.1 of JOGL I get the following error using
both java.library.path and LD_LIBRARY_PATH pointing to the locations of the JOGL .so natives:

java.lang.UnsatisfiedLinkError: /users/tobi/jAER/host/java/JNI/libjogl_awt.so: Can’t load IA 32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:78)
at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:101)
at com.sun.opengl.impl.NativeLibLoader.access$100(NativeLibLoader.java:47)
at com.sun.opengl.impl.NativeLibLoader$2.run(NativeLibLoader.java:130)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadAWTImpl(NativeLibLoader.java:116)
at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:91)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.lockToolkit(X11GLDrawableFactory.java:551)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.isXineramaEnabled(X11GLDrawableFactory.java:676)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.chooseGraphicsConfiguration(X11GLDrawableFactory.java:134)
at javax.media.opengl.GLCanvas.(GLCanvas.java:113)
at javax.media.opengl.GLCanvas.(GLCanvas.java:82)

Here is my java startup script:

set the LD_LIBRARY_PATH intead of using java.library.path because this is reported to

cause problems when libraries use other libraries

LD_LIBRARY_PATH="$PWD/JNI"; export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH

run main class using paths relative to this path

#java -DJOGL_SINGLE_THREADED_WORKAROUND=false -Djava.library.path=JNI -Dsun.java2d.opengl=false -Dsun.java2d.noddraw=true -cp dist/jAER.jar:jars/spread.jar:jars/UsbIoJava.jar:jars/swing-layout-0.9.jar:jars/jogl.jar:jars/gluegen-rt.jar ch.unizh.ini.caviar.JAERViewer
java -Djava.library.path=${PWD}/JNI -Dsun.java2d.opengl=false -Dsun.java2d.noddraw=true -cp dist/jAER.jar:jars/spread.jar:jars/UsbIoJava.jar:jars/swing-layout-0.9.jar:jars/jogl.jar:jars/gluegen-rt.jar ch.unizh.ini.caviar.JAERViewer

Has anyone figured this out?

I’m using jogl-1.1.1-pre-20070503-linux-i586.zip

Sorry, should have said I’m using

[tobi@zedi jAER]$ java -version
java version “1.5.0_10”
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot™ Client VM (build 1.5.0_10-b03, mixed mode, sharing)

Now i updated to Java 1.6 and get this error reporting some problem with GLIBC_2.4

java.lang.UnsatisfiedLinkError: /users/tobi/jAER/host/java/JNI/libjogl_awt.so: /lib/tls/libc.so.6: version `GLIBC_2.4’ not found (required by /users/tobi/jAER/host/java/JNI/libjogl_awt.so)

Using
java version “1.6.0_01”

Anyone know about this? Am I missing some LD_LIBRARY_PATH component in linux now?

This is on linux suse 10, uname gives this:
$ uname -a
Linux zedi 2.6.13-15.15-default #1 Mon Feb 26 14:11:33 UTC 2007 i686 i686 i386 GNU/Linux

OK, now I see the problem. My SUSE 10 linux only has glibc up to 2.3.5-40 and there is no newer release available, at least locally.
I don’t know enough about linux to get and install a newer package for glibc.

Now I also tried release 1.1.0 and it has the same problem with glibc.

It appears to be a real practical problem with deployment because the build happened on a system that had glibc 2.4, but
SUSE linux is only at release 10.0, and the glibc in that release is only 2.3.5. Suse won’t release 10.1 until October (I’m told), so
anyone who must run the present release (like our whole institute, >100 machines) won’t be able to use the 1.1 version of JOGL.

Am I missing something here?

In the meantime I will go back to 1.0. I was trying to use 1.1 because of another problem with remote X11 display of GLCanvas, which
didn’t work.

The webstart demos give me the same problem on Debian stable (Etch)

Etch has libc-2.3.6

Hmm. I’m not an expert on glibc issues on Linux but we did recently upgrade our Linux nightly build machine. We’ll look into this.

I had the same problem in Debian, installing libc6, libc6-386 and libc6-dev from the unstable branch solved the problem.

Hi Ken

[quote]Hmm. I’m not an expert on glibc issues on Linux but we did recently upgrade our Linux nightly build machine. We’ll look into this.
[/quote]
Any progress on this?

Thanks for your patience. Only today did we finally get the first JOGL build out of the new nightly build machine. It’s just been released; see this message. The Java Web Start binaries, in particular, have been updated so please post if you still see problems.

Hi Ken

Yeah it’s fixed (at least for me).
Thanks for your work on jogl.

Andrew