Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C1Bu3-0002aS-Jv for qemu-devel@nongnu.org; Sat, 28 Aug 2004 18:42:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C1Bu2-0002Zq-EL for qemu-devel@nongnu.org; Sat, 28 Aug 2004 18:42:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C1Bu2-0002Zn-Bp for qemu-devel@nongnu.org; Sat, 28 Aug 2004 18:42:30 -0400 Received: from [217.79.151.115] (helo=alpha.polcom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C1BpD-0004zj-VH for qemu-devel@nongnu.org; Sat, 28 Aug 2004 18:37:32 -0400 Date: Sun, 29 Aug 2004 00:37:23 +0200 (CEST) From: Grzegorz Kulewski Subject: Re: [Qemu-devel] Alsa-lib not recognized? In-Reply-To: <20040828211539.GA11054@fortuna.starfleet.cbn> Message-ID: References: <20040828211539.GA11054@fortuna.starfleet.cbn> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Marcello 'R.D.O.' Magnifico" Cc: qemu-devel@nongnu.org On Sat, 28 Aug 2004, Marcello 'R.D.O.' Magnifico wrote: > Hi all, > got this while attempting to compile current CVS snapshot on a > Slackware 9.1. > >> 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