This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC] Fix MIPS struct sigcontext redefinition


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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]