Bug 8321

Summary: /usr/lib/libasound.so is missing
Product: Mageia Reporter: Vladimir Gurevich <mageia>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: libalsa2-1.0.26-4.mga3 CVE:
Status comment:

Description Vladimir Gurevich 2012-12-07 09:43:00 CET
Description of problem:

The rpm contains /usr/lib/libasound.so.2 and /usr/lib/libasound.so.2.0.0, but not /usr/lib/ libasound.so, that should be just a symlink to libasound.so.2.0.0

As a result, when building software with -m32 -lasound (on 64-bit platforms at least), we get an error, since the linker is looking for libasound.so file.

How reproducible:

Always. I tried to build nyquist, but any program should do as ling as you use -m32 and -lasound

The fix is trivial.
Comment 1 Thierry Vignaud 2012-12-07 12:59:36 CET
The "urpmf libasound.so" command is your friend:
$ urpmf libasound.so                                                          
lib64alsa2-devel:/usr/lib64/libasound.so
lib64alsa2:/usr/lib64/libasound.so.2
lib64alsa2:/usr/lib64/libasound.so.2.0.0
libalsa2:/usr/lib/libasound.so.2
libalsa2:/usr/lib/libasound.so.2.0.0
libalsa2-devel:/usr/lib/libasound.so

For the record, programs are linked to libfoobar.so.MAJOR
libfoobar.so is only needed when compiling.
When compiling, you need the devel headers, thus this is why libfoobar.so is included in devel package (such as lib(64)foobar-devel).

Here you need to install libalsa2-devel

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => INVALID