Skip to contentSkip to conversation

lib version?

DISCUSSION Steve deRosier 3 participants 3 messages Apr 27, 2004 – Apr 28, 2004

lore
Share & tools
lore
#0 lore raw

Ok, here's my stupid question of the day:

Is there any way for a program to query the alsa-lib to determine the version number? Ie... Assuming I'm using the relase of alsa-lib-1.0.4, I'd like to query and get back something that would indicate that I'm using that release (and I don't even care so much if my program is what queries it, I just need some way to figure what version the libasound.so.2.0.0 file is).

Basically here's the senerio I've got:
We've been developing a box for quite a while using alsa, and we've gone through regular upgrades of alsa on each release. Unfortunately I'm trying to track down a rather serious problem in my client program, but I'm getting stymied due to what I suspect is a library version mismatch. I got my program hacked up and working ok to a point and then it segfaults. I replace libasound with a known 1.0.4 and it fails earlier in a different way (perhaps due to one of my hacks to get it working on whatever lib version I had in there). I'm just trying to figure out why... and knowing the library version # might get me there.

Any help would be appreciated.

Thanks,
- Steve

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

#1 lore raw
Quoted 2 lines · Steve deRosier

Is there any way for a program to query the alsa-lib to determine the version number?

The function snd_asoundlib_version() won't be available before 1.0.5. For earlier versions, you can try to test if the symbols listed in alsa-lib/src/Versions are available.

HTH
Clemens

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

#2 lore raw
Quoted 7 lines · On 28-Apr-2004 Clemens Ladisch wrote:
Quoted 2 lines · Steve deRosier

Is there any way for a program to query the alsa-lib to determine the version number?

The function snd_asoundlib_version() won't be available before 1.0.5. For earlier versions, you can try to test if the symbols listed in alsa-lib/src/Versions are available.

On the Amiga all libraries had a version (mandatory by design) and any file could contain a version string readable with the shell command "version" just embedding a string with this format:
$VER: thingname v<major>.<minor><sub>
It was a very handy feature :)

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click