[ovs-discuss] Compile error (2.6.26-2-xen-amd64)

Martin Johansson martin.e.johansson at gmail.com
Mon Oct 19 13:51:16 UTC 2009


Hi,

Im a new user of openvswitch (started today) and I got some problem I
figured you could help me out with.

I have xen running on Ubuntu Server 9.04. When I compile (make) with kernel
2.6.26-2-xen-amd64 I get error described below.
But however when I tried with kernel 2.6.18-6-xen-amd64 and compiled,
everyting worked fine.

Any suggestion how to fix this so I can keep running on 2.6.26-2-xen-amd64 ?

This is how I got the error: (uname -r = 2.6.26-2-xen-amd64)

./configure --with-l26=/lib/modules/`uname -r`/build
make

make  all-recursive
make[1]: Entering directory `/tmp/openvswitch-0.90.6'
Making all in datapath
make[2]: Entering directory `/tmp/openvswitch-0.90.6/datapath'
Making all in linux-2.6
make[3]: Entering directory `/tmp/openvswitch-0.90.6/datapath/linux-2.6'
make -C /lib/modules/2.6.26-2-xen-amd64/build
M=/tmp/openvswitch-0.90.6/datapath/linux-2.6 modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.26-2-xen-amd64'
  CC [M]  /tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.o
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c: In function
âskb_pull_up_toâ:
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:596: warning: cast to
pointer from integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c: In function
âskb_checksum_setupâ:
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:611: error: âstruct
sk_buffâ has no member named ânhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:613: error: âstruct
sk_buffâ has no member named âhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:613: error: âstruct
sk_buffâ has no member named ânhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:613: error: âstruct
sk_buffâ has no member named ânhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:614: error: âstruct
sk_buffâ has no member named ânhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:625: error: âstruct
sk_buffâ has no member named ânhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:628: error: âstruct
sk_buffâ has no member named âhâ
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:630: error:
âCHECKSUM_HWâ undeclared (first use in this function)
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:630: error: (Each
undeclared identifier is reported only once
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:630: error: for each
function it appears in.)
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c: In function
âopenvswitch_ioctlâ:
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1435: warning: cast
from pointer to integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1435: warning: cast
from pointer to integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1435: warning: cast
from pointer to integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1435: warning: cast
from pointer to integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1446: warning: cast to
pointer from integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c: In function
âopenvswitch_readâ:
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1513: warning: cast
from pointer to integer of different size
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1553: warning:
comparison of distinct pointer types lacks a cast
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c: In function
âopenvswitch_pollâ:
/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.c:1575: warning: cast
from pointer to integer of different size
make[5]: *** [/tmp/openvswitch-0.90.6/datapath/linux-2.6/datapath.o] Error 1
make[4]: *** [_module_/tmp/openvswitch-0.90.6/datapath/linux-2.6] Error 2
make[4]: Leaving directory `/usr/src/linux-headers-2.6.26-2-xen-amd64'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/tmp/openvswitch-0.90.6/datapath/linux-2.6'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/openvswitch-0.90.6/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/openvswitch-0.90.6'
make: *** [all] Error 2

--
Martin Johansson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20091019/54512404/attachment-0002.html>


More information about the discuss mailing list