[lttng-dev] lttng-tools-2.1.1 for linux-3.4.3

Hari Prasad Kalavakunta Hari.Prasad at radisys.com
Fri Apr 19 20:34:38 EDT 2013

Hello lttng-dev,

Bison version upgrade to 2.4 took care of the earlier blocker.

Undefined references to htobe64 and htobe32 are thrown. Could you please direct me if this is known one.

../../../src/common/.libs/libconsumer.a(consumer.o): In function `write_relayd_metadata_id':
/root/lttng2.1/lttng-tools-2.1.1/src/common/consumer.c:1290: undefined reference to `htobe64'
/root/lttng2.1/lttng-tools-2.1.1/src/common/consumer.c:1291: undefined reference to `htobe32'


From: Hari Prasad Kalavakunta
Sent: Friday, April 19, 2013 9:18 PM
To: lttng-dev at lists.lttng.org
Subject: lttng-tools-2.1.1 for linux-3.4.3

Hello lttng-dev,

When cross compiling lttng-tools-2.1.1 for PowerPC-32 bit, I am running into few issues. Could you please let me know what is wrong here.

First, there was a problem using EPOLL feature.

$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux
$ make

make[3]: Entering directory `/home/xxx/lttng2.1/lttng-tools-2.1.1/src/common/compat'
  CC     compat-epoll.lo
In file included from compat-epoll.c:31:
poll.h:76: error: 'EPOLL_CLOEXEC' undeclared here (not in a function)

To go past this problem, I have chosen not to use EPOLL through ax_have_epoll_cppflags flag

$ export ax_cv_have_epoll =no
$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux
$ make

YACC   filter-parser.c
/home/xxx/lttng2.1/lttng-tools-2.1.1/src/lib/lttng-ctl/filter/filter-parser.y:299.9-16: syntax error, unexpected identifier, expecting string

This time parser appears have some kind of issue. Also, there are few warnings as shown below that indicates to me that configure is not done in the correct way.
consumer.c: In function 'write_relayd_stream_header':
consumer.c:749: warning: implicit declaration of function 'htobe64'
consumer.c:750: warning: implicit declaration of function 'htobe32'

Could you please let me know what could be wrong here. Your help is appreciated. Except of lttng-tools, all other components have be successfully build and installed.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130420/9cf17c04/attachment-0001.html>

More information about the lttng-dev mailing list