[lttng-dev] build error: ltt-control package

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Mar 13 10:01:52 EDT 2013


* OSDepend (osdepend at gmail.com) wrote:
> Hi, all,
> 
> I met some trouble when i tried to "make" the ltt-control-0.88-09242010. The code is list below:
> 
> make[2]: Leaving directory `/usr/src/ltt-control-0.88-09242010/liblttd'
> Making all in lttd
> make[2]: Entering directory `/usr/src/ltt-control-0.88-09242010/lttd'
> gcc -DHAVE_CONFIG_H -I.. -I..     -g -O2 -MT lttd.o -MD -MP -MF .deps/lttd.Tpo -c -o lttd.o lttd.c
> mv -f .deps/lttd.Tpo .deps/lttd.Po
> /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2   -o lttd lttd.o ../liblttd/liblttd.la -lpthread
> libtool: link: gcc -g -O2 -o .libs/lttd lttd.o  ../liblttd/.libs/liblttd.so -lpthread
> ../liblttd/.libs/liblttd.so: undefined reference to `sync_file_range'
> collect2: ld returned 1 exit status
> make[2]: *** [lttd] Error 1
> make[2]: Leaving directory `/usr/src/ltt-control-0.88-09242010/lttd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/ltt-control-0.88-09242010'
> make: *** [all] Error 2
> 
> My workstation is Centos 5.5, glibc-2.5.
> It seems like a design bug in centos which ignore the sysycall sync_file_range, so seems the only way for me is to just delete the related code.
> Is there any other way to make it through? please help me out!!

I'm afraid this old LTTng 0.x version is not supported anymore. Please
move to 2.x series.

However, removing the sync_file_range call should keep things working.
You might also want to replace that call with fdatasync() for older
distros.

Thanks,

Mathieu

> 
> 2013-03-13
> 
> 
> 
> zhengchen

> _______________________________________________
> 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



More information about the lttng-dev mailing list