Difficulties compiling hmake / HaXml

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Thu, 29 Mar 2001 18:51:54 +0100

> I tried to change the "configure" file as you described -- and
> after "./configure" and "make" I still get the same error message

Apologies.  My patch (and the description of the reason why 'hmake'
needed it) were completely bogus.  That will teach me to fix bugs
from memory rather than looking at the source code...

Looking more closely, the Posix library is in fact required by
hmake interactive (when built by ghc) for the use of the function
'getProcessID', which is used solely to generate unique temporary

In src/interpreter/HmakeConfig.hs, in the section

    #ifdef __GLASGOW_HASKELL__
    import IOExts (unsafePerformIO)
    import Posix (getProcessID)

try removing the line 'import Posix' and replacing it with something
trivial like 'getProcessID = return 3154' where the actual number
is arbitrary.

This should (finally) get 'hmake' working for you.  I will try to
discover an configuration mechanism to automate this for future

Thanks for your patience and persistence!