preparing to 4.5.19 release

Mike Frysinger vapier at gentoo.org
Fri Oct 9 01:09:22 UTC 2009


On Thursday 08 October 2009 20:33:31 Frederik Schüler wrote:
> On Friday 09 October 2009 01:14:13 Dmitry V. Levin wrote:
> > On sparc, it is defined as "static struct regs regs;"
> > Nothing has changed in this area since v4.5.18.
> 
> Yes, still barfing:
> 
> gcc -DHAVE_CONFIG_H -I. -I.. -Ilinux/sparc -I../linux/sparc -Ilinux
>  -I../linux -Wall -g -O2 -MT syscall.o -MD -MP -MF .deps/syscall.Tpo -c -o
>  syscall.o ../syscall.c
> ../syscall.c: In function ‘get_scno’:
> ../syscall.c:1192: error: invalid use of undefined type ‘struct regs’
> ../syscall.c:1234: error: invalid use of undefined type ‘struct regs’
> ../syscall.c:1234: warning: format ‘%08x’ expects type ‘unsigned int’, but
> argument 3 has type ‘long unsigned int’
> 
> (sid)fs at smetana:~/strace-4.5.19$ uname -a
> Linux smetana 2.6.26-2-sparc64-smp #1 SMP Thu Aug 20 16:48:42 UTC 2009
>  sparc64 GNU/Linux
> (sid)fs at smetana:~/strace-4.5.19$ gcc --version
> gcc (Debian 4.3.4-4) 4.3.4
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

not related to the running kernel or gcc/glibc.  'struct regs' comes from 
asm/regs*.h which comes from the kernel headers.  2.6.28 and older installed 
it, but it was killed off as "useless" during 2.6.29 development.  presumably 
you're using newer kernel headers version.

going by arch/sparc/kernel/ptrace_*.c, looks like it should be switched to 
struct pt_regs as asm/ptrace.h is still installed.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20091008/4c83b4ec/attachment.bin>


More information about the Strace-devel mailing list