[lttng-dev] undefined reference to `lttng_probe_register'

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Wed Mar 12 10:12:15 EDT 2014


----------------------------------------------------------------------
Date: Wed, 12 Mar 2014 11:09:08 +0000
From: Ritchie Vickery <Ritchie.Vickery at imgtec.com>

> 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?
>
> Ritchie

   The error message sounds like /usr/local/lib/liblttng-ust-*.so are not being found.  Try specifying the /usr/local/lib path with your lttng-gen-tp call:

$ LDFLAGS=-L/usr/local/lib lttng-gen-tp ustrcv.tp -o ustrcv.h -o ustrcv.c

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>



More information about the lttng-dev mailing list