All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hasso Tepper <hasso@estpak.ee>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Compiling qemu with nas installed
Date: Sun, 8 Mar 2009 23:21:28 +0200	[thread overview]
Message-ID: <200903082321.28196.hasso@estpak.ee> (raw)

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

             reply	other threads:[~2009-03-09 20:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-08 21:21 Hasso Tepper [this message]
2009-03-10 16:22 ` [Qemu-devel] Compiling qemu with nas installed Blue Swirl
2009-03-10 18:22   ` Anthony Liguori
2009-03-10 19:22   ` malc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200903082321.28196.hasso@estpak.ee \
    --to=hasso@estpak.ee \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.