<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello strace developers,<div><br></div><div>After discovering that the Samsung S2 T710 Android tablet is really 32 bit, we attempted to cross-compile strace using the NDK in 32 bits. Again I went for <font face="Courier">android-ndk-r13b-linux-x86_64.zip</font>, which is in</div><div><br></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br><div><a href="https://developer.android.com/ndk/downloads/index.html">https://developer.android.com/ndk/downloads/index.html</a></div><div><br></div><div>and brought it up according to </div><div><br></div><div><a href="http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/">http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/</a></div><div><br></div><div>(except for the source fetch, which was just a download). OK. </div></div></div></blockquote><div><br></div><div>Instead of<font face="Courier"> aarch64-linux-android-gcc </font>I used<font face="Courier"> arm-linux-androideabi-gcc</font>, and similar for<font face="Courier"> strip</font>; instead of<font face="Courier"> --host=aarch64-linux </font>I used<font face="Courier"> --host=arm-linux</font>. <font face="Courier">./configure </font>worked but not<font face="Courier"> make</font>, which failed quickly on</div><div><br></div><div><font face="Courier">print_msgbuf.c:35:21: fatal error: sys/msg.h: No such file or directory</font></div><div><br></div><div>Are there any known paths to successful compilation of strace for the Android?</div><div><br></div><div>Larry Dickson</div><div>Space Sciences Corporation</div><div><br><div><div>On Jan 24, 2017, at 8:15 AM, Larry Dickson <<a href="mailto:tjoccam@tjoccam.com">tjoccam@tjoccam.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello strace developers,<div><br></div><div>We need strace on our Samsung S2 T710 Android tablet, and I tried to cross-compile it on our Dell XPS-13 (Ubuntu 14.04 LTS) laptop. I went for <font face="Courier">android-ndk-r13b-linux-x86_64.zip</font>, which is in</div><div><br><div><a href="https://developer.android.com/ndk/downloads/index.html">https://developer.android.com/ndk/downloads/index.html</a></div><div><br></div><div>and brought it up according to </div><div><br></div><div><a href="http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/">http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/</a></div><div><br></div><div>(except for the source fetch, which was just a download). OK. Then I downloaded<font face="Courier"> strace-4.15.tar.xz </font>from sourceforge and followed Muzso</div><div><br></div><div><a href="http://muzso.hu/2012/04/21/how-to-compile-strace-for-use-on-an-android-phone-running-an-arm-cpu">http://muzso.hu/2012/04/21/how-to-compile-strace-for-use-on-an-android-phone-running-an-arm-cpu</a></div></div><div><br></div><div>except that I fixed the names and substituted<font face="Courier"> aarch64-linux </font>for<font face="Courier"> arm-linux </font>in the<font face="Courier"> ./configure</font>, which worked. (I used<font face="Courier"> aarch64-linux </font>instead of<font face="Courier"> arm-linux </font>because our device CPU is an Exynos 5433, which is an ARMx8-A.)</div><div><br></div><div>The<font face="Courier"> make </font>failed with error</div><div><br></div><div><div><font face="Courier"># error struct flock64 definition not found in <linux/fcntl.h></font></div><div><br></div><div>which is an error discussed nowhere on the web, though I can find<font face="Courier"> struct . . . fcntl.h> </font>in three source files.</div></div><div><br></div><div>Thank you for any help you can give!</div><div><br></div><div>Larry Dickson</div><div>Space Sciences Corporation</div><div><br></div></div></blockquote></div><br></div></body></html>