Posted August 31, 2025
After recently upgrading to debian trixie, I had a problem with the audio not working.
I heard that patching the sound libraries can fix it, but I struggled to find instructions on how to do thise, since the command mentioned in the console error log isn't present in the latest debian. Here's what I did to fix it:
Download an execstack package from below:
snapshot.debian.org/archive/debian/20200413T201859Z/pool/main/p/prelink/
Go into the wildermyth/game/lib folder
You'll see a file called fmod-jni.jar
Extract the archive, which will create a folder (fmod-jni)
Enter that folder, then go into fmod_runtimes
You'll see three .so files:
libfmod.so
libfmodstudio.so
libfmodJNI.so
I found I needed root permissions to run the command but that may not be necessary, but I did:
su root
sudo su
and then ran execstack -c on each of those:
execstack -c libfmod.so
execstack -c libfmodstudio.so
execstack -c libfmodJNI.so
I then opened the fmod-jni.jar in the wildermyth/game/lib folder with an archive explorer and copied the patched versions of those libraries back into the fmod-jni.jar file (which is just a zip with the extension renamed to .jar - so you can probably just recreate the file.
After that, I made sure the temporary copy of the libfmod.so files were not left behind to conflict, so I deleted the /tmp/jnigen folder
I suspect the developers should probably do this on future packagings of linux versions.
I heard that patching the sound libraries can fix it, but I struggled to find instructions on how to do thise, since the command mentioned in the console error log isn't present in the latest debian. Here's what I did to fix it:
Download an execstack package from below:
snapshot.debian.org/archive/debian/20200413T201859Z/pool/main/p/prelink/
Go into the wildermyth/game/lib folder
You'll see a file called fmod-jni.jar
Extract the archive, which will create a folder (fmod-jni)
Enter that folder, then go into fmod_runtimes
You'll see three .so files:
libfmod.so
libfmodstudio.so
libfmodJNI.so
I found I needed root permissions to run the command but that may not be necessary, but I did:
su root
sudo su
and then ran execstack -c on each of those:
execstack -c libfmod.so
execstack -c libfmodstudio.so
execstack -c libfmodJNI.so
I then opened the fmod-jni.jar in the wildermyth/game/lib folder with an archive explorer and copied the patched versions of those libraries back into the fmod-jni.jar file (which is just a zip with the extension renamed to .jar - so you can probably just recreate the file.
After that, I made sure the temporary copy of the libfmod.so files were not left behind to conflict, so I deleted the /tmp/jnigen folder
I suspect the developers should probably do this on future packagings of linux versions.