Re: compile error

Hollis Blanchard
2008-01-09T17:03:30Z

On Wed, 2008-01-09 at 10:39 +0200, Avi Kivity wrote:
> Zhao, Yunfeng wrote:
> > Today's tip fails to compile with following error messages:
> >
>
> [...]
>
> Fixed now. Hollis, I had to revert your asm symlink patch to fix this,
> so we need to find an alternative solution to that problem.

qemu ends up including <asm/byteorder.h> from /usr.

libkvm, on the other hand, ends up including <asm/kvm.h> from the target
kernel tree.

Since the two components are meaning completely different things when
referring to the "asm" directory, we should use different include paths.
The best long-term solution would probably be to remove "-I
$(KERNELDIR)/include" from libkvm, and instead build against a copy of
the KVM headers (maybe copied over with that "make sync" target?).

Avi, I think you're responsible for all the build directory munging we
do currently; what do you think about that?

--
Hollis Blanchard
IBM Linux Technology Center

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.