Mono 2.11.1 build failed

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu May 3 15:32:17 UTC 2012


On Thu, May 3, 2012 at 11:09 PM, Romain Tartière <romain at freebsd.org> wrote:
> On Thu, May 03, 2012 at 05:35:29PM +0300, Team Govs wrote:
>> gmake[3]: Entering directory `/usr/ports/lang/mono/work/mono-2.11.1/mono/metadata'
>> ../../doltlibtool --quiet --tag=CC   --mode=link cc  -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch-enum -mno-tls-direct-seg-refs  -pthread -o pedump pedump.o libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la ../../libgc/libmonogc.la -L../../eglib/src -leglib -lm -lm /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib  -lm   -pthread
>> ./.libs/libmonoruntime.a(libmonoruntime_la-filewatcher.o): In function `ves_icall_System_IO_InotifyWatcher_AddWatch':
>> /usr/ports/lang/mono/work/mono-2.11.1/mono/metadata/filewatcher.c:161: undefined reference to `inotify_add_watch'
>> ./.libs/libmonoruntime.a(libmonoruntime_la-filewatcher.o): In function `ves_icall_System_IO_InotifyWatcher_RemoveWatch':
>> /usr/ports/lang/mono/work/mono-2.11.1/mono/metadata/filewatcher.c:197: undefined reference to `inotify_rm_watch'
>> ./.libs/libmonoruntime.a(libmonoruntime_la-filewatcher.o): In function `ves_icall_System_IO_InotifyWatcher_GetInotifyInstance':
>> /usr/ports/lang/mono/work/mono-2.11.1/mono/metadata/filewatcher.c:142: undefined reference to `inotify_init'
>> gmake[3]: *** [pedump] Error 1
>> gmake[3]: Leaving directory `/usr/ports/lang/mono/work/mono-2.11.1/mono/metadata'
>> gmake[2]: *** [all-recursive] Error 1
>> gmake[2]: Leaving directory `/usr/ports/lang/mono/work/mono-2.11.1/mono'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory `/usr/ports/lang/mono/work/mono-2.11.1'
>> gmake: *** [all] Error 2
>> *** Error code 1
>
> `uname -a` please ?
>
> inotify belongs to Linux, we have kqueue(2) that's supposed to provide
> the same features.  Some OS detection might be failing.
>

Hi Romain,

I got the same problem (devel/libinotify installed).
The detection can be forced off by adding "CONFIGURE_ENV=
ac_cv_header_sys_inotify_h=no" to Makefile.
Mono builds successfully with this patch.

hth

Regards,
sunpoet

> --
> Romain Tartière <romain at FreeBSD.org>  http://people.FreeBSD.org/~romain/
> pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
> (plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)


-- 
  Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> <sunpoet at FreeBSD.org>
          4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B
                            http://people.FreeBSD.org/~sunpoet/pgpkeys.txt


More information about the freebsd-mono mailing list