Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5735730ybp; Tue, 8 Oct 2019 07:33:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyr4ZUZiWKjJO4UXCmlA5bbdJWcY6ue19rQW4IFtoXtEeIpfIpnQmomeam1tV5UzbZizre X-Received: by 2002:a50:ec81:: with SMTP id e1mr34153828edr.107.1570545219253; Tue, 08 Oct 2019 07:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570545219; cv=none; d=google.com; s=arc-20160816; b=JcdZ2iPbJYV40Om6pt9TkgM31I5jGnQVWOXdvvqsLW5ym3NMoP9NXfO5B3tKjjC5/x t2liRwq/+vyC9BXLYobJcSDy+zB7tCEss5RvAJ/8PALUIerSzfMToABoNL7CNBzy/SKP FBEHj1bg76q8U7+KqxCKoMIQ6Kpp2jbmIa5xtq+t3ttDhbH5gIyXk0CTPVkdD5r/F83A JoHWbMIQ+DYs6DfnVoBZKJ57bb4WNtbrbazjtpIjp8D2buDbe29RXpzvO7o4aXKmpY1s oKfAhGpXNdS+WTVTiABgUeZVV9091E2NNDjI+21By0OcioP/g6ldOLZszUKaSa1LRkf+ CQgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9wTNHSbzp+lD7PKm7ZkM0DgczNAj+dK1GKr5i1zHC4g=; b=ifewkln2mtxvkPWKF+pV3TsIMg7DqHI6T56+sTFVRx587IvAF2Q1PE+f7/nj/9MMrH ErURZRDnQUCwbuPQl6+RR/3LQr0QjOi3iRITymmVDxtxZkjamPKRiMWu+xrh3FGIcrVL hJ19ZPvyLWA1lbU72ODDXLArQC439BNMSSXlg+rBiPN25v73omayxb1Zhz1mWHNRLo6r KlgQkV3BJ4A/YS1Htnm/koRopfrvmG89qpuXmTeX9AIo2ATOjmzw2EfWWXA/X7YJTm91 T3icgaCQIItc+bE6RIAX0uH9TCaAuA6ZEe3vO3RYVdU9vfzy6wfxryVA9BNlvk5TCSGv TSdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=b8kZOjeb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si11646049ede.101.2019.10.08.07.33.14; Tue, 08 Oct 2019 07:33:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=b8kZOjeb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727149AbfJHO3o (ORCPT + 99 others); Tue, 8 Oct 2019 10:29:44 -0400 Received: from one.firstfloor.org ([193.170.194.197]:39246 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbfJHO3o (ORCPT ); Tue, 8 Oct 2019 10:29:44 -0400 X-Greylist: delayed 477 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Oct 2019 10:29:44 EDT Received: by one.firstfloor.org (Postfix, from userid 503) id D5AA586951; Tue, 8 Oct 2019 16:21:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1570544504; bh=qU+aOZ8e3XhF+99FLjM1jrujYQGQA+No8pJoZYO/5Pw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b8kZOjeb4MtKFWbWeVqJPPRLt9CdIbDsFzN4tZvHefzobHsgfpkPFcSZsKLFL5tUh fTuZ3BJvecZMBRb5WgnM5GDjOOS0W/e6m2Jko2OwQq92qKMydlo+a41JXUpgXeFaih OUes1KKrjJFztWsFLfmI6JvceO/bBeG+73X3ZY0I= Date: Tue, 8 Oct 2019 07:21:44 -0700 From: Andi Kleen To: Jiri Olsa Cc: Andi Kleen , acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH] perf data: Fix babeltrace detection Message-ID: <20191008142143.ts5se4pzwfnfnbsh@two.firstfloor.org> References: <20191007174120.12330-1-andi@firstfloor.org> <20191008115240.GE10009@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008115240.GE10009@krava> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 01:52:40PM +0200, Jiri Olsa wrote: > On Mon, Oct 07, 2019 at 10:41:20AM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > The symbol the feature file checks for is now actually in -lbabeltrace, > > not -lbabeltrace-ctf, at least as of libbabeltrace-1.5.6-2.fc30.x86_64 > > > > Always add both libraries to fix the feature detection. > > well, we link with libbabeltrace-ctf.so which links with libbabeltrace.so > > I guess we can link it as well, but where do you see it fail? On FC30 the .so file is just a symlink, so it doesn't pull in the other library. $ gcc test-libbabeltrace.c -lbabeltrace-ctf /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64/libbabeltrace-ctf.so: undefined reference to `bt_packet_seek_get_error' /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64/libbabeltrace-ctf.so: undefined reference to `bt_packet_seek_set_error' collect2: error: ld returned 1 exit status $ ls -l /usr/lib64/libbabeltrace-ctf.so lrwxrwxrwx 1 root root 26 Jan 31 2019 /usr/lib64/libbabeltrace-ctf.so -> libbabeltrace-ctf.so.1.0.0 $ rpm -qf /usr/lib64/libbabeltrace-ctf.so libbabeltrace-devel-1.5.6-2.fc30.x86_64 -Andi