Dear all,

Could anyone teach me to build RPM package for Open vSwitch 1.1.0pre2 in Citrix 
XenServer 5.6.1?
I tried to build it according to INSTALL.XenServer, but RPM build error has 
occured.
Please see Build Error Log below.

* Environment Variable
---------------------------------------------------------------------
VERSION=1.1.0pre2
XENKERNEL=2.6.32.12-0.7.1.xs5.6.100.307.170586xen
---------------------------------------------------------------------

* Build Error Log
---------------------------------------------------------------------
/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath/linux-2.6/datapath.c:2165: 
error: too few arguments to function 'csum_and_copy_to_user'
/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath/linux-2.6/datapath.c:2194: 
error: too few arguments to function 'csum_and_copy_to_user'
make[5]: *** 
[/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath/linux-2.6/datapath.o] 
Error 1
make[4]: *** 
[_module_/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath/linux-2.6] Error 2
make[4]: Leaving directory 
`/usr/src/kernels/2.6.32.12-0.7.1.xs5.6.100.307.170586xen-i686'
make[3]: *** [default] Error 2
make[3]: Leaving directory 
`/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath/linux-2.6'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/usr/src/redhat/BUILD/openvswitch-1.1.0pre2/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/openvswitch-1.1.0pre2'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.63131 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.63131 (%build)
---------------------------------------------------------------------

* Call csum_and_copy_to_user() in datapath.c
---------------------------------------------------------------------
                *csump = csum_and_copy_to_user(skb->data + offset, to, copy,
                                               *csump, &err);

                        csum2 = csum_and_copy_to_user(vaddr +
                                                        frag->page_offset +
                                                        offset - start,
                                                      to, copy, 0, &err);
---------------------------------------------------------------------

I think that, the number of the above arguments is different from the number of 
arguments for csum_and_copy_to_user() in checksum_32.h 
(/src/kernels/2.6.32.12-0.7.1.xs5.6.100.307.170586xen-i686/arch/x86/include/asm/).
 My understanding is correct?

Regards,
Yagishita

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to