[Mono-list] Problems compiling on FreeBSD
Tom McLaughlin
tmclaugh@sdf.lonestar.org
Wed, 23 Feb 2005 18:24:54 -0500
On Wed, 2005-02-23 at 10:08 -0600, SigmaX wrote:
> Hey;
> I'm trying to compile Mono 1.1.4 on FreeBSD 5.3-REALEASE. I'm no
> code-guru, so something like this is plenty enough to stop me. I get the
> following error during Make:
>
> Making all in dis
> if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -I../.. -DGC_FREEBSD_THREADS -g -O2 -fno-strict-aliasing -g -Wall
> -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT get.o
> -MD -MP -MF ".deps/get.Tpo" -c -o get.o get.c; then mv -f
> ".deps/get.Tpo" ".deps/get.Po"; else rm -f ".deps/get.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -I../.. -DGC_FREEBSD_THREADS -g -O2 -fno-strict-aliasing -g -Wall
> -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT
> dis-cil.o -MD -MP -MF ".deps/dis-cil.Tpo" -c -o dis-cil.o dis-cil.c;
> then mv -f ".deps/dis-cil.Tpo" ".deps/dis-cil.Po"; else rm -f
> ".deps/dis-cil.Tpo"; exit 1; fi
> dis-cil.c:24: error: syntax error before "sizeof"
> dis-cil.c:26: error: syntax error before "sizeof"
> dis-cil.c:30: warning: type defaults to `int' in declaration of `klass'
> dis-cil.c:30: warning: implicit declaration of function `fpclass'
> dis-cil.c:30: error: `num' undeclared here (not in a function)
> dis-cil.c:30: error: initializer element is not constant
> dis-cil.c:30: warning: data definition has no type or storage class
> dis-cil.c:31: error: syntax error before "if"
> dis-cil.c:22:1: unterminated #ifdef
> *** Error code 1
>
> Stop in /usr/home/eric/mono-compiles/mono-1.1.4/mono/dis.
> *** Error code 1
>
> Stop in /usr/home/eric/mono-compiles/mono-1.1.4/mono.
> *** Error code 1
>
> Stop in /usr/home/eric/mono-compiles/mono-1.1.4.
> *** Error code 1
>
> Stop in /usr/home/eric/mono-compiles/mono-1.1.4.
>
>
> Any help?
> Thanx,
> SigmaX
>
Use the lang/mono-devel port from the BSD# CVS repo. It's fixed there.
Thanks.
Tom
--
BSD# Project - Porting Mono to FreeBSD
http://forge.novell.com/modules/xfmod/project/?bsd-sharp