29 Sep
2009
29 Sep
'09
11:27 a.m.
At Fri, 25 Sep 2009 19:05:50 +0200, Fortini Matteo wrote:
Hi, I'm experiencing a very strange behavior.
I'm using alsa 1.0.18 on a powerpc platform.
If I run the following simple code from the main of a .c file, it works perfectly, but if I put into a shared .so library (libaudio.so), then I link the main with -laudio -lasound, then the hwparams structure is not filled with anything, while the alsa functions don't return any error.
Do you have any clue why this could happen?
I guess it's an issue regarding the versioned symbols. Your library (libaudio.so) should be also linked with libasound.so so that the linker can pick up the proper versioned symbols.
Takashi