Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: jonathan.rajotte-julien@efficios.com (Jonathan Rajotte-Julien)
Subject: [lttng-dev] LTTng undefined reference while building the sample application.
Date: Thu, 2 Aug 2018 11:11:47 -0400	[thread overview]
Message-ID: <20180802151147.GC18033@joraj-alpa> (raw)
In-Reply-To: <CAEN7SXNggOTubKvvAOJ8FTmJLpORGEauk1D7+MX6QwThk1uxEg@mail.gmail.com>

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


      reply	other threads:[~2018-08-02 15:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAEN7SXPpZKTgHDU91AwwrzdVQeM+fr=06CKmLJqKUn6uiRbZwg@mail.gmail.com>
2018-08-01 15:06 ` Michael Jeanson
2018-08-02  6:10   ` Attel Raghavendra
2018-08-02 15:11     ` Jonathan Rajotte-Julien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180802151147.GC18033@joraj-alpa \
    --to=jonathan.rajotte-julien@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox