From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] kni: fix compile errors on Oracle Linux6.4 and RHEL6.5 Date: Mon, 23 Jun 2014 22:57:51 +0200 Message-ID: <1779532.Cv7FcTlULd@xps13> References: <1402494218-9203-1-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Helin Zhang Return-path: In-Reply-To: <1402494218-9203-1-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@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" > The compile errors are copied as follows. The fixes came from > Linux drivers of ixgbe-3.21.2 and igb-5.1.2 with modifications. > The idea is to use self-defined functions no matter they have > already been defined somewhere or not. > > * Oracle Linux6.4 > lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h:3111: > error: redefinition of 'ether_addr_equal' > include/linux/etherdevice.h:180: note: previous definition > of 'ether_addr_equal' was here > * RHEL6.5 > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3597: > error: redefinition of 'mmd_eee_cap_to_ethtool_sup_t' > include/linux/mdio.h:387: note: previous definition of > 'mmd_eee_cap_to_ethtool_sup_t' was here > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3625: > error: redefinition of 'mmd_eee_adv_to_ethtool_adv_t' > include/linux/mdio.h:415: note: previous definition of > 'mmd_eee_adv_to_ethtool_adv_t' was here > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3653: > error: redefinition of 'ethtool_adv_to_mmd_eee_adv_t' > include/linux/mdio.h:443: note: previous definition of > 'ethtool_adv_to_mmd_eee_adv_t' was here > > Signed-off-by: HELIN ZHANG > Acked-by: Cunming Liang > Tested-by: Waterman Cao Applied for version 1.7.0. Thanks -- Thomas