sigcontext_struct

Godmar Back gback@cs.utah.edu
Mon Oct 18 10:25:00 GMT 1999


> 
> > Date: Fri, 15 Oct 1999 10:03:07 -0700
> > From: Tom Tromey <tromey@cygnus.com>
> > 
> > >>>>> "Jim" == James A Robinson <jim.robinson@stanford.edu> writes:
> > 
> > Jim> Where is the def for sigcontext_struct supposed to come from on a
> > Jim> Linux x86 machine?  The only place I find it in my 2.2.12 linux
> > Jim> tree is the kernel tree's include/asm-ppc/sigcontext.h. I'm
> > Jim> trying to compile libgcj, and ran into problems with both the
> > Jim> production snapshot and 1999-10-14 compiling prims.cc. =(
> > 
> > Our code currently expects to find this via signal.h.
> > 
> > I'm running a mostly unmodified x86 Debian 2.0.
> > I see this in sigcontext.h:
> > 
> >     /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
> >        we need sigcontext.  */
> >     #define sigcontext_struct sigcontext
> 
> Oh, hell, they've changed it.
> 
> > Maybe we could include <sigcontext.h> before <signal.h> in
> > i386-signal.h and then use sigconext and not sigcontext_struct?
> 
> Support for the old sigcontext stuff is dying.
> 
> I think that we should drop support for the old sigcontext stuff
> altogether and use the newer SystemV siginfo handler instead.  I've
> already written this, and it's just a matter of checking it in to
> sourceware.  (Tom: it's in devo/libjava if you want to have a look.)


A bit of related information I thought I'd pass along.

As you know, siginfo doesn't work on Linux 2.0.x kernels.
However, there are some installations out there that run 2.0.x kernels
with versions of glibc that define SA_SIGINFO in their header files.

Therefore, autoconf-testing for SA_SIGINFO is *not* the way to test whether
siginfo is supported on a given platform.  You need some other test
here.

If you were interested in building binaries that run on 2.0.x systems,
you couldn't rely siginfo anyway.

	- Godmar



More information about the Java mailing list