From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/linux: fix build Date: Thu, 05 Mar 2015 10:51:57 +0100 Message-ID: <8539092.UnIgVbWq12@xps13> References: <1425372295-27839-1-git-send-email-thomas.monjalon@6wind.com> <1637153.LCrn9VkBbJ@xps13> <533710CFB86FA344BFBF2D6802E60286CEED33@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: "Qiu, Michael" Return-path: In-Reply-To: <533710CFB86FA344BFBF2D6802E60286CEED33-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@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" Hi Michael, 2015-03-05 09:13, Qiu, Michael: > On 3/4/2015 6:24 AM, Thomas Monjalon wrote: > >>> Compilation fails in some distributions because of missing unistd= .h > >>> needed for pread/pwrite (seen with Suse): > >>> lib/librte_eal/linuxapp/eal/eal_pci_uio.c:62:2: > >>> error: implicit declaration of function =E2=80=98pread=E2= =80=99 > >>> > >>> Fixes: 4a499c649590 ("eal/linux: enable uio_pci_generic support")= > >>> > >>> Signed-off-by: Thomas Monjalon > >> Acked-by: David Marchand > > Applied >=20 > Hi, Thomas >=20 > This patch may be need to be reverted, as the error still exists. No I don't think it should be reverted. It must be completed. [...] > NAME > pread, pwrite - read from or write to a file descriptor at a > given offset >=20 > SYNOPSIS > #define _XOPEN_SOURCE 500 >=20 > #include [...] > While I try to add marco #define _XOPEN_SOURCE 500 I think that the good thing to do. > Other errors show up Are they hard to fix? > Who knows how to solve this issue?