yann@1045: This patch is needed on newer uclibc becuase the uclibc header generation yann@1045: mechanism generates the sysnum.h properly NR_cacheflush is defined for ARM yann@1045: but there is no cachectl.h file which is exported to userspace. Strace yann@1045: assumes that if SYS_cacheflush is defined than it icludes asm/cachectl.h yann@1045: which breaks the build for ARM now. yann@1045: yann@1045: This patch adds a check for ARM architecture. yann@1045: yann@1045: -Khem yann@1045: yann@1045: Here is error yann@1045: yann@1045: | if ccache arm-angstrom-linux-uclibcgnueabi-gcc -march=armv5te -mtune=arm926ej-s -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/arm -I./linux/arm -Ilinux -I./linux -isystem/home/kraj/work/oe/build/uclibc/tmp-omap5912osk/staging/arm-angstrom-linux-uclibcgnueabi/usr/include -Wall -isystem/home/kraj/work/oe/build/uclibc/tmp-omap5912osk/staging/arm-angstrom-linux-uclibcgnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -MT term.o -MD -MP -MF ".deps/term.Tpo" -c -o term.o term.c; \ yann@1045: | then mv -f ".deps/term.Tpo" ".deps/term.Po"; else rm -f ".deps/term.Tpo"; exit 1; fi yann@1045: | system.c:69:26: error: asm/cachectl.h: No such file or directory yann@1045: | make[1]: *** [system.o] Error 1 yann@1045: | make[1]: *** Waiting for unfinished jobs.... yann@1045: | signal.c: In function 'sys_sigreturn': yann@1045: | signal.c:1221: warning: passing argument 4 of 'ptrace' makes integer from pointer without a cast yann@1045: | make[1]: Leaving directory `/home/kraj/work/oe/build/uclibc/tmp-omap5912osk/work/armv5te-angstrom-linux-uclibcgnueabi/strace-4.5.14-r5/strace-4.5.14' yann@1045: | make: *** [all] Error 2 yann@1045: | FATAL: oe_runmake failed yann@1045: yann@1045: Index: strace-4.5.14/system.c yann@1045: =================================================================== yann@1045: --- strace-4.5.14.orig/system.c 2008-05-15 20:23:16.000000000 -0700 yann@1045: +++ strace-4.5.14/system.c 2008-05-15 20:24:03.000000000 -0700 yann@1045: @@ -70,7 +70,7 @@ yann@1045: #include yann@1045: #endif yann@1045: yann@1045: -#ifdef SYS_cacheflush yann@1045: +#if defined SYS_cacheflush && !defined ARM yann@1045: #include yann@1045: #endif