[Openal] Null Pointer crash in Linux openal

Ludwig Nussel ludwig.nussel at suse.de
Tue Oct 31 03:21:22 PST 2006


Sven Panne wrote:
> One minor point: The default dynamic OpenAL library ioquake3 tries to
> load is "libopenal.so.0", but the trunk has a major version of 1
> nowadays. For ioquake3's purposes these are compatible, and in general I
> propose to drop the major version number from the filename when
> dlopening OpenAL.

No, that would be wrong. You always use the SONAME exactly because
an SONAME change means the library changed in an incompatible way.
The libopenal.so link is only used by the linker at compile time.
Therefore it's not availabe on a typical non-development
installation.

> I know that the exact name can be changed via a
> configuration file, but running out-of-the-box with a recent OpenAL
> version would be nice.

In this specific case ioquake3 can try libopenal.so.1 and fall back
to libopenal.so.0. Bad luck for versions that do not dlopen
libopenal but link directly, they will only work with one version of
openal.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/





More information about the Openal mailing list