Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7779654rwl; Tue, 10 Jan 2023 05:25:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXuOrAGceeAufmv6UWXulz4CKkZNLesdnJTSkfk/gP73IYgZYNrcX1dd62Bq3eHRqjhTBtl/ X-Received: by 2002:a05:6402:321a:b0:48b:b23f:1f40 with SMTP id g26-20020a056402321a00b0048bb23f1f40mr36198550eda.30.1673357145185; Tue, 10 Jan 2023 05:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673357145; cv=none; d=google.com; s=arc-20160816; b=JFJNTo9JWw1n7zBCykTeR5Dm65ADnmShRTgsDskGs9rFMw23y31QZjzpeK6UGTldYS qDG0USIY06eeplkSCrCQ6JC0PvVBCHcsfvjorOTCZCivlsPgtVJKQgIGBrd2zQngbqwU 6u9/qLfV6JfOHVGQPCKtrZKKi4fSH084zA+DRzqTpGbxevzoWibvIGujRpXRB7pRh1Pp JLgkU5hdRJCSb3pnNTkDMQIBXe1EvEj9PptFpyi65wQGm8LsYJ3FoywyapFlh9EvlYWT LlT3CPnMJQad7cbBl7z4sCX7R1lXwIdzk7I+Zc0444/C/hA3eT7BuOdXfvxTf9IU8PwG +MrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=dZqqazlG3Y9JpfBvsAQu9itiq0NGswEh6VZzATNttmI=; b=L3AhU9eh8/5qnxsFmPDxwsEJfY60ZCUtfWwUFpFv02QfMhQF6dn/2nA4gSNhFOrsVO 0iSmUJd1LS6yJbUbm3tJZz5f9MarkdJI56ZvoCOnZ16j/MO2JCYVDkwGsTgj/DdKHs7X D8k4GC8zARV6vub6yqxDr0QgamecvR2LHa3o027/fBt8vcY8rSMR7rKwbar3cdZPdDSj QMN2UTnFSyOz4RXXuqrLeNayZHaMzAnYqUjgFqR1ytkfRocqG1QGNypeFI1jR4lt3BZP LeTR1gZb3wlMdQK2j4BDO0bBRMWjSrujJGeRUjSOCIZPIje/F3iW4o+s/0jQtVsG2r9z G3Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XjSrUouD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ycgqBNNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a05640242c900b00485fa68b06csi15148694edc.354.2023.01.10.05.25.31; Tue, 10 Jan 2023 05:25:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XjSrUouD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ycgqBNNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjAJNSn (ORCPT + 53 others); Tue, 10 Jan 2023 08:18:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbjAJNSO (ORCPT ); Tue, 10 Jan 2023 08:18:14 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44687615F; Tue, 10 Jan 2023 05:18:13 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CF8E576049; Tue, 10 Jan 2023 13:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673356691; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dZqqazlG3Y9JpfBvsAQu9itiq0NGswEh6VZzATNttmI=; b=XjSrUouDnoHbLDwAdUKO1R/fssBxhAuYmeNEey/JJzfd7ox0E0URqSl9J+g6D0sMKy8pxH jzJt0MmBUuaHwrfQs5wOPsH80F+mtFIMpEubf+yExaAM+3sG0DGpy5lkmFGTZ1ZxbUPe9W zH/Pr/cAK94uns80mnBUduO/weIXDA0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673356691; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dZqqazlG3Y9JpfBvsAQu9itiq0NGswEh6VZzATNttmI=; b=ycgqBNNZ4Z2y5izcR0QhfDh9ifbIrdfxQYtuv/PtZ0hIHB/7OwpTU9COIcbeHD3P2EXVy7 XJNhK7khO1Z96XBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C0FD013338; Tue, 10 Jan 2023 13:18:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id syATL5NlvWPyNgAAMHmgww (envelope-from ); Tue, 10 Jan 2023 13:18:11 +0000 From: Daniel Wagner To: Daniel Bristot de Oliveira , Steven Rostedt Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Wagner Subject: [PATCH] tools/rtla: Explicitly list libtraceevent dependency Date: Tue, 10 Jan 2023 14:18:05 +0100 Message-Id: <20230110131805.16242-1-dwagner@suse.de> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current libtracefs.pkg file lists the dependency on libtraceevent ("pkg-config --libs libtracefs" -> "-ltracefs -ltraceevent"). Dan Nicholson's Guide to pkg-config[1] stats that "Libs: The link flags specific to this package and any required libraries that don't support pkg-config". Thus the current libtracefs.pkg is not correct. rtla is depending on libtraceevent but it doesn't express this in 'pkg-config' part to retrieve the correct build flags. In order to be able to update the "Libs:" section in the libtracefs project we need to list the dependency explicitly to avoid future linker failures. [1] https://people.freedesktop.org/~dbn/pkg-config-guide.html Signed-off-by: Daniel Wagner --- I've got this fallout with because I am using libtraceevent and libtracefs build with Meson. Meson generates different pkg files which seems to align with Dan's Guide. tools/tracing/rtla/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile index 22e28b76f800..0664e2db22c1 100644 --- a/tools/tracing/rtla/Makefile +++ b/tools/tracing/rtla/Makefile @@ -32,7 +32,7 @@ TRACEFS_HEADERS := $$($(PKG_CONFIG) --cflags libtracefs) CFLAGS := -O -g -DVERSION=\"$(VERSION)\" $(FOPTS) $(MOPTS) $(WOPTS) $(TRACEFS_HEADERS) $(EXTRA_CFLAGS) LDFLAGS := -ggdb $(EXTRA_LDFLAGS) -LIBS := $$($(PKG_CONFIG) --libs libtracefs) +LIBS := $$($(PKG_CONFIG) --libs libtracefs libtraceevent) SRC := $(wildcard src/*.c) HDR := $(wildcard src/*.h) -- 2.39.0