[darcs-devel] [darcs-users] Problem building darcs 2 on WinXP

Rob Moss rgm at csse.unimelb.edu.au
Sat Dec 15 01:43:57 UTC 2007


No, libkernel32.a is already present in both MinGW and GHC.
Adding "-lkernel32" doesn't fix the problem either. I'm at a total
loss here -- the library exists and defines SleepEx.

On 15/12/2007, Rob Moss <rgm at csse.unimelb.edu.au> wrote:
> Yes I managed to find winbase.h and it declares SleepEx (and so the
> compilation stage works). From the link error, it would seem that I'm
> missing the library that defines SleepEx (kernel32.lib according to
> MSDN), but this file exists in both MinGW and GHC's lib directories.
> The only thing I can think of is that perhaps it needs to be renamed
> to libkernel32.lib, which I'll try on Monday.
>
> Thanks for your reply (and for the most natural VCS I've ever used!)
>
> cheers,
> Rob
>
> On 15/12/2007, David Roundy <droundy at darcs.net> wrote:
> > I'm afraid I'm no help here (since I don't have windows, or windows
> > experience), but just wanted to say that I'm glad you're trying out darcs 2
> > on windows, and hope you get it compiled successfully.  Please let us know
> > how it turns out!
> >
> > The only thing I can point out is (from reading the darcs source) that
> > SleepEx should be declared in "winbase.h".  This is apparently a header
> > that defines the win32 base API.  Google discovers that:
> >
> > /************************************************************************
> > *                                                                       *
> > *   winbase.h -- This module defines the 32-Bit Windows Base APIs       *
> > *                                                                       *
> > *   Copyright 1990 - 1998 Microsoft Corp. All rights reserved.          *
> > *                                                                       *
> > ************************************************************************/
> >
> > I've no idea what library would provide this, though.
> >
> > David
> >
> > P.S. Your first message was held up in the moderation queue, and resending
> > was exactly the right thing to do, as it led me to check the queue, and now
> > your email address is properly whitelisted.
> >
> > On Tue, Dec 11, 2007 at 11:19:19PM +1100, Rob Moss wrote:
> > > Hi,
> > >
> > > I've installed MinGW, MSYS (with msysDTK, autoconf and automake), GHC,
> > > zlib, libcurl and OpenSSL. I can run ./configure --target=mingw and
> > > compile the source, but I get this linking error:
> > >
> > > Linking darcs ...
> > > src/win32/System/Posix.o(.text+0x550):fake: undefined reference to `SleepEx'
> > > collect2: ld returned 1 exit status
> > > make: *** [darcs] Error 1
> > >
> > > Does anyone know what library I'm missing here? I've tried google, but
> > > I've been unable to find a solution. Many thanks in advance for any
> > > advice.
> > >
> > > Sincerely,
> > > Rob
> > _______________________________________________
> > darcs-users mailing list
> > darcs-users at darcs.net
> > http://lists.osuosl.org/mailman/listinfo/darcs-users
> >
>


More information about the darcs-devel mailing list