Strace-4.5.14 patch for arm

FALE(Leopold Faschalek) FALE at skidata.com
Wed Mar 22 04:53:12 UTC 2006


Hi,

i have made a patch to compile strace-4.5.14 for arm which gives following error

[sbox-SD675: ~/strace-4.5.14] > make
make  all-am
make[1]: Entering directory `/home/fale/strace-4.5.14'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/arm -I./linux/arm -Ilinux -I./linux   -Wall -g -O2 -MT strace.o -MD -MP -MF ".deps/strace.Tpo" -c -o strace.o strace.c; \
then mv -f ".deps/strace.Tpo" ".deps/strace.Po"; else rm -f ".deps/strace.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -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; \
then mv -f ".deps/syscall.Tpo" ".deps/syscall.Po"; else rm -f ".deps/syscall.Tpo"; exit 1; fi
syscall.c: In function `get_scno':
syscall.c:1082: warning: passing arg 4 of `ptrace' makes integer from pointer without a cast
syscall.c:1088: error: invalid use of undefined type `struct pt_regs'
syscall.c:1092: error: invalid use of undefined type `struct pt_regs'
syscall.c:1096: error: invalid use of undefined type `struct pt_regs'
syscall.c:1102: error: invalid use of undefined type `struct pt_regs'
syscall.c:1102: warning: passing arg 4 of `ptrace' makes integer from pointer without a cast
syscall.c: In function `syscall_fixup':
syscall.c:1363: warning: unused variable `pid'
syscall.c: In function `get_error':
syscall.c:1591: error: invalid use of undefined type `struct pt_regs'
syscall.c:1591: error: invalid use of undefined type `struct pt_regs'
syscall.c:1593: error: invalid use of undefined type `struct pt_regs'
syscall.c:1596: error: invalid use of undefined type `struct pt_regs'
syscall.c: In function `force_result':
syscall.c:1827: error: invalid use of undefined type `struct pt_regs'
syscall.c:1828: error: invalid use of undefined type `struct pt_regs'
syscall.c: In function `syscall_enter':
syscall.c:2103: error: invalid use of undefined type `struct pt_regs'
syscall.c:1941: warning: unused variable `pid'
syscall.c: At top level:
syscall.c:834: error: storage size of `regs' isn't known
make[1]: *** [syscall.o] Error 1
make[1]: Leaving directory `/home/fale/strace-4.5.14'
make: *** [all] Error 2

the patch fixes the missing 
#include <asm/ptrace.h>

best greetings

Leopold Faschalek
-------------------------
Research & Development / Senior Software Developer

SKIDATA AG
Untersbergstraße 40
A-5083 Gartenau
[P] +43(0)6246/888-0
[F] +43(0)6246/888-7
[e] Leo.Faschalek at skidata.com
[w] www.skidata.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-4.5.14-arm.patch
Type: application/octet-stream
Size: 588 bytes
Desc: strace-4.5.14-arm.patch
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20060322/1f4c410d/attachment.obj>


More information about the Strace-devel mailing list