From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: fix build for CentOS 6.6 Date: Thu, 18 Dec 2014 23:04:01 +0100 Message-ID: <3374859.ZpZN08uFzM@xps13> References: <1418885429-11891-1-git-send-email-jincheng.miao@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org, barak-7zJbC4KDGkmsTnJN9+BGXg@public.gmane.org To: Jincheng Miao Return-path: In-Reply-To: <1418885429-11891-1-git-send-email-jincheng.miao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > From CentOS 6.6, function skb_set_hash is introduced, this breaks > the previous assumption. So modify RHEL_RELEASE_VERSION from 7.0 > to 6.6 to fix build for rte_kni.ko. >=20 > Related mail from Barak Enat: > http://dpdk.org/ml/archives/dev/2014-December/010124.html >=20 > building error likes: > CC [M] /root/dpdk-source/build/build/lib/librte_eal/linuxapp/kni/e= 1000_82575.o > In file included from /root/dpdk-source/lib/librte_eal/linuxapp/kni/e= thtool/igb/e1000_osdep.h:41, > from /root/dpdk-source/lib/librte_eal/linuxapp/kni/e= thtool/igb/e1000_hw.h:31, > from /root/dpdk-source/lib/librte_eal/linuxapp/kni/e= thtool/igb/e1000_api.h:31, > from /root/dpdk-source/build/build/lib/librte_eal/li= nuxapp/kni/e1000_82575.c:38: > /root/dpdk-source/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3= 870: error: conflicting types for =E2=80=98skb_set_hash=E2=80=99 > include/linux/skbuff.h:620: note: previous definition of =E2=80=98skb= _set_hash=E2=80=99 was here > make[8]: *** [/root/dpdk-source/build/build/lib/librte_eal/linuxapp/k= ni/e1000_82575.o] Error 1 >=20 > Signed-off-by: Jincheng Miao Applied Thanks --=20 Thomas