qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Compiling qemu with nas installed
@ 2009-03-08 21:21 Hasso Tepper
  2009-03-10 16:22 ` Blue Swirl
  0 siblings, 1 reply; 4+ messages in thread
From: Hasso Tepper @ 2009-03-08 21:21 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Compiling qemu with nas installed
  2009-03-08 21:21 [Qemu-devel] Compiling qemu with nas installed Hasso Tepper
@ 2009-03-10 16:22 ` Blue Swirl
  2009-03-10 18:22   ` Anthony Liguori
  2009-03-10 19:22   ` malc
  0 siblings, 2 replies; 4+ messages in thread
From: Blue Swirl @ 2009-03-10 16:22 UTC (permalink / raw)
  To: qemu-devel, malc

On 3/8/09, Hasso Tepper <hasso@estpak.ee> 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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Compiling qemu with nas installed
  2009-03-10 16:22 ` Blue Swirl
@ 2009-03-10 18:22   ` Anthony Liguori
  2009-03-10 19:22   ` malc
  1 sibling, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2009-03-10 18:22 UTC (permalink / raw)
  To: qemu-devel

Blue Swirl wrote:
> On 3/8/09, Hasso Tepper <hasso@estpak.ee> 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:
>>     

You should use --extra-cflags and --extra-ldflags.  If we're not already 
making these come before our -I$(srcdir), then we should change that.

Basically, we need to ensure that any of our headers have include 
priority over system headers in the search path.

Regards,

Anthony Liguori

>>   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?
>
>
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Compiling qemu with nas installed
  2009-03-10 16:22 ` Blue Swirl
  2009-03-10 18:22   ` Anthony Liguori
@ 2009-03-10 19:22   ` malc
  1 sibling, 0 replies; 4+ messages in thread
From: malc @ 2009-03-10 19:22 UTC (permalink / raw)
  To: Blue Swirl; +Cc: qemu-devel

On Tue, 10 Mar 2009, Blue Swirl wrote:

> On 3/8/09, Hasso Tepper <hasso@estpak.ee> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-10 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 21:21 [Qemu-devel] Compiling qemu with nas installed Hasso Tepper
2009-03-10 16:22 ` Blue Swirl
2009-03-10 18:22   ` Anthony Liguori
2009-03-10 19:22   ` malc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).