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 975152BFA for ; Tue, 22 Mar 2016 10:25:54 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 22 Mar 2016 02:25:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,376,1455004800"; d="scan'208";a="939011812" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga002.jf.intel.com with ESMTP; 22 Mar 2016 02:25:53 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.137]) by IRSMSX102.ger.corp.intel.com ([169.254.2.19]) with mapi id 14.03.0248.002; Tue, 22 Mar 2016 09:25:51 +0000 From: "Mrzyglod, DanielX T" To: Thomas Monjalon CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] mk: fix eal shared library dependencies -lrt Thread-Index: AQHRhBI/qhsX0nl9Q0qWxtMy2dAqj59lKOmAgAACxyA= Date: Tue, 22 Mar 2016 09:25:50 +0000 Message-ID: <7ADD74816B4C8A45B56203CBA65FE5A6377417BA@IRSMSX107.ger.corp.intel.com> References: <1458634142-10084-1-git-send-email-danielx.t.mrzyglod@intel.com> <2532380.h4kKuHkruB@xps13> In-Reply-To: <2532380.h4kKuHkruB@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 eal shared library dependencies -lrt 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, 22 Mar 2016 09:25:55 -0000 >-----Original Message----- >From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] >Sent: Tuesday, March 22, 2016 9:55 AM >To: Mrzyglod, DanielX T >Cc: dev@dpdk.org >Subject: Re: [dpdk-dev] [PATCH] mk: fix eal shared library dependencies -l= rt > >2016-03-22 09:09, Daniel Mrzyglod: >> For GLIBC < 2.17 it is necessery to add -lrt for linker >> from glibc > 2.17 The `clock_*' suite of functions (declared in = ) is now >> available directly in the main C library. This affect Ubuntu 12.04 in i6= 86 >> and other older Linux Distros). >[...] >> --- a/app/test/Makefile >> +++ b/app/test/Makefile >> @@ -114,6 +114,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) +=3D >test_cmdline_string.c >> SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) +=3D test_cmdline_lib.c >> >> ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) >> +LDFLAGS +=3D -lrt > >Why are you adding it only for librte_sched? >Is it needed by librte_sched or by some functions testing librte_sched? Every clock_gettime() needs -lrt for >=3DGLIBC2.17. For glibc2.17 and above= `clock_*' suite of functions (declared in ) is now available directly in the main C library. In test it's only in test_red.c and I see that I missed it in ptpclient exa= mple probably. So I will send Patch v2