public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Bruin <bruinjm@xs4all.nl>
To: unlisted-recipients:; (no To-header on input)
Cc: kvm@vger.kernel.org
Subject: Re: kvm-userspace compile problem
Date: Fri, 13 Feb 2009 21:19:21 +0100	[thread overview]
Message-ID: <4995D5C9.3020806@xs4all.nl> (raw)
In-Reply-To: <5d6222a80902121454j73fb484bnd2b7a94dc6c6e68b@mail.gmail.com>

Glauber Costa wrote:
>> e$ ./configure --prefix=/usr  --with-patched-kernel
>> Install prefix    /usr
>> BIOS directory    /usr/share/qemu
>> binary directory  /usr/bin
>> Manual directory  /usr/share/man
>> ELF interp prefix /usr/gnemul/qemu-%M
>> Source path       /home/hns/kvm-userspace/qemu
>> C compiler        gcc
>> Host C compiler   gcc
>> ARCH_CFLAGS       -m64
>> make              make
>> install           install
>> host CPU          x86_64
>> host big endian   no
>> target list       x86_64-softmmu
>> gprof enabled     no
>> sparse enabled    no
>> profiler          no
>> static build      no
>> -Werror enabled   no
>> SDL support       yes
>> SDL static link   no
>> curses support    yes
>> mingw32 support   no
>> Audio drivers     oss
>> Extra audio cards ac97 es1370 sb16
>> Mixer emulation   no
>> VNC TLS support   yes
>>    TLS CFLAGS
>>    TLS LIBS      -lgnutls
>> kqemu support     no
>> kvm support       no - (#error Missing KVM capability
>> KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
> 
> try passing --kerneldir=<path_to_kvm_git>

That did not help, but after I changed this:

~/kvm-userspace$ diff configure.old configure
95,96c95,96
< #set kenel directory
< libkvm_kerneldir=$(readlink -f kernel)
---
 > #set kernel directory
 > libkvm_kerneldir=$(readlink -f $kerneldir)

the error was gone. configure used kvm.h in /usr/include/linux/ (distro 
suplied 2.6.27 headers) instead of the git version.

My troubles aren't totaly gone however:

make -C libkvm
make[1]: Entering directory `/home/hns/kvm-userspace/libkvm'
gcc -m64 -D__x86_64__ -MMD -MF ./.libkvm.d -g -fomit-frame-pointer -Wall 
  -fno-stack-protector   -
I /usr/src/linux-2.6/include   -c -o libkvm.o libkvm.c
In file included from /usr/include/bits/fcntl.h:24,
                  from /usr/include/fcntl.h:34,
                  from libkvm.c:30:
/usr/include/sys/types.h:46: error: conflicting types for 'loff_t'
/usr/src/linux-2.6/include/linux/types.h:57: error: previous declaration 
of 'loff_t' was here
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/src/linux-2.6/include/linux/types.h:19: error: previous declaration 
of 'dev_t' was here
In file included from /usr/include/sys/types.h:133,
                  from /usr/include/bits/fcntl.h:24,
                  from /usr/include/fcntl.h:34,
                  from libkvm.c:30:
/usr/include/time.h:105: error: conflicting types for 'timer_t'
/usr/src/linux-2.6/include/linux/types.h:28: error: previous declaration 
of 'timer_t' was here
In file included from /usr/include/bits/fcntl.h:24,
                  from /usr/include/fcntl.h:34,
                  from libkvm.c:30:
/usr/include/sys/types.h:198: error: conflicting types for 'int64_t'
/usr/src/linux-2.6/include/linux/types.h:125: error: previous 
declaration of 'int64_t' was here
/usr/include/sys/types.h:204: error: conflicting types for 'u_int64_t'
/usr/src/linux-2.6/include/linux/types.h:124: error: previous 
declaration of 'u_int64_t' was here
In file included from /usr/include/sys/types.h:220,
                  from /usr/include/bits/fcntl.h:24,
                  from /usr/include/fcntl.h:34,
                  from libkvm.c:30:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/src/linux-2.6/include/linux/types.h:18: error: previous declaration 
of 'fd_set' was here
In file included from /usr/include/bits/fcntl.h:24,
                  from /usr/include/fcntl.h:34,
                  from libkvm.c:30:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/src/linux-2.6/include/linux/types.h:146: error: previous 
declaration of 'blkcnt_t' was here
In file included from /usr/include/inttypes.h:28,
                  from libkvm.c:37:
/usr/include/stdint.h:56: error: conflicting types for 'uint64_t'
/usr/src/linux-2.6/include/linux/types.h:123: error: previous 
declaration of 'uint64_t' was here
make[1]: *** [libkvm.o] Error 1
make[1]: Leaving directory `/home/hns/kvm-userspace/libkvm'
make: *** [libkvm] Error 2




-- 
Hans





  reply	other threads:[~2009-02-13 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 22:03 kvm-userspace compile problem Hans de Bruin
2009-02-12 22:54 ` Glauber Costa
2009-02-13 20:19   ` Hans de Bruin [this message]
2009-02-14 21:42     ` Hans de Bruin

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=4995D5C9.3020806@xs4all.nl \
    --to=bruinjm@xs4all.nl \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox