Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934939AbcKNMBf (ORCPT ); Mon, 14 Nov 2016 07:01:35 -0500 Received: from 92-243-34-74.adsl.nanet.at ([92.243.34.74]:50051 "EHLO mail.osadl.at" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753547AbcKNMBb (ORCPT ); Mon, 14 Nov 2016 07:01:31 -0500 X-Greylist: delayed 318 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Nov 2016 07:01:30 EST From: Andreas Platschek To: rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, Andreas Platschek Subject: [PATCH 1/2] trace-cmd: Makefile - link all trace-* objects into ctracecmd.so Date: Mon, 14 Nov 2016 11:55:42 +0000 Message-Id: <1479124543-30911-2-git-send-email-andreas.platschek@opentech.at> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479124543-30911-1-git-send-email-andreas.platschek@opentech.at> References: <1479124543-30911-1-git-send-email-andreas.platschek@opentech.at> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1078 Lines: 32 Got a few undefined symbols when using the Python interface to trace-cmd, the first one was: root@wheezy:~/trace-cmd# python tracecmd.py Traceback (most recent call last): File "tracecmd.py", line 22, in from ctracecmd import * ImportError: /home/andi/working_git/trace-cmd/ctracecmd.so: undefined symbol: get_file_content linking the objects that contain those symbols fixes the problem. Signed-off-by: Andreas Platschek --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 62cb25b..f86cb77 100644 --- a/Makefile +++ b/Makefile @@ -344,7 +344,8 @@ TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o \ trace-output.o trace-record.o trace-recorder.o \ trace-restore.o trace-usage.o trace-blk-hack.o \ kbuffer-parse.o event-plugin.o trace-hooks.o \ - trace-msg.o + trace-msg.o trace-stat.o trace-listen.o trace-stream.o \ + trace-read.o trace-profile.o trace-hash.o PLUGIN_OBJS = PLUGIN_OBJS += plugin_jbd2.o -- 1.7.10.4