Hi,

I've just downloaded strace-4.5.17 (from sourceforge) and wanted to
cross-compile it for ARM using the csl2007q3 toolchain.

As the configure script doesn't recognize the default host prefix
"arm-none-linux-gnueabi" of Code Sourcery, I've done:
CC=${CROSS_COMPILE}gcc ./configure --host=arm-linux
which works well, but during "make" I get:

arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -Ilinux/arm -I./linux/arm
-Ilinux -I./linux   -Wall -g -O2 -MT syscall.o -MD -MP -MF .deps/syscall.Tpo
-c -o syscall.o syscall.c
syscall.c:136:25: error: syscallent1.h: No such file or directory
syscall.c:169:23: error: errnoent1.h: No such file or directory
syscall.c: In function 'get_scno':
syscall.c:1001: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c:1029: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c: In function 'syscall_fixup':
syscall.c:1337: warning: unused variable 'pid'
syscall.c: In function 'syscall_enter':
syscall.c:1933: warning: unused variable 'pid'
make[1]: *** [syscall.o] Fehler 1


and indeed there's neither syscallent1.h nor errnoent1.h in linux/arm:
[EMAIL PROTECTED]:~/src/strace-4.5.17$ ls linux/arm/
syscallent.h

The problem is that SUPPORTED_PERSONALITIES is set at 2 in defs.h for ARM.

If I set it to 1 instead, it compiles without errors and works on my
embedded board.

As I'm new to compile strace myself, I'd like to know where the error is:
should it be set to 1 or are these two files missing?

Regards,
Matthieu.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to