----- "Mike Frysinger" <[email protected]> wrote: > On Friday 11 December 2009 06:30:01 Caspar Zhang wrote: > > Here are two patches to fix compiling error in ia64, > > I tested only in version ltp-full-20091130, please check > > your own version. They are for work well on my system. > > See the attachment. > > the ia64 change is incorrect. there's ia64 ifdef hacks in there > already which > are to be used.
the ia64 ifdef hacks in 20091130 are the following lines(in file
ptrace.h):
17 /* ia64's a real pain.. */
18 #if defined(__ia64__)
19 #undef FU_ia64_fpreg
20 #undef FU_pt_all_user_regs
21 #if ! defined(ia64_fpreg)
22 # define ia64_fpreg FU_ia64_fpreg
23 #endif
24 #if ! defined(pt_all_user_regs)
25 # define pt_all_user_regs FU_pt_all_user_regs
26 #endif
27 #endif
I don't think these codes could sovle the compiling problem. Nor the
following codes in latest cvs :
23 #if defined(__ia64__)
24 #if !defined(ia64_fpreg)
25 # define ia64_fpreg FU_ia64_fpreg
26 #endif
27 #if !defined(pt_all_user_regs)
28 # define pt_all_user_regs FU_pt_all_user_regs
29 #endif
30 #undef FU_ia64_fpreg
31 #undef FU_pt_all_user_regs
32 #endif /* defined(__ia64__) */
I tried to compile in RHEL5u4(kernel 2.6.18) but failed. I have given
the error mesage in the patch:
In file included from /usr/include/asm/ptrace.h:58,
from ../../syscalls/ptrace/ptrace.h:17,
from vfork.c:44:
/usr/include/asm/fpu.h:57: error: redefinition of ‘struct ia64_fpreg’
In file included from ../../syscalls/ptrace/ptrace.h:17,
from vfork.c:44:
/usr/include/asm/ptrace.h:208: error: redefinition of ‘struct pt_all_user_regs’
make[5]: *** [vfork] Error 1
System told me there was a definition conflict, but I could only find one
definition in my system. I have searched the whole system and found the
definition was in <asm/fpu.h>, which was included by <asm/ptrace.h>.
I just deleted #include <asm/ptrace.h> from
testcases/kernel/syscalls/ptrace/ptrace.h
and the compilation continued till the cleanup-not-found error occured(My
second patch should fix this problem). I don't know why stop including
<asm/ptrace.h>
can pass the compilation. I attach the <sys/ptrace.h> <asm/ptrace.h>
<linux/ptrace.h>
from ia64 system(kernel 2.6.18) to the mail, may this help.
>
> the ppc64 issue is not ppc64 or ptrace specific. garrett has a
> different fix
> in the pipeline for that.
> -mike
ptrace.h.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
