From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id C9E5A2BD9 for ; Mon, 25 Jul 2016 17:59:17 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id i5so163546082wmg.0 for ; Mon, 25 Jul 2016 08:59:17 -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=wKzezojDVVCFnWXd8rphJfcDUFwNhHt2HYKBuPOJg7Q=; b=u8VRhg6UaH9XUtVZTPuXfO7Mxfeadz00zXMI7U+1vDPJ3xYImNFkwV4K0Inu/bgBMU tQvfs30b8+oHZDZEdplSDIzOwqWQ/MtAW+VgTedMo/CuXXF5U4B7jOuPVm+gElyQH4RO v5lOIY5e4wRcneokZ8eMB01lGVxa0bEqGjCVsGX6K/+2eM/ycE7dRz+Vb+hZ7aqp1EAt UPvTw1LhWRmHw41r0UCgwdGNsQI/m465Xj04e1XNxYhQyCpjZZUILtP1HmwJI89WZG6p grzzqja0i7ZGbpuCL6NZfQDylkUSOhLQYYPLqG+06oZJUfwGvE6Ts7OZaziLYOVbuSa8 WBtA== 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=wKzezojDVVCFnWXd8rphJfcDUFwNhHt2HYKBuPOJg7Q=; b=OW8OOdOo+pfR3emiIGtVKR/GIDuJzHLATwMEAEt79XuGtj0k6fM1pApSV42NXTqZlF B+VFQKhUEKu6IiCQU+PAdTFKvOef5bfzpgFi3aUQL8ju2QnV9UjB9VkIzmVqBROgoqln A+YefpCFxsBayLmQ+wI+uSBR2z20khb79G1LeodRYeLnNR4nPua+ujxjchyyj8wn2H5h OFik4AIjKUJkTS4a2ntkbG8spMLPPdnLIfq/9HCSZfDKnckreXo+la0yK48fobTJqboC eQjZrZ1gFThP8fHSjdcpIoDY3M0TEIj6Bj92ekK0yyuSpqHQa7IeWPP+AjSOGHn6oTmF WVGg== X-Gm-Message-State: ALyK8tKuObiST7LgtntPiY+76U5UFKJPiwj6FekcOap3odL0i3cyBechqrM7qtt/HUD3waTv X-Received: by 10.28.56.3 with SMTP id f3mr38520904wma.31.1469462357584; Mon, 25 Jul 2016 08:59:17 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id bw9sm16488243wjc.33.2016.07.25.08.59.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 08:59:17 -0700 (PDT) From: Thomas Monjalon To: piotrx.t.azarewicz@intel.com Cc: dev@dpdk.org Date: Mon, 25 Jul 2016 17:59:16 +0200 Message-ID: <1896818.PTnbAv7U2t@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1469444274-11595-1-git-send-email-thomas.monjalon@6wind.com> References: <1469444274-11595-1-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mk: fix 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 15:59:18 -0000 2016-07-25 12:57, Thomas Monjalon: > There is a dependency on librt with old glibc. > The -lrt option was added everywhere it is needed but was also > added in some applications makefiles as the first link option. > The problem is this option is really useful only if added after > the objects or libraries using it (except if using --whole-archive). > And the -lrt options put after were removed to avoid duplicates. > > It was resulting in errors linking test application: > eal_timer.c:(.text+0x128): undefined reference to `clock_gettime' > eal_timer.c:(.text+0x166): undefined reference to `clock_gettime' > eal_alarm.c:(.text+0xda): undefined reference to `clock_gettime' > eal_alarm.c:(.text+0x211): undefined reference to `clock_gettime' > > It is fixed by removing superflous -lrt in app makefiles. > > Fixes: 281948b4753e ("mk: fix missing librt dependencies") > Fixes: 2f6414f4baf1 ("mk: fix static link with glibc < 2.17") > > Signed-off-by: Thomas Monjalon Reported-by: Piotr Azarewicz Applied, thanks