[lttng-dev] LTTng undefined reference while building the sample application.
Jonathan Rajotte-Julien
jonathan.rajotte-julien at efficios.com
Thu Aug 2 11:11:47 EDT 2018
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 <mjeanson at efficios.com>
> 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
More information about the lttng-dev
mailing list