On Tue, Dec 18, 2007 at 09:20:22AM +1100, Rob Moss wrote: > On 18/12/2007, David Roundy <[EMAIL PROTECTED]> wrote: > > On Mon, Dec 17, 2007 at 03:55:20PM +0000, Simon Marlow wrote: > > > Looks like it should be > > > > > > foreign import stdcall "winbase.h SleepEx" c_SleepEx ... > > > > > > (i.e. stdcall rather than ccall) > > > > > > this would cause it to work with -fvia-C but fail with -fasm, because the > > > C > > > compiler can see the prototype. Arguably a bug in -fvia-C, but it's been > > > that way for a very long time. > > > > I'm not sure I understand what's gone wrong here. Do either of you have a > > recommendation for something our fearless user can try? or a patch for us > > to apply? > > Thanks a lot everybody! By changing the import from ccall to stdcall, > I was able to successfully compile darcs! The HTML manual is also > compiled, although there must be some small problem (maybe in the > makefile?) as make rebuilds the manual every time I run it. That > doesn't matter at all to me, but if you'd like I can try to figure out > what the problem might be. > > Anyway, I'm off to test darcs 2! Thanks again for your help :)
Great! But I'm still confused as to what change (if any) I should make. I thought I understood that changing to stdcall would fail on older versions of ghc, or is that always the correct way to go? If so, should we perhaps put in a configure test to determine which is the proper way to call this function? -- David Roundy Department of Physics Oregon State University _______________________________________________ darcs-devel mailing list darcs-devel@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-devel