> >     $ ghc  -fglasgow-exts -package lang -c -o Floats.o Floats.hs
> >     In file included from 
> > /export/home/malcolm/lib/ghc-5.02.2/include/Stg.h:206,
> >                      from /tmp/ghc21103.hc:1:
> >     /export/home/malcolm/lib/ghc-5.02.2/include/PrimOps.h:976:
> >         parse error before `sigset_t'
> 
> Our Solaris box here is running 2.7, so I can't repro this problem I'm
> afraid.  

I think it is probably due to the ancient version 2.7.2 of gcc we
have by default on Solaris 2.6 here.  The sigset_t type is guarded
by #ifdefs as follows:

    #if defined(__EXTENSIONS__) || (__STDC__ - 0 == 0) || \
        defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
        defined(_XPG4_2)

and I have had problems with this kind of thing before when using gcc,
which I usually worked around by setting one of those symbols (chosen
at random).  I guess gcc-2.7.2 predates some of the C standardisation
efforts.

However, I just found out that we do have a newer version (2.95.2)
of gcc installed as well, although it is not the default compiler.
Everything seems to work okay when I use it, without any need to
set symbols.  Sorry to bother you with the (non-)bug report!

Regards,
    Malcolm
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to