problem with unix package
Simon Marlow
simonmarhaskell at gmail.com
Mon Apr 23 04:24:41 EDT 2007
Frederik Eaton wrote:
>> Or as was suggested as an temporary workaround just compile your code
>> -fvia-C and then load it up in GHCi.
>
> I've compiled everything with -fvia-C and I still get the same error:
>
> $ ghci -package vectro
> ...
> Loading package base ... linking ... done.
> Loading package mtl-1.0 ... linking ... done.
> Loading package haskell98 ... linking ... done.
> Loading package X11-1.2 ... linking ... done.
> Loading package template-haskell ... linking ... done.
> Loading package stm-2.0 ... linking ... done.
> Loading package fgl-5.2 ... linking ... done.
> Loading package parsec-2.0 ... linking ... done.
> Loading package html-1.0 ... linking ... done.
> Loading package network-2.0 ... linking ... done.
> Loading package futility-base-0.1.9 ... linking ... done.
> ghc-6.6: /home/frederik/lib/unix-2.0/ghc-6.6/HSunix-2.0.o: unknown symbol `lstat'
> Loading package unix-2.0 ... linking ... ghc-6.6: unable to load package `unix-2.0'
>
> What am I doing wrong?
How did you compile with -fvia-C? I think you'd have to add it to the
ghc-options field in unix.cabal, using the unix package that you got from
Hackage. The unix package from darcs needs the darcs version of Cabal, which
you don't have.
Cheers,
Simon
More information about the Libraries
mailing list