David Barton wrote:
> Oh, dear.  This one I don't even know how to *start* with.

You mean -odir, don't you?   :-)

> When compiling the library, the compile crashes with the following:
> [...]
>   /usr/src/ghc/tmp/ghc8242.hc:35545: structure has no member named `tm_zone'
>   /usr/src/ghc/tmp/ghc8242.hc:36256: structure has no member named `tm_zone'
>   /usr/src/ghc/tmp/ghc8242.hc:36304: structure has no member named `tm_gmtoff'
>   /usr/src/ghc/tmp/ghc8242.hc:37074: structure has no member named `tm_zone'
> 
> Given that the names listed don't even occur in Time.lhs, and the file
> "ghc8242.hc" doesn't exist in the tmp directory when I try to look at
> it, I am sunk without a trace.  Any suggestions?

Looks like an old friend of mine (problems on HP-UX some releases ago).
The problem is fptools/ghc/lib/cbits/timezone.h. It tries to be
clever about handling time info on different Unices. What does
"grep zone fptools/config.cache" yield? Here the output from our
Linux boxes:

   ac_cv_altzone=${ac_cv_altzone=no}
   ac_cv_struct_tm_zone=${ac_cv_struct_tm_zone=no}
   ac_cv_type_timezone=${ac_cv_type_timezone=time_t}

Perhaps configure doesn't handle the new Redhat distribution correctly.
"POSIX-man, we need your help!!"

-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne

Reply via email to