[lttng-dev] lttng-tools 2.2.0-rc1 build error, librt no symbols

Simon Marchi simon.marchi at polymtl.ca
Sun Mar 31 14:25:34 EDT 2013


Hi Yin,

I get the same error. Try putting -lrt after the other arguments of
the LDADD. Since libconsumer.la uses timer_settime from librt, -lrt
has to be after it on the command line.

Simon

On 31 March 2013 13:14, yin sun <sunyin51 at gmail.com> wrote:
> I am trying the latest git 2.2.0-rc1. seems the the librt is not resolved
> correctly on my ubuntu 12.10 64bit. Don't know why.
>
> I tried to build with static lib seems fine. here is my diff.
>
> diff --git a/src/bin/lttng-consumerd/Makefile.am
> b/src/bin/lttng-consumerd/Makefile.am
> index a418eb4..1711581 100644
> --- a/src/bin/lttng-consumerd/Makefile.am
> +++ b/src/bin/lttng-consumerd/Makefile.am
> @@ -4,7 +4,7 @@ lttnglibexec_PROGRAMS = lttng-consumerd
>
>  lttng_consumerd_SOURCES = lttng-consumerd.c lttng-consumerd.h
>
> -lttng_consumerd_LDADD = -lrt \
> +lttng_consumerd_LDADD = /usr/lib/x86_64-linux-gnu/librt.a \
>            $(top_builddir)/src/common/libconsumer.la \
>            $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
>            $(top_builddir)/src/common/libcommon.la
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



More information about the lttng-dev mailing list