[Mono-devel-list] icall.c compilation problem

Aleksey Demakov avd at openlinksw.com
Thu Sep 18 16:55:10 EDT 2003


Hi all,

I wonder if anybody else had the problem compiling icall.c.
Using gcc 2.95.4 on Debian I got the following:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono 
-I../../libgc/include -D_REENTRANT -I/home/avd/include/glib-2.0 
-I/home/avd/lib/glib-2.0/include -I/home/avd/include/glib-2.0 
-I/home/avd/lib/glib-2.0/include -DMONO_ASSEMBLIES=\"/home/avd/lib\" 
-DMONO_CFG_DIR=\"/home/avd/etc\" -DGC_LINUX_THREADS 
-DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions 
-D_FILE_OFFSET_BITS=64 -g -Wall -Wunused -Wmissing-prototypes 
-Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align 
-Wwrite-strings -Wp,-MD,.deps/icall.pp -c icall.c  -fPIC -DPIC -o 
.libs/icall.lo
icall.c: In function `ves_icall_Type_IsArrayImpl':
icall.c:2938: parse error before `*'
icall.c:2941: `res' undeclared (first use in this function)
icall.c:2941: (Each undeclared identifier is reported only once
icall.c:2941: for each function it appears in.)
icall.c:2942: warning: control reaches end of non-void function

I noticed that in the function ves_icall_Type_IsArrayImpl
there is a MONO_ARCH_SAVE_REGS macro above some variable
declarations. Although I don't know what it all is about I
did a simple fix that solved my problem.

Regards,
Aleksey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: icall.c.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030919/d50308a7/attachment.pl 


More information about the Mono-devel-list mailing list