<div dir="ltr">Forgot to forward to mailing list again;<div><br></div><div><br></div><div><br><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">Hey Hari,</span><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">While working on porting LTTng to Android, we did fall on similar problems regarding undefined low level kernel functions; these all seemed to be very platform-specific, and in this case you'll most likely find the calls you need in your platform's include/endian.h or include/sys/endian.h header files (most likely under slightly different names).</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">On our end, we ended up 'patching' these problems by adding config verifications for the missing functions, and when those failed we simply redefined them in-code via #define macros using whatever was defined in the platform headers.</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">In any case, we'll be sending our patches in for review soon, but for now, I hope this leads you somwhere.</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">-PL</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Apr 19, 2013 at 8:34 PM, Hari Prasad Kalavakunta <span dir="ltr"><<a href="mailto:Hari.Prasad@radisys.com" target="_blank">Hari.Prasad@radisys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">






<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class=""><span style="color:rgb(31,73,125)">Hello lttng-dev,<u></u><u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)">Bison version upgrade to 2.4 took care of the earlier blocker.
<u></u><u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-family:'Courier New'">Undefined references to htobe64 and htobe32 are thrown. Could you please direct me if this is known one.<span style="color:rgb(31,73,125)"><u></u><u></u></span></span></p>

<p class=""><span style="font-family:'Courier New';color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-family:'Courier New'">../../../src/common/.libs/libconsumer.a(consumer.o): In function `write_relayd_metadata_id':<u></u><u></u></span></p>
<p class=""><span style="font-family:'Courier New'">/root/lttng2.1/lttng-tools-2.1.1/src/common/consumer.c:1290: undefined reference to `htobe64'<u></u><u></u></span></p>
<p class=""><span style="font-family:'Courier New'">/root/lttng2.1/lttng-tools-2.1.1/src/common/consumer.c:1291: undefined reference to `htobe32'<u></u><u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)">Regards,<u></u><u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)">Hari<u></u><u></u></span></p>
<p class=""><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in">
<p class=""><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> Hari Prasad Kalavakunta
<br>
<b>Sent:</b> Friday, April 19, 2013 9:18 PM<br>
<b>To:</b> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<b>Subject:</b> lttng-tools-2.1.1 for linux-3.4.3<u></u><u></u></span></p>
</div>
</div><div class="im">
<p class=""><u></u> <u></u></p>
<p class="">Hello lttng-dev,<u></u><u></u></p>
<p class=""><u></u> <u></u></p>
<p class="">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.<u></u><u></u></p>
<p class=""><u></u> <u></u></p>
<p class="">First, there was a problem using EPOLL feature.<u></u><u></u></p>
<p class=""><u></u> <u></u></p>
<p class="" style="margin-left:0.5in">$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux<u></u><u></u></p>
<p class="" style="margin-left:0.5in">$ make<u></u><u></u></p>
<p class="" style="margin-left:0.5in"><u></u> <u></u></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">make[3]: Entering directory `/home/xxx/lttng2.1/lttng-tools-2.1.1/src/common/compat'<u></u><u></u></span></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">  CC     compat-epoll.lo<u></u><u></u></span></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">In file included from compat-epoll.c:31:<u></u><u></u></span></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">poll.h:76: error: 'EPOLL_CLOEXEC' undeclared here (not in a function)<u></u><u></u></span></p>
<p class=""><u></u> <u></u></p>
<p class=""><u></u> <u></u></p>
<p class="">To go past this problem, I have chosen not to use EPOLL through ax_have_epoll_cppflags flag<u></u><u></u></p>
<p class=""><u></u> <u></u></p>
</div><p class="" style="margin-left:0.5in">$ export ax_<span style="color:rgb(31,73,125)">cv</span>_<span style="color:rgb(31,73,125)">have_</span>epoll =no<u></u><u></u></p><div class="im">
<p class="" style="margin-left:0.5in">$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux<u></u><u></u></p>
<p class="" style="margin-left:0.5in">$ make<u></u><u></u></p>
<p class="" style="margin-left:0.5in"><u></u> <u></u></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">YACC   filter-parser.c<u></u><u></u></span></p>
<p class="" style="margin-left:1in"><span style="font-family:'Courier New'">/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<u></u><u></u></span></p>

<p class="" style="margin-left:1in"><span style="font-family:'Courier New'"><u></u> <u></u></span></p>
<p class="" style="margin-left:0.5in"><span style="font-family:'Courier New'"><u></u> <u></u></span></p>
<p class="">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.<u></u><u></u></p>
<p class="" style="margin-left:0.5in"><span style="font-family:'Courier New'">consumer.c: In function 'write_relayd_stream_header':<u></u><u></u></span></p>
<p class="" style="margin-left:0.5in"><span style="font-family:'Courier New'">consumer.c:749: warning: implicit declaration of function 'htobe64'<u></u><u></u></span></p>
<p class="" style="margin-left:0.5in"><span style="font-family:'Courier New'">consumer.c:750: warning: implicit declaration of function 'htobe32'<u></u><u></u></span></p>
<p class=""><u></u> <u></u></p>
<p class="">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.<u></u><u></u></p>
<p class=""><u></u> <u></u></p>
<p class="">Regards,<u></u><u></u></p>
<p class="">Hari<u></u><u></u></p>
</div></div>
</div>

<br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br></div></div>