[ltt-dev] Trying to compile lttng
Irina Guilman
irina.guilman at ericsson.com
Thu May 5 13:29:28 EDT 2011
I am trying to compile the ust itself, and the ./configure step fails... (liburcu compiled, I have the latest version, with the cds_list_add() in the list.h, and it finds the library)
This is what I get:
checking whether cds_list_add(0, 0) is declared... no
configure: error: liburcu 0.5 or newer is needed, please update your version or use LDFLAGS=-Ldir to specify the right location.
Any suggestions?
Thanks.
// Commenting out the step seems to be ok, it seems to compile after, but the right way is to set the environment correctly.
-----Original Message-----
From: David Goulet [mailto:david.goulet at polymtl.ca]
Sent: May 5, 2011 1:18 PM
To: Daniel U. Thibault
Cc: ltt-dev at lists.casi.polymtl.ca
Subject: Re: [ltt-dev] Trying to compile lttng-tools
Hi Daniel,
Yep, we are aware of that problem and will be fix in the next release.
Note that UST is not yet ready for the lttng-tools integration... This will come in a very short term probably at release version 0.14. You can still use basic trace command of lttng-tools to control UST.
But, for now, you can fix that quickly by changing this to "libustctl/Makefile.am" from the git source of ust.
- $(top_builddir)/libustcomm/libustcomm.la
+ $(top_builddir)/libustcomm/libustcomm.la \
+ $(top_builddir)/snprintf/libustsnprintf.la
Recompile and install ust and should be fine :)
Don't hesitate for any other problems/comments.
Cheers
David
On 11-05-05 12:32 PM, Daniel U. Thibault wrote:
> I'm trying to compile the latest lttng-tools (lttng-tools-9624336,
> 2011-05-04) and keep running into a weird error.
>
> So far, ltt-control (cdfcd01, 2011-04-13), userspace-rcu 0.5.4 and ust
> 0.12 are downloaded from git.lttng.org, compiled and installed. I
> download
> lttng-tools-9624336 from the same source, run ./bootstrap without any
> unusual results, but ./configure fails with:
>
> checking for ustctl_connect_pid in -lustctl... no
> configure: error: Cannot find libustctl. Use LDFLAGS=-Ldir to specify
> its location.
>
> The config.log hints at the problem's source:
>
> configure:4421: checking for ustctl_connect_pid in -lustctl
> configure:4446: gcc -o conftest -g -O2 conftest.c -lustctl -luuid -lpopt
> -lpthread>&5
> //usr/local/lib/libustctl.so: undefined reference to `ust_safe_snprintf'
> collect2: ld returned 1 exit status
>
> libustctl (.so.0.0.0, .so.0, .so, .a, .la) is in /usr/local/lib/ and
> contains 'ust_safe_snprintf' in its hex code. Recall that UST 0.12
> compiled without a hitch ('ust_safe_snprintf' appears in usterr.h,
> ust_snprintf.h, snprintf.c, and tests/snprintf/prog.c, as fas as
> source goes). Well, not completely true: for some weird reason,
> /usr/local/lib/libust.so ended up containing these four
> lines:
>
> /* GNU ld script
> Use the shared library, but the link with initializer too */
> OUTPUT_FORMAT(elf64-x86-64)
> GROUP ( libust.so.0 libust-initializer.o )
>
> I replaced it with the expected symbolic link to
> /usr/local/lib/libust.so.0.0.0 (the lttng-tools problem is the same
> before and after this fix)
>
> If it matters, I'm running a virtual Ubuntu 10.10 64-bits machine.
>
> I'm at a loss as to how to fix this, and there's nothing on the Web
> about this configure error (except a short thread on this very mailing list).
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
--
David Goulet
LTTng project, DORSAL Lab.
PGP/GPG : 1024D/16BD8563
BE3C 672B 9331 9796 291A 14C6 4AF7 C14B 16BD 8563
_______________________________________________
ltt-dev mailing list
ltt-dev at lists.casi.polymtl.ca
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
More information about the lttng-dev
mailing list