[Spice-devel] Spice install problem

Brian Milliron antechrist at io.com
Tue May 25 14:34:17 PDT 2010


I posted this question to the kvm list as had been suggested.  I was
told that is not the right list and vdesktop uses an outdated version of
kvm and something about user code and kernel code having been forked.
It doesn't make a whole lot of sense to me, but I'm still looking for
answers to my problem.  I've included the original question below:


Brian


I apologize if this is not the right place for this question, but 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 at 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





More information about the Spice-devel mailing list