Skip to contentSkip to conversation

aoss: problems with using functions in dlfcn.h

DISCUSSION James Courtier-Dutton 2 participants 2 messages Jun 10, 2004 – Jun 11, 2004

lore
Share & tools
lore
#0 lore raw

I have an application (xine) that opens oss output from a plugin.
This plugin is loaded into xine using dlopen(), dlsym() and friends.
When, during runtime, dlsym() resolves the open() function, it bypasses aoss, and links directly to open() instead of linking to the aoss's version of open().

Is there any way to fix this problem with dlopen and friends.

Although we don't actually need aoss to work with xine, because xine has good native alsa support, it just highlights a possible problem that other apps might have.

James

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.

Quoted 1 line

From Windows to Linux, servers to mobile, InstallShield X is the

one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504

#1 lore raw
Quoted 11 lines · James Courtier-Dutton

I have an application (xine) that opens oss output from a plugin. This plugin is loaded into xine using dlopen(), dlsym() and friends. When, during runtime, dlsym() resolves the open() function, it bypasses aoss, and links directly to open() instead of linking to the aoss's version of open().

Is there any way to fix this problem with dlopen and friends.

Although we don't actually need aoss to work with xine, because xine has good native alsa support, it just highlights a possible problem that other apps might have.

I don't know a working solution, because LD_PRELOAD works only for the main code not dlopen one.

Perhaps, it's time to persuade all developers using OSS API to use my OSS redirector from the alsa-oss package. See alsa-oss/oss-redir/README .

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.

Quoted 1 line

From Windows to Linux, servers to mobile, InstallShield X is the

one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504