public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Milliron <antechrist@io.com>
To: kvm@vger.kernel.org
Subject: Spice install problem
Date: Mon, 24 May 2010 15:55:43 -0500	[thread overview]
Message-ID: <4BFAE7CF.3020806@io.com> (raw)

I originally sent this question to the spice-devel list but they told me
I was better off to send it here...  So here goes. I'm
running into some problems installing Spice .4 on my CentOS 5.5.  I was
following the instructions here:
http://www.spice-space.org/docs/spice_user_manual.pdf

I've compiled and installed all the dependencies and have the spice
client installed also, but ran into problems with the vdesktop.
Specifically this portion of the instructions for my older kernel:

> In case of an older kernel (version <  2.6.30)
> Get kernel sources using the following git repository:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.30.y.git
> cd <spice_root>/vdesktop/kernel 
>      ./configure 
>      ln -s <linux-2.6.30 source dir> linux-2.6    
>      make sync 
>      make 



I got the kernel source here:
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2

At which point I ran into a problem because I didn't have the source for
the installed kernel 2.6.18-194.el5.  I installed the devel-kernel
from here:
http://mirror.web-ster.com/centos/5.5/os/x86_64/CentOS/kernel-devel-2.6.18-194.el5.x86_64.rpm.


Now when I run "make" it gives a number of errors:

[root@localhost kernel]# make
make -C /lib/modules/2.6.18-194.el5/build M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude \
                 -Iarch/x86/include -I`pwd`/include-compat -I`pwd`/x86 \
                -include include/linux/autoconf.h \
                -include `pwd`/x86/external-module-compat.h" \
                "$@"
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
  LD      /usr/local/src/spice_root/vdesktop/kernel/x86/built-in.o
  CC [M]  /usr/local/src/spice_root/vdesktop/kernel/x86/svm.o
In file included from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:12:
error: redefinition of typedef ‘phys_addr_t’
include/asm/types.h:50: error: previous declaration of ‘phys_addr_t’
was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
                 from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:602:
error: static declaration of ‘get_user_pages_fast’ follows
non-static declaration
include/linux/mm.h:856: error: previous declaration of
‘get_user_pages_fast’ was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
                 from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:710:
error: conflicting types for ‘smp_call_function_many’
include/asm/smp.h:54: error: previous declaration of
‘smp_call_function_many’ was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
                 from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:1009:
error: redefinition of ‘hlist_del_init_rcu’
include/linux/list.h:805: error: previous definition of
‘hlist_del_init_rcu’ was here
make[3]: *** [/usr/local/src/spice_root/vdesktop/kernel/x86/svm.o] Error 1
make[2]: *** [/usr/local/src/spice_root/vdesktop/kernel/x86] Error 2
make[1]: *** [_module_/usr/local/src/spice_root/vdesktop/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
make: *** [all] Error 2

Am I using the wrong kernel source?  If so, which source do I need to
use?  Or is this some scripting problem?

Thanks
Brian




             reply	other threads:[~2010-05-24 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 20:55 Brian Milliron [this message]
2010-05-24 22:24 ` Spice install problem Anthony Liguori
2010-05-24 23:15   ` Brian Milliron

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=4BFAE7CF.3020806@io.com \
    --to=antechrist@io.com \
    --cc=brianm@io.com \
    --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