From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E97DE58D8 for ; Tue, 26 Jul 2016 09:07:04 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 26 Jul 2016 00:07:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,423,1464678000"; d="scan'208";a="739810397" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by FMSMGA003.fm.intel.com with ESMTP; 26 Jul 2016 00:07:02 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.123]) by IRSMSX109.ger.corp.intel.com ([169.254.13.24]) with mapi id 14.03.0248.002; Tue, 26 Jul 2016 08:06:59 +0100 From: "Azarewicz, PiotrX T" To: Thomas Monjalon CC: "Gu, YongjieX" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17 Thread-Index: AQHR4NkDQLlRXzmyakSHHuBqgpmUDKAgdxCAgAIIpoCAAfiN4P//8z8AgAAXgfD///EqgIAAGMBw///1lAAAkKmeoAABChkAACiixrA= Date: Tue, 26 Jul 2016 07:06:59 +0000 Message-ID: <4837007523CC9A4B9414D20C13DE6E64136EC969@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> <12890652.mUoZe8QKBF@xps13> In-Reply-To: <12890652.mUoZe8QKBF@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Tue, 26 Jul 2016 07:07:05 -0000 > > > The problem is that -lrt appears before -lrte_eal. > > > The question is: where does it come from? > > > It is even before _LDLIBS-y +=3D -L$(RTE_SDK_BIN)/lib... mystery > > > > root cause: > > commit c7cda4d8b4ea9cb0f209dda36882d225354b1db9 >=20 > The error is seen after this commit, yes. > But I would not say it is the root cause. Yes, you are right. > The root cause is adding -lrt before other libs: > 281948b4753e ("mk: fix missing librt dependencies") >=20 > > and my workaround is: > > /app/test/Makefile > > > > ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) > > -LDLIBS +=3D -lrt > > SRCS-y +=3D test_red.c > > SRCS-y +=3D test_sched.c > > endif >=20 > Yes it is what I've done in this patch: > http://dpdk.org/patch/15008 Great, thanks.