[Ltrace-devel] Problem running ltrace on Android
DUSHYANT ARORA
dushyantarora13 at gmail.com
Mon May 16 05:52:44 UTC 2011
Hello All,
I cross-compiled ltrace to ARM architecture. I statically linked arm version
of libelf and libiberty to create the executable.
gcc main.o /../../libelf.a /../../libiberty.a -libsupc++ -o ltrace
In the last step of compilation I had got this warning.
[sbox-android: ~/ltrace-0.5.3] > gcc --static main.o libltrace.a -lsupc++
-o ltrace
/scratchbox/compilers/arm-linux-cs2009q3-67/lib/libelf/usr/lib/libelf.a
/scratchbox/compilers/arm-linux-cs2009q3-67/lib/binutils-dev/usr/lib/libiberty.a
libltrace.a(execute_program.o): In function `change_uid':
/home/bruce/Desktop/ltrace-0.5.3/execute_program.c:35: warning: Using
'initgroups' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/home/bruce/Desktop/ltrace-0.5.3/execute_program.c:28: warning: Using
'getpwnam' in statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
When I run ltrace on the Android Emulator I get the following error:
# ./ltrace ls -l
./ltrace ls -l
./ltrace: Couldn't get .hash data from "/system/bin/ls"
I have spent weeks now on this. Please help.
Thanks,
Dushyant
PS - If someone can provide a working ltrace binary on Android that would be
really great!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20110516/9cadd155/attachment-0001.htm>
More information about the Ltrace-devel
mailing list