This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH][RFC] Fix MIPS struct sigcontext redefinition
- From: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>
- To: drow at false dot org
- Cc: vapier at gentoo dot org, libc-ports at sourceware dot org, kaminaga at sm dot sony dot co dot jp
- Date: Wed, 10 Jan 2007 13:29:54 +0900 (JST)
- Subject: Re: [PATCH][RFC] Fix MIPS struct sigcontext redefinition
- References: <20061222.105000.85683011.kaminaga@sm.sony.co.jp> <200612220253.13702.vapier@gentoo.org> <20070101170258.GA14774@nevyn.them.org>
Hi,
sorry for late reply...
From: Daniel Jacobowitz <drow@false.org>
> On Fri, Dec 22, 2006 at 02:53:12AM -0500, Mike Frysinger wrote:
> > On Thursday 21 December 2006 20:50, Hiroki Kaminaga wrote:
> > > #include <asm/sigcontext.h>
> >
> > this is your problem ... mixing userspace and kernel headers
>
> Yes. Do not do this. Horoki, can you explain why you needed to?
While I was compiling strace package for MIPS, configure was doing
conftest.c:
#include <signal.h>
#include <asm/sigcontext.h>
mips-unknown-linux-gcc -c -O2 -g conftest.c >&5
In file included from conftest.c:65:
/usr/local/mips-unknown-linux/devel/target/usr/include/asm/sigcontext.h:20: error: redefinition of 'struct sigcontext'
So, from comments from Mike and you, I guess this is strace configure
problem, and not glibc-ports problem?
# earlier glibc had ifdefs to not redefine struct sigcontext.
Best Regards,
(Hiroki Kaminaga)
t
--