[Mono-list] Install Mono on cygwin

Javier Miguel Gonzalez javier.miguel@experian.es
Sat, 15 Jan 2005 13:04:37 +0100


Hi all,

I'm installing Mono 1.0.5 on cygwin under Windows (w2k & xp).

I'm using cygwin with kde3 and running mono-build-w32.sh from
/home/Javier/src.

After solving minor troubles (wget, unzip, glib2-devel, gwin32.h), I always
get the next error:
...
ranlib .libs/libmonoruntime-static.a
creating libmonoruntime-static.la
(cd .libs && rm -f libmonoruntime-static.la && cp
../libmonoruntime-static.la li
bmonoruntime-static.la)
if
gcc -mno-cygwin -g -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -I..
/
../libgc/include -D_REENTRANT -I/home/Javier/src/install/include/glib-2.0 -I
/hom
e/Javier/src/install/lib/glib-2.0/include   -I/home/Javier/src/install/inclu
de/g
lib-2.0 -I/home/Javier/src/install/lib/glib-2.0/include   -I/usr/local/icu/i
nclu
de -DMONO_ASSEMBLIES=\"`cygpath -m
"C:/cygwin/home/Javier/src/install/lib"`\" -D
MONO_CFG_DIR=\"`cygpath -m "C:/cygwin/home/Javier/src/install/etc"`\"  -I
/usr/l
ocal/include -DWIN32_THREADS -O -I /home/Javier/src/install/include -I
/home/Jav
ier/src/install/icu/include -fno-strict-aliasing -g -Wall -Wunused -Wmissing
-pro
totypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wn
este
d-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT
pedump
.o -MD -MP -MF ".deps/pedump.Tpo" -c -o pedump.o pedump.c; \
then mv -f ".deps/pedump.Tpo" ".deps/pedump.Po"; else rm -f
".deps/pedump.Tpo";
exit 1; fi
/bin/bash ../../libtool --mode=link --tag=CC gcc -mno-cygwin -g -O -I
/home/Javi
er/src/install/include -I
/home/Javier/src/install/icu/include -fno-strict-alias
ing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-p
roto
types  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
-Wca
st-align -Wwrite-strings  -L/home/Javier/src/install/lib -L/home/Javier/src/
inst
all/icu/lib -o pedump.exe  pedump.o libmetadata.la ../io-layer/libwapi.la
../uti
ls/libmonoutils.la
../../libgc/libmonogc.la -L/home/Javier/src/install/lib -lgth
read-2.0 -lglib-2.0 -lintl -liconv   -Wl,--export-dynamic -L/home/Javier/src
/ins
tall/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -lm -lws2_32 -lpsapi -lol
e32
gcc -mno-cygwin -g -O -I /home/Javier/src/install/include -I
/home/Javier/src/in
stall/icu/include -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototype
s -W
missing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-exter
ns -
Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o pedump.exe
pedump.
o -Wl,--export-dynamic  -L/home/Javier/src/install/lib -L/home/Javier/src/in
stal
l/icu/lib ./.libs/libmetadata.a ../io-layer/.libs/libwapi.a
../utils/.libs/libmo
noutils.a
../../libgc/.libs/libmonogc.al -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
/usr/lib/libintl.dll.a -L/usr/lib
/usr/lib/libiconv.dll.a -lws2_32 -lpsapi -lole
32
./.libs/libmetadata.a(loader.o)(.text+0x274b): In function
`mono_method_get_head
er':
/home/Javier/src/mono/mono/metadata/loader.c:1291: undefined reference to
`_G_LI
KELY'
collect2: ld returned 1 exit status
make[3]: *** [pedump.exe] Error 1
make[3]: Leaving directory `/home/Javier/src/mono/mono/metadata'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Javier/src/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Javier/src/mono'
make: *** [all] Error 2
#

I don't know how to solve this (undefined reference to `_G_LIKELY').

Does anybody installed Mono 1.0.5 sources in cygwin succesfully?

Thanks in advance.

Javier