I have a problem when I try to compile the following program
>module Main where
>
>import Random
>
>main = do rs <- randomIO (1,10)
> print (take 10 rs)
The command line is
>ghc2.10 -o rand Main.hs
where ghc2.10 is the symbolic link to the compiler itself, and I get the
following output
>Module version unchanged at 1
>/usr1/fcional/lib/ghc-2.10/libHS_cbits.a(getCPUTime.o): In function
>`clockTicks':
>getCPUTime.o(.text+0x1c): undefined reference to `getrusage'
It is important to note that I have already tried with this well known hack
>export LD_PRELOAD=/usr1/fcional/lib/ghcfix/getrusage.so
Does someone know how to solve this problem?
Thanks in advance.
Pablo