Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272192 - games-fps/openarena-0.8.1 looks for nonexistant libopenal.so.0
Summary: games-fps/openarena-0.8.1 looks for nonexistant libopenal.so.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 22:45 UTC by Eric Smith
Modified: 2009-06-03 06:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Smith 2009-06-01 22:45:08 UTC
I have the openal use flag set for openarena and openal installed with the alsa use flag, but when I start openarena I get no sound and this error:

------ Initializing Sound ------                     
Loading "libopenal.so.0"...                          
Failed to load library: "libopenal.so.0".            
SDL_Init( SDL_INIT_AUDIO )... OK                     
SDL audio driver is "(UNKNOWN)".                     
SDL_OpenAudio() failed: No available audio device    
Sound initialization failed.     



I have reinstalled openal, but the only files I have are:

ls -l /usr/lib64/libopenal.so*
lrwxrwxrwx 1 root root     14 Jun  1 18:41 /usr/lib64/libopenal.so -> libopenal.so.1
lrwxrwxrwx 1 root root     20 Jun  1 18:41 /usr/lib64/libopenal.so.1 -> libopenal.so.1.7.411
-rwxr-xr-x 1 root root 171968 Jun  1 18:41 /usr/lib64/libopenal.so.1.7.411


I must manually create a symlink (ln -s /usr/lib64/libopenal.so.1.7.411 /usr/lib64/libopenal.so.0), and then sound works fine.  I'm not sure if the problem is openarena not looking for the correct symlink or openal not creating the correct symlinks.
Comment 1 emerald 2009-06-02 12:55:13 UTC
For me openarena does not depend at libopenal.so* at all, so you probably have 
your error in SDL or somewhere else, which should be fixed via revdep-rebuild
Comment 2 Eric Smith 2009-06-02 14:19:10 UTC
(In reply to comment #1)
> For me openarena does not depend at libopenal.so* at all, so you probably have 
> your error in SDL or somewhere else, which should be fixed via revdep-rebuild
> 

Openarena can use either openal or sdl for sound with openal being the preferable option.  I currently have built SDL without the alsa flag which is why you see the SDL error, but this shouldn't matter if openal was working since openal will be used instead.

I found another fix to the problem without making the symlink is to simply set the in-game variable s_alDriver to be "libopenal.so.1" instead of "libopenal.so.0".
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2009-06-03 06:34:54 UTC
I changed the default to libopenal.so so there's more of a chance to work out of the box.