TclHaskell
----------
Has anyone built TclHaskell for Hugs 98/Solaris recently?
I am trying to build TclHaskell for Hugs 98 running on Solaris 2.7 and
am running into problems. WhenI try to load TclPrims it gives me the
following error message when trying to dynamically link the image:
ld.so.1: hugs: fatal: relocation error: file
/home/cdornan/TclHaskell/src/TclPrim.so: symbol XSolarisIASetProcessInfo: referenced
symbol not found
I am linking TclPrims.so with the same libraries as I used to compile
the demos for GHC, but with the -ldl knocked off, namely:
-ltk8.3 -ltcl8.3 -lX11 -lm -lsocket -lnsl -lintl -lw
This looks about right from what I remeber of previous versions of TclHaskell.
I then downloaded and built Haskell Direct 0.16 with a view to
regenerating the C-calling stubs...
Haskell Direct
--------------
Haskell direct built itself no problem. [A small glitch: it tried
to get the ghc driver from somewhere like $(TOP)/drivers (I think),
which didn't work despite having placed hdirect-0.16 in fptools.]
When I tried to build the math demo, I ran into problems. (Another
couple of glitches: there is no HDirect.h in examples/math; the
makefile generates math.hs rather than Math.hs.)
The Makefile compiles math.idl OK, but when I try to load Main.hs it
fails to load ../../lib/PointerPrim.hs with:
ERROR "../../lib/PointerPrim.hs" (line 34): Syntax error in declaration
(unexpected keyword "import")
When I look at lib/PointerPrim.hs line 34:
foreign import stdcall "primNoFree" prim_PointerPrim_primNoFree :: Addr -> IO
()
Does anyone know whether this is valid for Hugs 98 (February 2000)?
Any help appreciated.
Cheers,
Chris Dornan
[EMAIL PROTECTED]