Simon Marlow wrote:

> Alastair Reid <[EMAIL PROTECTED]> writes:
>
> > ghc-3.02 -c -o parser/hschooks.o -cpp -fglasgow-exts -Rghc-timing -I.
> > -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:ty
> > pecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:ab
> > sCSyn:main:reader:profiling:parser:nativeGen -recomp -DDEBUG -dcore-lint
> > parser/hschooks.c
> >                  from parser/hschooks.c:10,
> > /usr/local/lib/ghc-3.02/includes/StgMacros.h:1698: parse error before
> > `sigset_t'
> > make: *** [parser/hschooks.o] Error 1
>
> Hmm, could be a glibc problem.  Thanks for the report, I'll look into it.

Included is a workaround patch to the installed ghc-3.02 include file:
/usr/local/lib/ghc-3.02/includes/stgdefs.h.

--Jeff

P.S.  Even tho' you need 3.02 to build the CVS snapshot, configure defaults to using
2.10.
*** stgdefs.h   1998/10/06 16:13:06     1.1
--- stgdefs.h   1998/10/06 16:14:18
***************
*** 78,83 ****
--- 78,86 ----
  #define POSIX_C_SOURCE _POSIX_C_SOURCE
  #endif
  
+ /* for RedHat 5.1 */
+ #define __need_sigset_t 1
+ 
  #include <unistd.h>
  #include <signal.h>
  #endif

Reply via email to