From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lglyd-0002Qq-MY for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:21:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lglyc-0002PS-Gv for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:21:30 -0400 Received: from [199.232.76.173] (port=49956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lglyb-0002Ov-Q9 for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:21:30 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2952) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lglyb-0000NL-Ax for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:21:29 -0400 Received: from smtp.zone.ee ([195.222.29.84]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LgQRf-0004vo-HW for qemu-devel@nongnu.org; Sun, 08 Mar 2009 17:22:03 -0400 Received: from [10.9.0.21] (wall-fa1.estpak.ee [194.126.115.33]) by smtp.zone.ee (Postfix) with ESMTP id 2580611E8015 for ; Sun, 8 Mar 2009 23:21:29 +0200 (EET) From: Hasso Tepper Date: Sun, 8 Mar 2009 23:21:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903082321.28196.hasso@estpak.ee> Subject: [Qemu-devel] Compiling qemu with nas installed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. regards, -- Hasso Tepper