LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: mifth on September 09, 2011, 07:10:25

Title: [FIXED] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: mifth on September 09, 2011, 07:10:25
Hi, OpenAL linux64bit does not compile. Just Want to say that.

Here is marked as red: https://www.newdawnsoftware.com/jenkins/

If the devs know about that issue, so just sorry.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on September 20, 2011, 09:10:36
This is compiling now, however since the solaris builds are still broken not sure the fixed openal linux 64bit natives have made it into the lwjgl nightly builds.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: mifth on September 20, 2011, 09:14:55
Quote from: kappa on September 20, 2011, 09:10:36
This is compiling now, however since the solaris builds are still broken not sure the fixed openal linux 64bit natives have made it into the lwjgl nightly builds.

That's cool!! Thank you!
Should I make this topic as (SOLVED)? I'm newbie here.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on September 20, 2011, 10:00:45
Quote from: mifth on September 20, 2011, 09:14:55
That's cool!! Thank you!
Should I make this topic as (SOLVED)? I'm newbie here.
Yeh sure, you can mark it as FIXED if you like. Usually best to wait a bit for a confirmed report or two that its actually fixed, in this case its only partially fixed (due to solaris builds still being broken and that it's still unclear if the fixed linux natives are actually part of lwjgl nightly builds due to this thread (http://jmonkeyengine.org/groups/sound/forum/topic/openal-issue-after-nightly/)). Its something that'll need to be double checked before the LWJGL 2.8 release.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: mifth on September 20, 2011, 10:09:12
Quote from: kappa on September 20, 2011, 10:00:45
Yeh sure, you can mark it as FIXED if you like. Usually best to wait a bit for a confirmed report or two that its actually fixed, in this case its only partially fixed (due to solaris builds still being broken and that it's still unclear if the fixed linux natives are actually part of lwjgl nightly builds due to this thread (http://jmonkeyengine.org/groups/sound/forum/topic/openal-issue-after-nightly/)). Its something that'll need to be double checked before the LWJGL 2.8 release.

Ok, I will wait, Thank you.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: phr00t on September 23, 2011, 12:55:48
I'm the lucky guy spamming that jMonkeyEngine forum with this error  :P

java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.initNativeStubs()V
at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
at org.lwjgl.openal.AL.init(AL.java:156)
at org.lwjgl.openal.AL.create(AL.java:138)
at org.lwjgl.openal.AL.create(AL.java:102)
at org.lwjgl.openal.AL.create(AL.java:201)
at com.jme3.audio.lwjgl.LwjglAudioRenderer.initInThread(LwjglAudioRenderer.java:160)
at com.jme3.audio.lwjgl.LwjglAudioRenderer.run(LwjglAudioRenderer.java:120)
[catch] at java.lang.Thread.run(Thread.java:662)


... is what I get. I am using the latest SVN today of jMonkeyEngine (which via r8272 updated to the latest nightly build of LWJGL for Sept. 22nd). I am running Ubuntu 11.04, 64-bit. Replacing LWJGL with the stable 2.7.1 branch gets rid of this exception. I have to disable the audio renderer (OpenAL) to run my jME3 applications on 2.8.0.

Thank you guys for looking into it...

(so no, unfortunately I do not think this bug is fixed yet...  ;) )
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: mifth on September 26, 2011, 08:04:04
I have the same issue with jMonkey and nightly builds.

Machine: kubuntu 11.04, 64bit.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on September 26, 2011, 09:57:07
The reason for the breakage is that the OpenAL-Soft people made some changes that makes it not compile on Solaris, I think they're aware of the issue, so as soon as they fix it the nightly builds should fix automatically on next build.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: Sworddragon on September 26, 2011, 21:43:11
The bug still exists in LWJGL #1352. LWJGL 2.8.0 is the first working version with the OpenJDK 7 on 64 Bit (as I said in the other thread LWJGL 2.7.1 and before have an architecture problem but OpenJDK 6 is working with it). So let's hope this bug get fixed fast.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: Endolf on October 03, 2011, 06:34:00
As of about an hour ago openal is finally building correctly on the farm again. Does lwjgl grab the latest successful build from that farm, or does someone need to do something to update the version lwjgl is using?.

Endolf
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: Matzon on October 03, 2011, 11:25:36
I need to commit them - will do so tonight.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on October 04, 2011, 19:02:41
OpenAL with the latest nightly build of LWJGL on Linux 64bit still seems to be broken, don't think the latest fixes worked.

QuoteException in thread "Thread-2" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.initNativeStubs()V
   at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
   at org.lwjgl.openal.AL.init(AL.java:156)
   at org.lwjgl.openal.AL.create(AL.java:138)
   at org.lwjgl.openal.AL.create(AL.java:102)
   at org.lwjgl.openal.AL.create(AL.java:201)

Odd thing is I downloaded the last stable LWJGL 2.7.1 and replaced libopenal.so and libopenal64.so in the latest nightly builds and I still get the above error, could it be that some change in LWJGL is breaking the above? as opposed to OpenAL.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on October 04, 2011, 19:22:49
running with -Dorg.lwjgl.util.Debug=true gives the following output

Quote[LWJGL] Xrandr extension version 1.3
[LWJGL] Using Xrandr for display mode switching
[LWJGL] XF86VidMode extension version 2.2
[LWJGL] Initial mode: 1680 x 1050 x 24 @50Hz
[LWJGL] Pixel format info: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 0, sample buffers = 0, samples = 0
[LWJGL] MemoryUtil Accessor: AccessorUnsafe
Could not locate symbol glVertexWeighthNV
[LWJGL] getPathFromClassLoader: searching for: openal
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
[LWJGL] getPathFromClassLoader: searching for: lwjgl
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
[LWJGL] getPathFromClassLoader: searching for: lwjgl
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
[LWJGL] getPathFromClassLoader: searching for: lwjgl
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
[LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
[LWJGL] Found 9 OpenAL paths
[LWJGL] Testing '/home/computer/Desktop/lwjgl-2.8.0/native/linux/libopenal64.so'
[LWJGL] Found OpenAL at '/home/computer/Desktop/lwjgl-2.8.0/native/linux/libopenal64.so'
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.initNativeStubs()V
   at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
   at org.lwjgl.openal.AL.init(AL.java:156)
   at org.lwjgl.openal.AL.create(AL.java:138)
   at org.lwjgl.openal.AL.create(AL.java:102)
   at org.lwjgl.openal.AL.create(AL.java:201)
   at org.bossattack.boing.SoundManager.initialize(SoundManager.java:118)
[LWJGL] XF86VidMode extension version 2.2

Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on October 04, 2011, 19:39:19
issue only seems to effect linux 64bit, works fine on linux 32bit.

The relevent native code seems to be inside
LWJGL > src > native > common > org_lwjgl_openal_ALC10.c

The code in there is some serious voodoo magic, not even gonna attempt to mess with it :)

SVN shows that only two changes were made to this file after the 2.7.1 release (one 2 months ago (http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC10.c?r1=3590&r2=3616), another 6 weeks ago (http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC10.c?r1=3380&r2=3590)). Seems about the time the issue was reported, so might be a possible cause. Could any of those changes be relevant to such an issue?
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: Matzon on October 04, 2011, 20:10:03
IMO, these changes are irrelevant.
I think the problem is somewhere in extal_InitializeClass, which is failing to find one or more method entries. However, I can't debug it since I don't have 64 bit readily available.
Title: Re: [BUG] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: kappa on October 04, 2011, 22:48:00
After Mazon's latest commit, OpenAL on LWJGL linux 64bit is now fixed and I can confirm that it does indeed work.
Title: Re: [FIXED] OpenAL Linux64 is not compiled (LWJGL 2.8)
Post by: princec on October 04, 2011, 23:57:21
Cool :)

Cas :)