From: Sven M. H. <pe...@gm...> - 2001-06-06 06:41:14
|
On Tue, Jun 05, 2001 at 08:47:07AM -0600, Brian Paul wrote: > Chaskiel M Grundman wrote: > > > > Around line 90 of xc/extras/Mesa/src/X86/common_x86.c > > #if defined(__linux__) && defined(_POSIX_SOURCE) > > [...] > > static void sigfpe_handler( int signal, struct sigcontext sc ) > > { > > message( "SIGFPE, " ); > > > > if ( sc.fpstate->magic != 0xffff ) { > > > > fpstate.magic is not defined in asm/sigcontext.h on my RedHat 6.2 box > > (which has a stock 2.2.19 kernel, not the redhat one). It is defined in > > the linux 2.4.5 asm/sigcontext.h, and I'm assuming the reason this is > > working for most people is that glibc 2.2's bits/sigcontext.h defines > > these things itself rather than deferring to the kernel headers. > > Something ought to be done about this, I think. > > > > For my own purposes, I'm just going to disable SSE support entirely... > > > If anyone knows a solution to this I'd like to hear it. As far as autoconf is concerned, a simple test case will find out whether fpstate.magic is defined. The code would use an #ifdef. The usual way, really. Sven -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |