From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id F3A5A4AAD for ; Mon, 25 Jul 2016 14:37:23 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id i5so154623670wmg.0 for ; Mon, 25 Jul 2016 05:37:23 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=qpfZm08JkGVtfWu8cR6hFuUpdO/ufGzQUPfqqYfHGjM=; b=E3DkEU5akKVMx4sXfY1fqdKtwG4RVJLBCvUC1xfA9tx3NZ9g4eflrapIQMt6YDXhFg oHCilB7+nb8zvP3XR35xrN0vOH8zZzdgdnpTuJMRFCr6ByzVSwXZgr04VnBL7eByOZgj SBuaX4w4ZSu5MecSa1yWwf6adBSIh46TqcziGMgBk1v8/fHeW981fzUpRBJyKWEFlt/F V9zInIVGLD2ZkDDRyr5ymjYMx3AuZwn+M6KH1uNYEsihtElkBO0uTCy11pMuUqGKii6T Qb6yMwBhtUmSJV48BTOd5WlxQ+zxq3XJp6V7PHfBpoW+/mGpKP2fGRgsMVLfU99aDpIE I+6w== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=qpfZm08JkGVtfWu8cR6hFuUpdO/ufGzQUPfqqYfHGjM=; b=Li26WFpp+/xY9REop2f0p0nay8iP//obrPV5BJggxhwJMVOQrjAHDUVjnGogIHyDax Ip1YQqLQXeYkVry+FKFFHY3w5kJbl6kgew4SncV48rDvZ/T/W0DsLUx04yEQJZufBDqA Z3RfxGkZiBYwR4gyeacikt92QltoV/rWgU2ToUbwGbtapS5VOBbb6AYLJFuNmUmb7kmG cFD+CTS655fd6StkCmMqSkSCnlUQpx3CgqZYDFlHlSeg1JaNoJObJaym+PZ7r6yu0mgL AlzLuvTeuvWECxzC+qP+ZdrPv8SCnc6lhWMgtLX3vbz7Bou6yxUtu37lx8KUWKqYzJDw 1e+A== X-Gm-Message-State: AEkoousISXrnYjjAZekkTUIm/2x9sHC6NUVK+gU77HI4Jo0rkjNnmY30+irnjHLxrzP41b8f X-Received: by 10.194.186.166 with SMTP id fl6mr15182805wjc.44.1469450243641; Mon, 25 Jul 2016 05:37:23 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id d64sm27215953wmc.22.2016.07.25.05.37.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 05:37:23 -0700 (PDT) From: Thomas Monjalon To: "Azarewicz, PiotrX T" Cc: "Gu, YongjieX" , dev@dpdk.org Date: Mon, 25 Jul 2016 14:37:22 +0200 Message-ID: <12890652.mUoZe8QKBF@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <4837007523CC9A4B9414D20C13DE6E64136EC83D@IRSMSX102.ger.corp.intel.com> References: <1468835025-3333-1-git-send-email-thomas.monjalon@6wind.com> <6703957.6mWDc13pAY@xps13> <4837007523CC9A4B9414D20C13DE6E64136EC83D@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17 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: Mon, 25 Jul 2016 12:37:24 -0000 2016-07-25 11:13, Azarewicz, PiotrX T: > > The problem is that -lrt appears before -lrte_eal. > > The question is: where does it come from? > > It is even before _LDLIBS-y += -L$(RTE_SDK_BIN)/lib... mystery > > root cause: > commit c7cda4d8b4ea9cb0f209dda36882d225354b1db9 The error is seen after this commit, yes. But I would not say it is the root cause. The root cause is adding -lrt before other libs: 281948b4753e ("mk: fix missing librt dependencies") > and my workaround is: > /app/test/Makefile > > ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) > -LDLIBS += -lrt > SRCS-y += test_red.c > SRCS-y += test_sched.c > endif Yes it is what I've done in this patch: http://dpdk.org/patch/15008