From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by dpdk.org (Postfix) with ESMTP id 99D335A74 for ; Thu, 5 Mar 2015 15:39:33 +0100 (CET) Received: by wesq59 with SMTP id q59so53401451wes.1 for ; Thu, 05 Mar 2015 06:39:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=DGiJUAA5ZoZGsbXAWk9GyjY04D9jaL8HNSLS1Fh9PSw=; b=GYwcF7aS81xgzkuv8+AXRCpQ0G6jyd8chvrtf1yZ8+VUtNwQNs5LF002cW4v/JIoFk /Gb+6d9oz+8C8JEmlNZs9W7FP+D4PKIP+OtzfYsxmdP0kndGBgSmisXqax33rwQOSRbR r4jjEIzmkE6lVJYtCbvHXxvRyqJikC8IL+d4UzSw6BZqHNTFLeSvwj/Bwjk90rtcOFso PgIdDF0QHqFhrBhqaATg2F4A7GDmnZfeG5HHOATAegjby+Y702Pdglx8gg+lHCB4Ec+2 /DMXg3Smu9uHTus9/awThXySV3RVzTHi+i6JtNlAM2pB1dC+0UvtZnZ7koMdLBk9c0ec xEMQ== X-Gm-Message-State: ALoCoQnndcEVrBq6v+qlbUH9ufnqBs4nSv/Hq124JQ1w95Gi8XaOAsf3iU/cnT+XbgICfiojA2AS X-Received: by 10.194.108.162 with SMTP id hl2mr18708679wjb.81.1425566373242; Thu, 05 Mar 2015 06:39:33 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id dq1sm8719024wib.20.2015.03.05.06.39.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2015 06:39:32 -0800 (PST) From: Thomas Monjalon To: "Qiu, Michael" Date: Thu, 05 Mar 2015 15:38:56 +0100 Message-ID: <2382780.BfG7EQavsa@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <533710CFB86FA344BFBF2D6802E60286CEEF6B@SHSMSX101.ccr.corp.intel.com> References: <1425561339-13300-4-git-send-email-michael.qiu@intel.com> <533710CFB86FA344BFBF2D6802E60286CEEF6B@SHSMSX101.ccr.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] =?utf-8?q?=5BPATCH_3/3_v2=5D_librte=5Feal/common=3A_Fi?= =?utf-8?q?x_redeclaration_of_enumerator_=E2=80=98REG=5FEAX?= =?utf-8?b?4oCZ?= 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:39:33 -0000 2015-03-05 14:03, Qiu, Michael: > On 3/5/2015 9:54 PM, David Marchand wrote: > > On Thu, Mar 5, 2015 at 2:50 PM, Michael Qiu > > wrote: > > > > include/rte_cpuflags.h:154:2: error: redeclaration of enumerato= r > > =E2=80=98REG_EAX=E2=80=99 > > In file included from /usr/include/signal.h:358:0, > > from /usr/include/sys/wait.h:30, > > from /root/dpdk/app/test/test_mp_secondary.c:5= 0: > > /usr/include/sys/ucontext.h:180:3: note: previous definition of= > > =E2=80=98REG_EAX=E2=80=99 was here > > > > In i686, from REG_EAX to REG_EDX are all defined in > > /usr/include/sys/ucontext.h > > > > Rename to CPU_REG_EAX to avoid this issue. > > > > Signed-off-by: Michael Qou > > > > > > > > NAK. > > >=20 > I have answered in you last thread, please check the mail. >=20 > Yes, but for some reason, it was not include, see /usr/include/signal= .h:358 >=20 > # include > # if defined __USE_XOPEN || defined __USE_XOPEN2K8 > /* This will define `ucontext_t' and `mcontext_t'. */ > # include > # endif >=20 > So only if __USE_XOPEN or __USE_XOPEN2K8 been defined will include=20= > So try to define USE_XOPEN. > Why NAK? Because it seems you didn't really try to include system headers. We must avoid redefine existing symbols. That's why this bug happens. Michael, thanks for trying to fix this issue. It's appreciated even if the first solution is refused.