Click to See Complete Forum and Search --> : Prevent Quake3 from crashing on sound init with SBLive & newer kernels


SubPar
11-13-2001, 10:44 PM
Here's something I just posted in the games forum. Hopefully others will find it as useful as I did.

---------------------

This fix (which worked for me) comes from the emu10k1-devel mailing list:

1. Download this file:
http://www.cs.unc.edu/~chenda/Other/memset.c

2. Compile it:
gcc -shared -o memset.so memset.c

3. Move memset.so to /usr/local/games/quake3

4. Replace /usr/local/bin/quake3 with this script:

#!/bin/sh
# Needed to make symlinks/shortcuts work.
# Run Quake III with some default arguments

cd "/usr/local/games/quake3"

LD_PRELOAD=./memset.so ./quake3.x86 $*

exit 0

Basically, it's a glibc bug in the memset routine. memset.so replaces the memset routine for quake3, allowing it to work with newer emu10k1 drivers.