From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lh7XU-0007Oj-FC for qemu-devel@nongnu.org; Tue, 10 Mar 2009 15:22:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lh7XT-0007OX-1q for qemu-devel@nongnu.org; Tue, 10 Mar 2009 15:22:55 -0400 Received: from [199.232.76.173] (port=49106 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh7XS-0007OU-Sb for qemu-devel@nongnu.org; Tue, 10 Mar 2009 15:22:54 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:54716 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lh7XS-0003Im-Ge for qemu-devel@nongnu.org; Tue, 10 Mar 2009 15:22:54 -0400 Date: Tue, 10 Mar 2009 22:22:49 +0300 (MSK) From: malc Subject: Re: [Qemu-devel] Compiling qemu with nas installed In-Reply-To: Message-ID: References: <200903082321.28196.hasso@estpak.ee> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On Tue, 10 Mar 2009, Blue Swirl wrote: > On 3/8/09, Hasso Tepper wrote: > > If user has packages installed in "nonstandard" paths (like pkgsrc package > > system used by NetBSD and DragonFly - /usr/pkg), CPPFLAGS and LDFLAGS are > > used normally by users to help configure scripts etc to find headers and > > libraries. > > > > $ export CPPFLAGS=-I/usr/pkg/include > > $ export LDFLAGS=-L/usr/pkg/lib > > > > This causes the problem if user has the nas software package installed: > > > > CC wm8750.o > > /tmp/q/wm8750.c:24: error: expected specifier-qualifier-list > > before 'QEMUSoundCard' > > /tmp/q/hw/wm8750.c: In function 'wm8750_in_load': > > /tmp/q/hw/wm8750.c:59: error: 'struct wm8750_s' has no member > > named 'idx_in' > > /tmp/q/hw/wm8750.c:59: error: 'struct wm8750_s' has no member > > named 'req_in' > > etc etc etc > > > > The problem comes from fact that the nas package has also audio/audio.h > > file and it's included in wm8750.c if user or package system defines > > CPPFLAGS which happen to include the path to the audio/audio.h from nas. > > > > I don't how to fix it correctly, but I think that local paths should be > > always before system or user specified ones. > > Rename audio/audio.h to audio/qemu_audio.h? Can be done, if there's no other option. -- mailto:av1474@comtv.ru