Subject: lang/mono/ ... error: too few arguments to function 'mremap'
To: None <>
From: Makoto Fujiwara <>
List: pkgsrc-users
Date: 08/03/2007 07:44:42
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-
CATEGORIES=     lang
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  
    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
 -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

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-'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/pkgsrc/lang/mono/work.livorno/mono-'
gmake: *** [all] Error 2
*** Error code 2

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

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