Skip to contentSkip to conversation

Alsa-lib not recognized?

Qemu-devel Marcello 'R.D.O.' Magnifico 3 participants 3 messages Aug 28, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
got this while attempting to compile current CVS snapshot on a
Slackware 9.1.

Quoted 1 line

ld: cannot find -lasound

I appear having Alsa-lib installed and working. Have tried an upgrade via a 3rd party package from Linuxpackages.net, with no behavior change. Tried both alsa-lib 0.9.8 (stock from Slackware itself) and 1.0.2. Should I change something within
/i386/config.mak
in order to have the library binary recognized? Strangely enough, nothing happens at object compile time, as include files seem to be recognized properly. Obviously, I have checked both my alsa-lib packages, and they naturally have their usual /usr/lib/libasound.so.version binary and symbolic links in their proper place. No surprise if this was the same problem of the guy who seems having no math library only at link time. Is GCC 3.2.3 SO buggy or what? Anyone has a clue to get out of this impasse?

	yo,
	RDO
#1 lore raw
Quoted 5 lines · Marcello 'R.D.O.' Magnifico

Hi all,
got this while attempting to compile current CVS snapshot on a
Slackware 9.1.

Quoted 1 line

ld: cannot find -lasound

Look for ALSA-DEVEL package to install as well ;)

Thanks,
Hetz

#2 lore raw
In reply to Marcello 'R.D.O.' Magnifico
Quoted 10 lines · Marcello 'R.D.O.' Magnifico

Hi all,
got this while attempting to compile current CVS snapshot on a
Slackware 9.1.

Quoted 1 line

ld: cannot find -lasound

I appear having Alsa-lib installed and working. Have tried an upgrade via a 3rd party package from Linuxpackages.net, with no behavior change. Tried both alsa-lib 0.9.8 (stock from Slackware itself) and 1.0.2. Should I change something within
/i386/config.mak
in order to have the library binary recognized? Strangely enough, nothing happens at object compile time, as include files seem to be recognized properly. Obviously, I have checked both my alsa-lib packages, and they naturally have their usual /usr/lib/libasound.so.version binary and symbolic links in their proper place. No surprise if this was the same problem of the guy who seems having no math library only at link time. Is GCC 3.2.3 SO buggy or what? Anyone has a clue to get out of this impasse?

If you are compiling qemu-fast (too) you need static version of alse-lib (too). Most Linux distributions lack libasound.a. If this is the case you can compile it manually (its easy - see INSTALL file in alsa-lib source tarball). Or change distribution (for example to Gentoo).

But as far as I know even with static alsa-lib you will still not be able to compile qemu-fast with recent binutils / gcc / glibc because of some nasty assertion failed error in ld during final linking. I reported it to this list and to Gentoo bugzilla but nobody done anything for about half a year and I am not binutils hacker or ld scripts expert yet...

So maybe you shoud try to compile without qemu-fast?

Hope this helps,

Grzegorz Kulewski