[lttng-dev] Issues on basic LTTng trace userspace (tutorial)
Jonathan Rajotte-Julien
jonathan.rajotte-julien at efficios.com
Wed Mar 24 15:00:53 EDT 2021
On Wed, Mar 24, 2021 at 06:55:37PM +0000, MONTET Julien wrote:
> Hi Jonathan,
>
> You are absolutely right !
> I have two different lttng : find /usr -name "*liblttng-ust*" Ubuntu Pastebin<https://paste.ubuntu.com/p/NVtXPhj4fW/>
Glad to know that we are making progress.
>
> According to you, what would be the best solution to solve this issue ?
> I have indeed a folder named lttng-ust where I have made the (wrong) configure / make.
Go into the lttng folder and do:
sudo make uninstall
sudo ldconfig
>
>
> I tried to (temporary) remove all the libttng* /usr/local/lib/, but I face this problem :
That should works also.
> /usr/bin/ld: hello-tp.o: in function `__lttng_events_init__hello_world':
> hello-tp.c:(.text+0xe56): undefined reference to `lttng_ust_probe_register'
> /usr/bin/ld: hello-tp.o: in function `__lttng_events_exit__hello_world':
> hello-tp.c:(.text+0xeb2): undefined reference to `lttng_ust_probe_unregister'
> collect2: error: ld returned 1 exit status
Did you remove the -L/usr/local/bin flag? There should be no reason to keep it
at this point.
>
> In the worst case scenario I am able to get my last clean snapchot.
That is also a good bet :).
--
Jonathan Rajotte-Julien
EfficiOS
More information about the lttng-dev
mailing list