[lttng-dev] undefined reference to `lttng_probe_register
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Wed Mar 12 15:01:31 EDT 2014
----- Original Message -----
> From: "Ritchie Vickery" <Ritchie.Vickery at imgtec.com>
> To: lttng-dev at lists.lttng.org
> Sent: Wednesday, March 12, 2014 7:09:08 AM
> Subject: [lttng-dev] undefined reference to `lttng_probe_register
> Hi,
> I’m trying to setup lttng for the first time.
> I’ve made librcu, lttng-ust, lttng-tools and lttng-modules and have
> instrumented some User code.
> I have run the tool to generate the tracepoint code:
> $ lttng-gen-tp ustrcv.tp –o ustrcv.h –o ustrcv.c
> However, at the point where the user-mode library containing ustrcv.o gets
> linked, I see the following error:
> /usr/local/include/lttng/ust-tracepoint-event.h:779: undefined reference to
> `lttng_probe_register'
> Does anyone have any ideas what I may have missed?
You probably forgot to link the tracepoint probe against liblttng-ust. See lttng-ust(3) manpage for details.
Thanks,
Mathieu
> Many thanks,
> Ritchie
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140312/d854e179/attachment.html>
More information about the lttng-dev
mailing list