[darcs-users] darcs build on win32 (msys/mingw) fails
droundy at abridgegame.org
Wed Mar 17 00:24:58 UTC 2004
On Tue, Mar 16, 2004 at 03:29:59PM +0100, Gour wrote:
> Trying to build latest darcs code (from the repo) on Win98 with MinGW
> compiler in MSYS environment with ghc-6.2.1rc results in
> c:/tmp/ghc-385293.hc:9:18: zlib.h: No such file or directory
> c:/tmp/ghc-385293.hc: In function `r9PV_entry':
> c:/tmp/ghc-385293.hc:4613: warning: implicit declaration of function `gzread'
> c:/tmp/ghc-385293.hc: In function `r9PX_entry':
> c:/tmp/ghc-385293.hc:4635: warning: implicit declaration of function `gzclose'
> c:/tmp/ghc-385293.hc: In function `r9PZ_entry':
> c:/tmp/ghc-385293.hc:4660: warning: implicit declaration of function `gzopen'
> c:/tmp/ghc-385293.hc:4660: warning: assignment makes pointer from integer without a cast
> make: *** [FastPackedString.o] Error 1
> Any idea?
Looks like zlib.h isn't being found by when ghc compiles the FFI stuff.
There are a couple of possibilities. One is that you just need to rerun
configure. I'd definitely be interested in the output of the configure
test for zlib.h. My output is:
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
It is possible that the default search path for header files is different
in ghc than in gcc, in which case perhaps we need to be passing an -I flag
into ghc (perhaps even an -optc-I flag). The good news is that provided
you do have zlib installed, this looks like a pretty easy problem (assuming
once we get zlib.h included properly everything then works...).
More information about the darcs-users