Hi,

don't have Solaris 2.6 here, and we're not aware of anyone having
compiled up ghc under 2.6, so the error you're seeing below may not be
the only one..

The breakage below looks as if you're not picking up the typedef of
u_long. Try adding

#ifdef solaris2_TARGET_OS
#define __EXTENSIONS__
#endif

at the top of storage/SMstats.lc (i.e., before you #include
<sys/types.h>), and see if that exposes it. If not, then you'll need
to find out what #ifdefs the definitions of u_long is protected by in
sys/types.h.

What version of gcc are you using?

--Sigbjorn

Martin Leucker writes:
> Hi,
> 
> after a successful configuration and gmake boot, gmake all fails
> with the following error message:
> 
> ../../ghc/driver/ghc -I../includes -optc-DGCap   -O -optc-DIN_GHC_RTS=1 
>-I../runtime/storage          -c storage/SMstats.c -o storage/SMstats.o
> In file included from /usr/include/sys/old_procfs.h:27,
>                  from /usr/include/sys/procfs.h:29,
>                  from storage/SMstats.c:73,
> /usr/include/sys/procfs_isa.h:23: parse error before `instr_t'
> /usr/include/sys/procfs_isa.h:23: warning: data definition has no type or storage 
>class
> /usr/include/sys/procfs_isa.h:87: parse error before `uint32_t'
> 
> and more parse errors in the same style...
> 
> What to do?
> 
> Thanks,
> 
> Martin

Reply via email to