Hi, Any one help in this regard ?
Thanks & Regards Ashish On Thu, Sep 26, 2013 at 3:13 PM, ashish yadav <[email protected]>wrote: > Hi, > > I was trying to compile/Build OVS1.4.3 ( for openvswitch_mod ) with > CentOS6.4(2.6.32-358.18.1.el6.x86_64) . > Its shows lot of redefinition error. > > Small part of log is: > > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-internal_dev.c:20: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/skbuff.h:243: > error: redefinition of 'skb_reset_mac_len' > include/linux/skbuff.h:1285: note: previous definition of > 'skb_reset_mac_len' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/datapath.c:24: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/brcompat.c:32: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/brcompat.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/actions.c:29: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/checksum.c:27: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/tunnel.c:22: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/checksum.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vlan.c:21: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/actions.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_notify.c:22: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport.c:22: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_notify.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_sysfs_dp.c:38: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_sysfs_if.c:27: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/flow.c:20: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_sysfs_dp.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-gre.c:25: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/dp_sysfs_if.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-internal_dev.c:20: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/datapath.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vlan.o] > Error 1 > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vport.h:28, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../tunnel.h:26, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-capwap.c:26: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > In file included from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vlan.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../datapath.h:34, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vport.h:28, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/../vport-generic.h:22, > from > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-generic.c:21: > /root/rpmbuild/BUILD/openvswitch-1.4.3/_default/../datapath/linux/compat/include/linux/if_vlan.h:59: > error: redefinition of 'vlan_set_encap_proto' > include/linux/if_vlan.h:385: note: previous definition of > 'vlan_set_encap_proto' was here > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/flow.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-generic.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-capwap.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-gre.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/tunnel.o] > Error 1 > make[2]: *** > [/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux/vport-internal_dev.o] > Error 1 > make[1]: *** > [_module_/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux] > Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.18.1.el6.x86_64' > make: *** [default] Error 2 > make: Leaving directory > `/root/rpmbuild/BUILD/openvswitch-1.4.3/_default/datapath/linux' > error: Bad exit status from /var/tmp/rpm-tmp.a1RmsH (%build) > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.a1RmsH (%build) > > > *Could any one please suggest/help me patch for same ?* > > *NOTE:* > *Changes made in openvswitch-1.4.3 source code by me:* > a. datapath/linux/compat/include/linux/skbuff.h > line 241, change the kernel version from 3.2.0 to 2.6.32 > -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) > +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) > > b. add CPFLAGS in rhel/openvswitch-kmod-rhel6.spec , ie: > -make %{_smp_mflags} > +make /usr/include/krb5/ %{_smp_mflags} > > > > Thanks & Regards > Ashish > > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
