Re: Windows Install Issues for erf (and statistics)

I couldn't find anything - happy to look into it if someone points me to the ticket. Cheers, Simon On 20/09/2009 12:22, Lennart Augustsson wrote:
I complained about the very same thing, I think there's even a ghc bug report about it. It's something about how symbols are looked up and loaded in ghci. I've not been able to come up with a workaround either.
-- Lennart
On Sun, Sep 20, 2009 at 3:37 PM, Dominic Steinitz
wrote: The package statistics uses the package erf. Doing cabal install statistics works fine but when I try to use anything I get:
Loading package syb ... linking ... done. Loading package base-3.0.3.0 ... linking ... done. Loading package erf-1.0.0.0 ... linking ...<interactive>: C:\Program Files\Haskell\erf-1.0.0.0\ghc-6.10.1\HSerf-1.0.0.0.o: unknown symbol `_erfc' : unable to load package `erf-1.0.0.0'
I assume that erf is looking for some C functions which are available on linux but not windows.
I'm not sure what the solution is. Should cabal complain? Should there be some documentation on the erf homepage telling windows users what to do? Or at least that it doesn't work on windows?
Dominic.
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

Simon Marlow wrote:
I couldn't find anything - happy to look into it if someone points me to the ticket.
I think this is it: http://hackage.haskell.org/trac/ghc/ticket/3513 Also this looks relevant: http://permalink.gmane.org/gmane.comp.lang.haskell.glasgow.user/17456

On 21/09/2009 22:14, Dominic Steinitz wrote:
Simon Marlow wrote:
I couldn't find anything - happy to look into it if someone points me to the ticket.
I think this is it:
The problem there seems to be that the network library is calling functions that do not exist on older versions of Windows. I don't think there's anything that GHC can do about that.
Also this looks relevant:
http://permalink.gmane.org/gmane.comp.lang.haskell.glasgow.user/17456
Something C++ specific, by the looks of it. Are you sure the problem you had isn't just that the C erfc function is not available on Windows? Oh, perhaps the problem that Lennart is referring to is that when GHCi loads up a package it requires that all the symbols in the package can be resolved, whereas when you statically link a .a library we only have to resolve the symbols required by the library modules that the program actually refers to. So one workaround would be to link in a dummy erfc() function, or alternatively hack the erf pacakge so that it omits the offending parts on Windows. Cheers, Simon

On Tue, Sep 22, 2009 at 5:43 AM, Simon Marlow
Are you sure the problem you had isn't just that the C erfc function is not available on Windows?
I looked for it, and I can't find any documentation on MSDN, outside of Excel functions. I have a BSD-licensed C implementation of the function, so we can get that package working on all platforms if desired. Lennart?
participants (3)
-
Bryan O'Sullivan
-
Dominic Steinitz
-
Simon Marlow