From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 985C55A74 for ; Thu, 5 Mar 2015 15:03:19 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 05 Mar 2015 06:03:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,347,1422950400"; d="scan'208";a="675588776" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2015 06:03:17 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 5 Mar 2015 22:03:16 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.192]) by shsmsx102.ccr.corp.intel.com ([169.254.2.62]) with mapi id 14.03.0195.001; Thu, 5 Mar 2015 22:03:16 +0800 From: "Qiu, Michael" To: David Marchand Thread-Topic: =?Windows-1252?Q?[dpdk-dev]_[PATCH_3/3_v2]_librte=5Feal/common:_Fix_redec?= =?Windows-1252?Q?laration_of_enumerator_=91REG=5FEAX=92?= Thread-Index: AQHQV0vgkuRRiHveXUOL5io868XXcQ== Date: Thu, 5 Mar 2015 14:03:16 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286CEEF6B@SHSMSX101.ccr.corp.intel.com> References: <1425561339-13300-4-git-send-email-michael.qiu@intel.com> <1425563425-13647-1-git-send-email-michael.qiu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] =?windows-1252?q?=5BPATCH_3/3_v2=5D_librte=5Feal/commo?= =?windows-1252?q?n=3A_Fix_redeclaration_of_enumerator_=91REG=5FEAX=92?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 14:03:20 -0000 On 3/5/2015 9:54 PM, David Marchand wrote:=0A= > On Thu, Mar 5, 2015 at 2:50 PM, Michael Qiu > wrote:=0A= >=0A= > include/rte_cpuflags.h:154:2: error: redeclaration of enumerator=0A= > =91REG_EAX=92=0A= > In file included from /usr/include/signal.h:358:0,=0A= > from /usr/include/sys/wait.h:30,=0A= > from /root/dpdk/app/test/test_mp_secondary.c:50:=0A= > /usr/include/sys/ucontext.h:180:3: note: previous definition of=0A= > =91REG_EAX=92 was here=0A= >=0A= > In i686, from REG_EAX to REG_EDX are all defined in=0A= > /usr/include/sys/ucontext.h=0A= >=0A= > Rename to CPU_REG_EAX to avoid this issue.=0A= >=0A= > Signed-off-by: Michael Qou >=0A= >=0A= >=0A= > NAK.=0A= >=0A= =0A= I have answered in you last thread, please check the mail.=0A= =0A= Yes, but for some reason, it was not include, see /usr/include/signal.h:358= =0A= =0A= # include =0A= # if defined __USE_XOPEN || defined __USE_XOPEN2K8=0A= /* This will define `ucontext_t' and `mcontext_t'. */=0A= # include =0A= # endif=0A= =0A= So only if __USE_XOPEN or __USE_XOPEN2K8 been defined will include =0A= =0A= =0A= =0A= Why NAK?=0A= =0A= Thanks,=0A= Michael=0A= > You did not answer my question.=0A= > This mail title is broken anyway.=0A= >=0A= >=0A= > -- =0A= > David Marchand=0A= =0A=