--- Begin Message ---
Hi,
PFA the patch which can be a possible solution to the compilation problems
that you had mentioned about regarding the ptrace06 compilation on PPC64 and
IA-64. I haven't tested on PPC64 and IA-64 as I do not have access to them.
Let me know if it work fine, and can be integrated into the LTP tree.
link to mailing list entry --
http://www.nabble.com/ptrace06-is-not-being-compiled-td23035203.html#a23328058
Regards,
rohit
-----------------------------
# uname -r
2.6.9-89.EL
# rpm -q glibc
glibc-2.3.4-2.43
# make
cc -I../../../../include -Wall *ptrace06*.c -L../../../../lib -lltp -o
*ptrace06*
In file included from *ptrace06*.c:25:
spawn_ptrace_child.h:97: error: `*PTRACE_GETSIGINFO*' undeclared here (not
in a function)
spawn_ptrace_child.h:97: error: nonconstant array index in initializer
spawn_ptrace_child.h:97: error: (near initialization for `strings')
spawn_ptrace_child.h:98: error: `*PTRACE_SETSIGINFO*' undeclared here (not
in a function)
spawn_ptrace_child.h:98: error: nonconstant array index in initializer
spawn_ptrace_child.h:98: error: (near initialization for `strings')
*ptrace06*.c:143: error: initializer element is not constant
*ptrace06*.c:143: error: (near initialization for
`test_cases[48].request')
...
--------------
diff -ruxB ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/Makefile
ltp-full-20090430/testcases/kernel/syscalls/ptrace/Makefile
--- ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/Makefile
2008-10-15 22:37:36.000000000 +0530
+++ ltp-full-20090430/testcases/kernel/syscalls/ptrace/Makefile 2009-07-15
08:50:37.000000000 +0530
@@ -19,7 +19,8 @@
CFLAGS += -I../../../../include -Wall
LDLIBS += -L../../../../lib -lltp
-SRCS = $(wildcard *[^6].c)
+#SRCS = $(wildcard *[^6].c)
+SRCS = $(wildcard *.c)
TARGETS = $(patsubst ptrace%.c,ptrace%,$(SRCS))
all: $(TARGETS)
diff -ruxB ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/ptrace06.c
ltp-full-20090430/testcases/kernel/syscalls/ptrace/ptrace06.c
--- ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/ptrace06.c
2009-03-23 19:06:01.000000000 +0530
+++ ltp-full-20090430/testcases/kernel/syscalls/ptrace/ptrace06.c
2009-07-15 08:50:37.000000000 +0530
@@ -135,6 +135,7 @@
PTRACE_SETFGREGS,.data = -3}, {
PTRACE_SETFGREGS,.data = -4},
#endif
+#ifdef PTRACE_GETSIGINFO
{
PTRACE_GETSIGINFO,.data = 0}, {
PTRACE_GETSIGINFO,.data = 1}, {
@@ -143,7 +144,10 @@
PTRACE_GETSIGINFO,.data = -1}, {
PTRACE_GETSIGINFO,.data = -2}, {
PTRACE_GETSIGINFO,.data = -3}, {
- PTRACE_GETSIGINFO,.data = -4}, {
+ PTRACE_GETSIGINFO,.data = -4},
+#endif
+#ifdef PTRACE_SETSIGINFO
+ {
PTRACE_SETSIGINFO,.data = 0}, {
PTRACE_SETSIGINFO,.data = 1}, {
PTRACE_SETSIGINFO,.data = 2}, {
@@ -151,7 +155,9 @@
PTRACE_SETSIGINFO,.data = -1}, {
PTRACE_SETSIGINFO,.data = -2}, {
PTRACE_SETSIGINFO,.data = -3}, {
-PTRACE_SETSIGINFO,.data = -4},};
+ PTRACE_SETSIGINFO,.data = -4},
+#endif
+};
int TST_TOTAL = ARRAY_SIZE(test_cases);
diff -ruxB
ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h
ltp-full-20090430/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h
---
ltp-full-20090430_orig/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h
2008-11-02 11:36:00.000000000 +0530
+++ ltp-full-20090430/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h
2009-07-15 08:50:36.000000000 +0530
@@ -94,8 +94,12 @@
#ifdef PTRACE_SETREGS
SPT(SETREGS)
#endif
+#ifdef PTRACE_GETSIGINFO
SPT(GETSIGINFO)
+#endif
+#ifdef PTRACE_SETSIGINFO
SPT(SETSIGINFO)
+#endif
#ifdef PTRACE_GETFGREGS
SPT(GETFGREGS)
#endif
--- End Message ---
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list