I found that libsdl-1.2.4.20020601 has a couple of problems. For one, sdl works when using the default dsp support or with alsa, but breaks on arts. Second, sdl links to the kde-2.2 version of arts instead of the kde-3.0 version because, when kdelibs-2.2.2 is installed, it is in /etc/ld.so.conf first (reversing order during compilation solves the problem). With tuxracer the problem shows following: pauldv@callisto ~ > export SDL_AUDIODRIVER=artsc pauldv@callisto ~ > tuxracer Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com) (c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com> "Tux Racer" is a trademark of Jasmin F. Patry Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See http://www.gnu.org/copyleft/gpl.html for details. mcop warning: user defined signal handler found for SIG_PIPE, overriding %%% tuxracer warning: Warning: Couldn't set 22050 Hz 16-bit audio Reason: No available audio device Segmentation fault The segfault is when closing, so not really important. It also doesn't work with mplayer with sdl:artsc audio driver.
Acknowledged and reproduced, will fix :-)
For some reason env-update has a special clause just for $LDPATH. It orders the paths in ld.so.conf alphabetically and ignores the order of the files in env.d (which are correctly ordered, kde3 before 2). I don't know why this is so, will inquire.
I asked drobbins on irc and he agreed that this behaviour should be fixed. I've submitted a bug to him about it.
That problem is now fixed, so I'm closing this.