[Mono-list] Error while building mono on windows

Sachin Kumar skumar1@novell.com
Mon, 12 Apr 2004 10:29:53 -0600


Hello,

I installed cygwin and tried building mono on windows, using
mono-build-w32.sh, 
but I am getting following error:

------------------------------------------------------------------------------------------------------------
 gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono
-D_REENTRA
NT -I/home/sachin/install/include/glib-2.0
-I/home/sachin/install/lib/glib-2.0/i
nclude -I/home/sachin/install/include/glib-2.0
-I/home/sachin/install/lib/glib-2
.0/include -DWIN32_THREADS -I /home/sachin/install/include -I
/home/sachin/insta
ll/icu/include -fno-strict-aliasing -g -Wall -Wunused
-Wmissing-prototypes -Wmis
sing-declarations -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Wpo
inter-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT
mono-codeman.lo -MD
-MP -MF .deps/mono-codeman.Tpo -c mono-codeman.c  -DPIC -o
.libs/mono-codeman.o
mono-codeman.c:12:22: sys/mman.h: No such file or directory
mono-codeman.c: In function `free_chunklist':
mono-codeman.c:73: warning: implicit declaration of function `munmap'
mono-codeman.c: In function `query_pagesize':
mono-codeman.c:123: warning: implicit declaration of function
`getpagesize'
mono-codeman.c: In function `new_codechunk':
mono-codeman.c:170: warning: implicit declaration of function `mmap'
mono-codeman.c:170: error: `PROT_READ' undeclared (first use in this
function)
mono-codeman.c:170: error: (Each undeclared identifier is reported only
once
mono-codeman.c:170: error: for each function it appears in.)
mono-codeman.c:170: error: `PROT_WRITE' undeclared (first use in this
function)
mono-codeman.c:170: error: `PROT_EXEC' undeclared (first use in this
function)
mono-codeman.c:170: error: `MAP_PRIVATE' undeclared (first use in this
function)

mono-codeman.c:170: error: `MAP_ANON' undeclared (first use in this
function)
mono-codeman.c:170: warning: assignment makes pointer from integer
without a cas
t
mono-codeman.c:174: warning: assignment makes pointer from integer
without a cas
t
make[3]: *** [mono-codeman.lo] Error 1
make[3]: Leaving directory `/home/sachin/mono/mono/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sachin/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sachin/mono'
make: *** [all] Error 2

-------------------------------------------------------------------------------------------------------------------

Any suggestions why is it giving me such an error, though sys/mman.h
file is very much 
there in /usr/include path.

Thanks in advance.

Regards,
Sachin