[kaffe] cygwin compile problems

Dalibor Topic robilad at kaffe.org
Sun Jun 13 11:45:02 PDT 2004

Hi Bjørn

Bjørn Wennberg wrote:
> Hi there.
> OS: cygwin-1.5.10-3 (latest) with gcc-3.3.1

Ah, another fellow cygwin user! :)

> configure finds out that cygwins mmap is broken and does not include <sys/mmap.h>
> configure finds out that cygwin supports mprotect and defines HAVE_MPROTECT and HAVE_COMPATIBLE_MPROTECT
> The compilation breaks in kaffe/kaffe/kaffevm/mem/gc-mem.c complaining the PROT_READ, PROT_WRITE... defines doesn't exist
> PROT_READ and friends are defined in <sys/mman.h> which are not included because mmap is broken according to configure.

Thanks for the bug report. I've changed configure to check for 
sys/mman.h seprately, and include it if it is available.

dalibor topic

More information about the kaffe mailing list