Message ID | 1465896120-17173-1-git-send-email-adrien.mazarguil@6wind.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 72A3A6C9C; Tue, 14 Jun 2016 11:22:12 +0200 (CEST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id A38D76C9A for <dev@dpdk.org>; Tue, 14 Jun 2016 11:22:10 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id r190so20514200wmr.0 for <dev@dpdk.org>; Tue, 14 Jun 2016 02:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mwn/Tu1Zif3lYEKUVLB0dO3sI3o2ifednvAdQzu56RA=; b=p025KSJmfrIbr5WvgHIgIjc7/q7kRdhGfrLP7403jffifbCDmp8U159Ho9qOxMSrCD AIkppFKcTDZANL/JBkSKTleRVexHmPNbDMW2bP1SisMk22NAGFGmCik1vqFI5yU0c3At 5U8ZFsUij4grpbAZIUN58Nc3840ArE1gPKWBQdITQJJOQMNS+zUVlfrdAJ+oOCmq+GjV u+jTW+N4/LrrGTobAeqa2KW6efgC6x7aIi4qe4ab0/JfsXDC+xnGPTEv+HKrZMDz7xYl RBihaOrLgmq0St8IBJBOh80z3UD0cJ+/J/1KohMXXuBl6nqTgsfzuoSosewpOWsSLOCv ePCQ== 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:in-reply-to :references; bh=mwn/Tu1Zif3lYEKUVLB0dO3sI3o2ifednvAdQzu56RA=; b=hm12HBFKlsehudqHUWGluXgj2ajKVx4hltbRKwNHSp0VfkUpIFClYW2DPVmXLThU0O CZkDOPazcWwzML6YzR6M6RUAvCJY4MCUb7PiuVGTKBNO9tm5fYq00O1xt1aplFzb1DmG Ib+XgOcQaKkaJLISEKN3EaabgZXjO00QRqDNFdILVB7TyYbMe9a2S5trlR+oxn5Z91Du +zt385j1PZdWOAXRwM4HLuCJ8qDejRyIihiq+pYD5RXGS5XpcbPkV/EX1YsGiw0NNliQ Mli4kZPnAo8KklbGkbeepAAQH+mL0ScGgLS01Byasp5bkJusUZAqPlQuHlpaWWgiivUk TmSA== X-Gm-Message-State: ALyK8tKHE8CDKcw1AMJRhYNNGaOlGmsUQetajFN0P/6eeM3dLKmFPZKGM8t9Qh/VrbN8dh64 X-Received: by 10.194.120.69 with SMTP id la5mr5685689wjb.152.1465896130242; Tue, 14 Jun 2016 02:22:10 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id u64sm3107149wmd.8.2016.06.14.02.22.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 02:22:09 -0700 (PDT) From: Adrien Mazarguil <adrien.mazarguil@6wind.com> To: Bruce Richardson <bruce.richardson@intel.com> Cc: dev@dpdk.org Date: Tue, 14 Jun 2016 11:22:00 +0200 Message-Id: <1465896120-17173-1-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> References: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH] mlx: fix compilation with older Glibc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Adrien Mazarguil
June 14, 2016, 9:22 a.m. UTC
A missing define in the previous patch causes additional compilation
issues.
Fixes: 3025206f5060 ("mlx: fix compilation with recent Glibc")
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
---
drivers/net/mlx4/Makefile | 1 +
drivers/net/mlx5/Makefile | 1 +
2 files changed, 2 insertions(+)
Comments
On 6/14/2016 10:22 AM, Adrien Mazarguil wrote: > A missing define in the previous patch causes additional compilation > issues. > > Fixes: 3025206f5060 ("mlx: fix compilation with recent Glibc") > > Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> "older Glibc" or "recent Glibc" can be very hard to trace from git history later. Does it make sense to add glibc version info for the failing ones or fixed one? Thanks, ferruh
On Fri, Jun 17, 2016 at 05:29:53PM +0100, Ferruh Yigit wrote: > On 6/14/2016 10:22 AM, Adrien Mazarguil wrote: > > A missing define in the previous patch causes additional compilation > > issues. > > > > Fixes: 3025206f5060 ("mlx: fix compilation with recent Glibc") > > > > Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> > > "older Glibc" or "recent Glibc" can be very hard to trace from git > history later. I wasn't sure about the exact version, it appears to be 2.19 and/or 2.20, where _BSD_SOURCE was modified and subsequently removed. I suggest squashing this patch into the original broken commit ("mlx: fix compilation with recent Glibc") if possible, I did not submit a v2 as it is already applied on dpdk-next-net. > Does it make sense to add glibc version info for the failing ones or > fixed one? Depends if we can modify the first commit. If we do, let's squash them together before adding version information, otherwise let's modify the second one only. I can submit a v2 that overrides both commits or only the second one, tell me what you think is best.
On Mon, Jun 20, 2016 at 11:25:18AM +0200, Adrien Mazarguil wrote: > On Fri, Jun 17, 2016 at 05:29:53PM +0100, Ferruh Yigit wrote: > > On 6/14/2016 10:22 AM, Adrien Mazarguil wrote: > > > A missing define in the previous patch causes additional compilation > > > issues. > > > > > > Fixes: 3025206f5060 ("mlx: fix compilation with recent Glibc") > > > > > > Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> > > > > "older Glibc" or "recent Glibc" can be very hard to trace from git > > history later. > > I wasn't sure about the exact version, it appears to be 2.19 and/or 2.20, > where _BSD_SOURCE was modified and subsequently removed. > > I suggest squashing this patch into the original broken commit ("mlx: fix > compilation with recent Glibc") if possible, I did not submit a v2 as it is > already applied on dpdk-next-net. > > > Does it make sense to add glibc version info for the failing ones or > > fixed one? > > Depends if we can modify the first commit. If we do, let's squash them > together before adding version information, otherwise let's modify the > second one only. > > I can submit a v2 that overrides both commits or only the second one, tell > me what you think is best. > > -- While I don't like squashing or modifying already-applied commits on the next tree, since this is for a compilation issue, I may be able to make an exception. To evaluate it, please send on the proposed updated commit message for the combined commits. I assume the code to be squashed is as in this V1 patch. Regards, /Bruce
diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index ca6e483..efed953 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -48,6 +48,7 @@ CFLAGS += -O3 CFLAGS += -std=gnu99 -Wall -Wextra CFLAGS += -g CFLAGS += -I. +CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += $(WERROR_FLAGS) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 283d8eb..66687e8 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -60,6 +60,7 @@ CFLAGS += -O3 CFLAGS += -std=gnu99 -Wall -Wextra CFLAGS += -g CFLAGS += -I. +CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += $(WERROR_FLAGS)