From mboxrd@z Thu Jan 1 00:00:00 1970 From: jonathan.rajotte-julien@efficios.com (Jonathan Rajotte-Julien) Date: Thu, 2 Aug 2018 11:11:47 -0400 Subject: [lttng-dev] LTTng undefined reference while building the sample application. In-Reply-To: References: <365f8241-e04e-95b7-881a-f9ffc6d0e555@efficios.com> Message-ID: <20180802151147.GC18033@joraj-alpa> Hi Raghu, On Thu, Aug 02, 2018 at 11:40:49AM +0530, Attel Raghavendra wrote: > Thank you for your help! > Raghu > > On Wed, Aug 1, 2018 at 8:36 PM Michael Jeanson > wrote: > > > On 2018-08-01 07:22 AM, Attel Raghavendra wrote: > > > Hi Team, > > > > > > I have new to the LTTng. I am trying to build a sample application to > > > test the LTTng. Did you have a look at the doc? [1] https://lttng.org/docs/v2.10/#doc-c-application > > > I was able to compile the sample application successfully, however > > > facing the following linker problems. Please help to resolve the same. We will need the complete compile command, linker command used and that you identified the scenario [2] from the doc matching your situation. [2] https://lttng.org/docs/v2.10/#doc-building-tracepoint-providers-and-user-application Also could you give us the version of lttng-tools and lttng-ust installed? Cheers > > > > > > xx_app.o:(__tracepoints+0x18): undefined reference to > > > `__tracepoint_provider_rttLogger' > > > xx_tpp.o: In function `__tracepoint_provider_check_rttlogger': > > > xx_tpp.c:(.text+0x271): undefined reference to > > > `__tracepoint_provider_mismatch_rttLogger' > > > xx_tpp.c:(.text+0x27b): undefined reference to > > > `__tracepoint_provider_mismatch_rttLogger' > > > collect2: error: ld returned 1 exit status > > > > > > > > > Thank you, > > > Raghu. > > > -- Jonathan Rajotte-Julien EfficiOS