Re: Alsa not working when linked to a library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux