[Mono-list] Problems compiling on FreeBSD

Paul paul@all-the-johnsons.co.uk
Wed, 23 Feb 2005 20:27:19 +0000


--=-RnTQO9JuqLbFgSUjyGqy
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

>I'm trying to compile Mono 1.1.4 on FreeBSD 5.3-REALEASE.  I'm no=20
>code-guru, so something like this is plenty enough to stop me. I get the=20
>following error during Make:

Which version of gcc are you using?

>if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT=20
>-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include=20
>-I../..   -DGC_FREEBSD_THREADS  -g -O2 -fno-strict-aliasing -g -Wall=20
>-Wunused -Wmissing-prototypes -Wmissing-declarations=20
>-Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs=20
>-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT get.o=20
>-MD -MP -MF ".deps/get.Tpo" -c -o get.o get.c;  then mv -f=20
>".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=20
>-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include=20
>-I../..   -DGC_FREEBSD_THREADS  -g -O2 -fno-strict-aliasing -g -Wall=20
>-Wunused -Wmissing-prototypes -Wmissing-declarations=20
>-Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs=20
>-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT=20
>dis-cil.o -MD -MP -MF ".deps/dis-cil.Tpo" -c -o dis-cil.o dis-cil.c; =20
>then mv -f ".deps/dis-cil.Tpo" ".deps/dis-cil.Po"; else rm -f=20
>".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

Okay, this looks very strange - I've certainly not come across it before
other than when one of the headers in gcc was snafu'd for some reason
(that was in the RH 2.96 release =3D=3D 2.95.4 or thereabouts). Are you
building from svn or the tarballs?

TTFN

Paul
--=20
"I like blinking me" - Helen, Big Brother 2 contestant

--=-RnTQO9JuqLbFgSUjyGqy
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCHOcnusSVe5EZv3wRAsLfAJ9qgPFx5PyYtvO1UlAj+ol/MXlMQgCgmm9O
Pu13DIFjeZa2Ald5Qo//lhU=
=CLR2
-----END PGP SIGNATURE-----

--=-RnTQO9JuqLbFgSUjyGqy--