preparing to 4.5.19 release

Mike Frysinger vapier at gentoo.org
Fri Oct 9 20:48:55 UTC 2009


On Friday 09 October 2009 07:42:19 Frederik Schüler wrote:
> thanks fot the patch, with a small fix, the 32bit strace binary on sparc
>  builds now:
> 
> diff --git a/util.c b/util.c
> index c96eb0a..ddb7195 100644
> --- a/util.c
> +++ b/util.c
> @@ -83,7 +83,9 @@
>  # define fpq kernel_fpq
>  # define fq kernel_fq
>  # define fpu kernel_fpu
> +# ifdef HAS_ASM_REG_H
>  # include <asm/reg.h>
> +# endif
>  # undef fpq
>  # undef fq
>  # undef fpu

this section of code should simply be deleted as we no longer want to pull in 
the asm/reg.h header

> but the 64bit binary fails:
> 
> gcc -m64 -DHAVE_CONFIG_H -I. -I.. -Ilinux/sparc64 -I../linux/sparc64
>  -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:1177: error: ‘struct pt_regs’ has no member named ‘pc’
> make[2]: *** [syscall.o] Error 1
> make[2]: Leaving directory `/home/fs/strace-4.5.19/build64'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/fs/strace-4.5.19/build64'
> make: *** [stamp-build64] Error 2

that's easy to fix

of course, now that ive done all this, perhaps the obvious fix was to delete 
the asm/reg.h include and then copy the 'struct regs' into the local defs.h 
for sparc linux systems ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-sparc-ptrace.patch
Type: text/x-patch
Size: 11118 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20091009/3f6af150/attachment.bin>
-------------- 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/20091009/3f6af150/attachment-0001.bin>


More information about the Strace-devel mailing list