[PATCH][RFC] strace fails to compile on glibc-2.5/MIPS
Hiroki Kaminaga
kaminaga at sm.sony.co.jp
Wed Jul 11 03:49:15 UTC 2007
Hi,
From: Roland McGrath <roland at redhat.com>
Subject: Re: [PATCH][RFC] strace fails to compile on glibc-2.5/MIPS
Date: Thu, 5 Jul 2007 12:08:08 -0700 (PDT)
>
> I put in a change with a configure check that should handle either version.
>
I've checked out your change in configure.ac and signal.c.
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
* configure.ac: Check for struct sigcontext.sc_hi2.
* signal.c (sys_sigreturn) [MIPS]: Use sc_hi2 vs sc_sigset if found.
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
However, I met below problem:
configure does not recognize sc_hi2
...
checking for struct sigcontext.sc_hi2... no
...
This was because of failure to test sc_hi2 in conftest.c.
Cause was that bits/sigcontext.h, included by signal.h and asm/sigcontext.h
both defines struct sigcontext, thus compile fails as multiple definition.
bits/sigcontext.h was provided by glibc, whereas asm/sigcontext.h was
provided by kernel header.
I think this should do:
remove #include <asm/sigcontext.h> from AC_CHECK_MEMBERS([struct
sigcontext.sc_hi2] in configure.ac
Also, could you give me generated configure script?
Best Regards,
(Hiroki Kaminaga)
t
--
More information about the Strace-devel
mailing list