Forgot to forward to mailing list again;
Hey Hari, 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). 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. In any case, we'll be sending our patches in for review soon, but for now, I hope this leads you somwhere. -PL On Fri, Apr 19, 2013 at 8:34 PM, Hari Prasad Kalavakunta < [email protected]> wrote: > 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'**** > > ** ** > > Regards,**** > > Hari**** > > ** ** > > *From:* Hari Prasad Kalavakunta > *Sent:* Friday, April 19, 2013 9:18 PM > *To:* [email protected] > *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.**** > > ** ** > > Regards,**** > > Hari**** > > _______________________________________________ > lttng-dev mailing list > [email protected] > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > >
_______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
