Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1067228ybp; Fri, 11 Oct 2019 08:30:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqztDdB05CC3aCfcyN9WFS2xhyRgdkUAtNA9e0ebCfTA5pEqAmZXSmvIQhUkmMaA9ROYU28o X-Received: by 2002:a17:906:6a43:: with SMTP id n3mr14232772ejs.292.1570807835664; Fri, 11 Oct 2019 08:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570807835; cv=none; d=google.com; s=arc-20160816; b=xQ9A8xSp2lntNkc5Mn79cw2ueEQgwtZIiRwnQAHonI75hxGm+eqLV8zwGlYHyYXbWA gdh9u9MyN9SnHXl02M7fyxqw3o7by/iiWpvvpNTp/+I9eMXzYxmq+u8TyXjtym/6eOL7 614p7yexzz58/gTfxPkhD/P+2UT9haaBzfZ8LqByrNiS5MEkkVhIxYDInF/tw83iMUPg rPY07TcAAXy7KWSi2IKD5WMDnwxWowZXOwv6Lw1sQvtMaoqUCxt7aH7mAQORIVmkT2ok SAturyZ+vDUjiJ4ZJl7ro44fVJH0iihwoGmtBZijNUxkJYXIcxnGYqNXIMPhzqHHTUoM Dfxw== 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=ZPfWy6dLosAS0n6Upx91YCzliKDOKt8oIbRHL+hjQlg=; b=GcZX9SdAavWH4v7tP3HXDOY9y64kdM7kJBEnUCjCwWsO+3BPiV51iUKSxzppmGxA/C niz418OK7jmTE0o+3KN3iEn52HpASlstANcN59xJT29rOCh1g7VCL5eS6Z+MEmqFSCkC Av2QcmjhmNpqykNrEpPGkom2vIcd2uFb0yBcVCzFJ1DM1BImycYbhMgVh8ZJ+NkQfH0O 9klyBlVmrOxu0NnxnEZ+Kv0KN2h+qi5rCDfx6kFGypZcXhsbWM3hVdzUVOGU7OHhLtDl Z3RGgkdw3S0W+4IGyj+tGAQIWp/0qR+v2G1uXNqNMVI+wst3zxJ703M17kypxOck5zZ8 uLDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=hUTUq2OF; 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 v20si5451755edq.195.2019.10.11.08.30.11; Fri, 11 Oct 2019 08:30:35 -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=hUTUq2OF; 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 S1727231AbfJKP1s (ORCPT + 99 others); Fri, 11 Oct 2019 11:27:48 -0400 Received: from one.firstfloor.org ([193.170.194.197]:50938 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbfJKP1s (ORCPT ); Fri, 11 Oct 2019 11:27:48 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id 27D6A868DE; Fri, 11 Oct 2019 17:27:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1570807665; bh=LWf4Mf2c6cmPhu3atJhi75qc62kg/5WZ5L8xBUnpSnw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hUTUq2OF4NerTT3sgcefuV/i+dJf2RLNpQdpDtV1Xl4Vg06AlPz8ESAOlTtFPSLQ+ x5yfwc60E6MRgx689dUh5xHLxF+QTlNAgza5AWzg1EqYWBxWWh7qpsbyiHso0GgZZZ zbd9+2oBRXbP68d27O8B8KZnaBY52MdSw/+pf15w= Date: Fri, 11 Oct 2019 08:27: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: <20191011152744.kfuogoz66zcbifyj@two.firstfloor.org> References: <20191007174120.12330-1-andi@firstfloor.org> <20191008115240.GE10009@krava> <20191008142143.ts5se4pzwfnfnbsh@two.firstfloor.org> <20191011140548.GA20544@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191011140548.GA20544@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 Fri, Oct 11, 2019 at 04:05:48PM +0200, Jiri Olsa wrote: > On Tue, Oct 08, 2019 at 07:21:44AM -0700, Andi Kleen wrote: > > 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 > > I'm confused, > the test-libbabeltrace.c checks for bt_ctf_stream_class_get_packet_context_type > which is in libbabeltrace-ctf: AFAIK libbabeltrace-ctf uses these symbols from the object containing bt_ctf_stream_class_get_packet_context_type I assume you have FC30 so you should be able to reproduce it -Andi