Package: openvswitch-datapath-dkms Version: 1.4.2+git20120612-9.1~deb7u1 Severity: important
Dear Maintainer, "apt-get install openvswitch-datapath-dkms" fails with the following error in /var/lib/dkms/openvswitch/1.4.2+git20120612/build/make.log : /var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux/tunnel.c: In function 'ovs_tnl_send': /var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux/tunnel.c:1294:3: warning: passing argument 1 of 'ip_select_ident' from incompatible pointer type [enabled by default] /usr/src/linux-headers-3.2.0-4-common/include/net/ip.h:292:20: note: expected 'struct sk_buff *' but argument is of type 'struct iphdr *' /var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux/tunnel.c:1294:3: warning: passing argument 2 of 'ip_select_ident' from incompatible pointer type [enabled by default] /usr/src/linux-headers-3.2.0-4-common/include/net/ip.h:292:20: note: expected 'struct sock *' but argument is of type 'struct dst_entry *' /var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux/tunnel.c:1294:3: error: too many arguments to function 'ip_select_ident' /usr/src/linux-headers-3.2.0-4-common/include/net/ip.h:292:20: note: declared here make[4]: *** [/var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux/tunnel.o] Error 1 make[3]: *** [_module_/var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64' make: *** [default] Error 2 make: Leaving directory `/var/lib/dkms/openvswitch/1.4.2+git20120612/build/datapath/linux' This bug has already been reported in Ubuntu 12.04 : https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1379201 Here is a proposed patch by Chris J Arges <chris.j.ar...@ubuntu.com> (only patching tunnel.c is sufficient to build openvswitch-datapath-dkms) : --- datapath/tunnel.c.orig 2014-11-04 23:12:12.000000000 +0100 +++ datapath/tunnel.c 2014-11-04 23:14:26.397708868 +0100 @@ -1291,7 +1291,22 @@ iph->tos = tos; iph->ttl = ttl; iph->frag_off = frag_off; - ip_select_ident(iph, &rt_dst(rt), NULL); + + /* + * linux commits 703133de, 73f156a6 changed this function + * affected stable versions are: 3.13.11.7, 3.2.63 + */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,11) /* commit 73f156a6 */ + ip_select_ident(skb, &rt_dst(rt)); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) /* commit 703133de */ + ip_select_ident(skb, &rt_dst(rt), NULL); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,63) /* commit 73f156a6 */ + ip_select_ident(skb, &rt_dst(rt)); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,51) /* commit 703133de */ + ip_select_ident(skb, &rt_dst(rt), NULL); +#else + ip_select_ident(iph, &rt_dst(rt), NULL); +#endif skb = tnl_vport->tnl_ops->update_header(vport, mutable, &rt_dst(rt), skb); -- System Information: Debian Release: 7.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages openvswitch-datapath-dkms depends on: ii dkms 2.2.0.3-1.2 ii libc6-dev 2.13-38+deb7u6 ii make 3.81-8.2 openvswitch-datapath-dkms recommends no packages. openvswitch-datapath-dkms suggests no packages. -- no debconf information _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev