<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Ritchie Vickery" <Ritchie.Vickery@imgtec.com><br><b>To: </b>lttng-dev@lists.lttng.org<br><b>Sent: </b>Wednesday, March 12, 2014 7:09:08 AM<br><b>Subject: </b>[lttng-dev] undefined reference to `lttng_probe_register<br><div><br></div><style><!--

@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal">Hi,</p><p class="MsoNormal">I’m trying to setup lttng for the first time.</p><p class="MsoNormal">I’ve made librcu, lttng-ust, lttng-tools and lttng-modules and have instrumented some User code.</p><p class="MsoNormal">I have run the tool to generate the tracepoint code:</p><p class="MsoNormal">$ lttng-gen-tp ustrcv.tp –o ustrcv.h –o ustrcv.c</p><p class="MsoNormal">However, at the point where the user-mode library containing ustrcv.o gets linked, I see the following error:</p><p class="MsoNormal">/usr/local/include/lttng/ust-tracepoint-event.h:779: undefined reference to `lttng_probe_register'</p><p class="MsoNormal">Does anyone have any ideas what I may have missed?</p></div></blockquote><div><br></div><div>You probably forgot to link the tracepoint probe against liblttng-ust. See lttng-ust(3) manpage for details.<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Mathieu<br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="WordSection1"><p class="MsoNormal">Many thanks,</p><p class="MsoNormal">Ritchie</p></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com<span name="x"></span><br></div></div></body></html>