bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-libsigsegv] ‘struct sigcontext’ redefinition on mips64el-linux


From: Bruno Haible
Subject: Re: [bug-libsigsegv] ‘struct sigcontext’ redefinition on mips64el-linux-gnu
Date: Sat, 18 Feb 2017 20:45:24 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-62-generic; KDE/5.18.0; x86_64; ; )

Hi Ludo,

In https://lists.gnu.org/archive/html/bug-libsigsegv/2013-05/msg00000.html
you wrote:

> When cross-compiling to mips64el-linux-gnu (N32 ABI), with libc 2.17, I
> hit the following error 
> ...
> error: redefinition of 'struct sigcontext'

> I worked around it by commenting out the ‘#include <asm/sigcontext.h>’
> line from fault-linux-mips-old.h [0].

You encountered this problem because the autoconfiguration of libsigsegv
is based on some AC_TRY_RUN / AC_RUN_IFELSE tests. For cross-compilation,
there is a cache of known platforms in each of the tests. However, because
Linux kernel and glibc are evolving, we cannot just put 'mips*-*-linux*'
into the cache of known platforms.

The better fix would be to make configure pick CFG_FAULT=fault-linux-mips.h
instead of CFG_FAULT=fault-linux-mips-old.h. Probably it is sufficient to
run "./configure sv_cv_fault_posix=yes"

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]