[Mono-list] Mono on FreeBSD

Juli Mallett jmallett@FreeBSD.ORG
Mon, 23 Sep 2002 14:11:00 -0700


* De: Jonel Rienton <csharp@core.com> [ Data: 2002-09-23 ]
	[ Subjecte: [Mono-list] Mono on FreeBSD ]
> Hi guys, anyone here have successfully build 0.15 on a freebsd box? i'm
> having a bit of problem, my build is stopping with the following
> message:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include -I../.. -I../../mono
> -DMONO_ASSEMBLIES=\"/usr/local/lib\" -DMONO_CFG_DIR=\"/usr/local/etc\"
> -D_REENTRANT -g -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
> -Wwrite-strings -c unicode.c  -fPIC -DPIC -o .libs/unicode.lo
> unicode.c: In function `ves_icall_iconv_new_encoder':
> unicode.c:161: syntax error before `cd'
> unicode.c:178: `cd' undeclared (first use in this function)
> unicode.c:178: (Each undeclared identifier is reported only once
> unicode.c:178: for each function it appears in.)
> unicode.c:178: warning: implicit declaration of function `iconv_open'
>  
> this message showed while i'm in the mono-0.15 directory. any input
> would be greatly appreciated. box is a FreeBSD 4.6-RELEASE, i thought i
> might just be missing some libs but i've installed every iconv libs in
> the ports but to no avail.

It is picking up the wrong <iconv.h> I seem to recall, try changing up
the CFLAGS a bit?  Ideally, use ports.
-- 
Juli Mallett <jmallett@FreeBSD.org>       | FreeBSD: The Power To Serve
Will break world for fulltime employment. | finger jmallett@FreeBSD.org
http://people.FreeBSD.org/~jmallett/      | Support my FreeBSD hacking!