Hi!

The addressed issue is fixed now, thanks!

But we got another issue open:

gcc -m64 -DHAVE_CONFIG_H -I. -I.. -Ilinux/sparc64 -I../linux/sparc64 -Ilinux -
I../linux   -Wall -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o 
../util.c
../util.c: In function ‘printcall’:
../util.c:1254: error: ‘struct pt_regs’ has no member named ‘pc’
make[2]: *** [util.o] Error 1
make[2]: Leaving directory `/home/fs/strace-4.5.19/build64'
make[1]: *** [all] Error 2

Best regards
Frederik Schüler

On Friday 09 October 2009 22:48:55 Mike Frysinger wrote:
> 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
> 

-- 
ENOSIG

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to