Skip to contentSkip to conversation

build error: ltt-control package

DISCUSSION Mathieu Desnoyers 1 participant 1 message Mar 13, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 19 lines · * OSDepend ([email protected]) 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

Quoted 3 lines

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

Quoted 11 lines

2013-03-13

zhengchen

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com