Subject: lang/mono/ ... error: too few arguments to function 'mremap'
To: None <pkgsrc-users@netbsd.org>
From: Makoto Fujiwara <makoto@ki.nu>
List: pkgsrc-users
Date: 08/03/2007 07:44:42
Hi, 
I am trying to make lang/mono/. 

The head of Makefile says:
---------
# $NetBSD: Makefile,v 1.57 2007/01/04 02:38:13 rillig Exp $

DISTNAME=       mono-1.1.13.8.1
PKGREVISION=    1
CATEGORIES=     lang
MASTER_SITES=   http://go-mono.com/sources/mono-1.1/
---------
But I am getting follwing message with
--------
NetBSD livorno 4.99.25 NetBSD 4.99.25 (GENERIC) #0: 
Wed Jul 25 01:52:32 PDT 2007  
builds@wb43:/home/builds/ab/HEAD/i386/200707240002Z-obj/ 
    home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386
--------
Does anyone know how to work around this problem ?

 cc -DHAVE_CONFIG_H -I. -I.. -pthread
 -I/export/pkgsrc/lang/mono/work.livorno/.buildlink/include/glib/glib-2.0
 -I/export/pkgsrc/lang/mono/work.livorno/.buildlink/lib/glib-2.0/include
 -I/export/pkgsrc/lang/mono/work.livorno/.buildlink/include
 -D_REENTRANT -DGC_NETBSD_THREADS -D_GNU_SOURCE -DPLATFORM_BSD
 -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g
 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
 -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
 -mno-tls-direct-seg-refs -MT sys-mman.lo -MD -MP -MF
 .deps/sys-mman.Tpo -c sys-mman.c -fPIC -DPIC -o
 .libs/sys-mman.o

sys-mman.c: In function 'Mono_Posix_Syscall_mremap':
sys-mman.c:100: warning: passing argument 3 of 'mremap' makes pointer from integer without a cast
sys-mman.c:100: error: too few arguments to function 'mremap'
sys-mman.c: In function 'Mono_Posix_Syscall_mincore':
sys-mman.c:109: warning: implicit declaration of function 'mincore'
sys-mman.c:109: warning: nested extern declaration of 'mincore'
gmake[2]: *** [sys-mman.lo] Error 1
gmake[2]: Leaving directory `/export/pkgsrc/lang/mono/work.livorno/mono-1.1.13.8.1/support'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/pkgsrc/lang/mono/work.livorno/mono-1.1.13.8.1'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /export/pkgsrc/lang/mono
*** Error code 1

---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.