[Mono-list] Compile error with current cvs

Lluis Sanchez lluis@ideary.com
Fri, 31 Jan 2003 18:29:39 +0100


Hi,

I also cannot compile in cygwin. I tried to delete the mono folder and start
from the beginning by running mono-build-w32.sh. After downloading the code
from CVS it starts configuring, and then I get this error:

(...)
checking for gc.h... no
checking for gc/gc.h... no
checking for GC_malloc in -lgc... yes
configure: error: Found libgc but not its header files! You may need to
install
them by hand.
(...)

Then, if I run autogen.sh directly, It works:

(...)
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking gc/gc.h usability... yes
checking gc/gc.h presence... yes
checking for gc/gc.h... yes
checking for GC_malloc in -lgc... yes
checking for main in -lws2_32... yes
(...)

When I run make, compiles until I get this error:

/bin/bash ../../libtool --mode=link
gcc -mno-cygwin -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declaration
s -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
-Wno-cast-qual -Wcast-align -Wwrite-strings -o libmono.la -rpath
c:/cygwin/home/Lluis/install/lib -Wl,-version-script=./ldscript
win32-exception.lo codegen-x86.lo emit-x86.lo regset.lo debug.lo
debug-stabs.lo debug-dwarf2.lo jit.lo trampoline.lo exception.lo
linear-scan.lo helpers.lo ../metadata/libmonoruntime.la
../metadata/libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la
../os/libmonoos.la -lgc -lws2_32 -lpsapi
*** Warning: linker path does not have real file for library -lgc.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libgc but no candidates were found. (...for file magic test)
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
rm -fr .libs/libmono.lax
mkdir .libs/libmono.lax
rm -fr .libs/libmono.lax/libmonoruntime.a
mkdir .libs/libmono.lax/libmonoruntime.a
(cd .libs/libmono.lax/libmonoruntime.a && ar x
/home/Lluis/mono/mono/jit/../metadata/.libs/libmonoruntime.a)
rm -fr .libs/libmono.lax/libmetadata.a
mkdir .libs/libmono.lax/libmetadata.a
(cd .libs/libmono.lax/libmetadata.a && ar x
/home/Lluis/mono/mono/jit/../metadata/.libs/libmetadata.a)
rm -fr .libs/libmono.lax/libwapi.a
mkdir .libs/libmono.lax/libwapi.a
(cd .libs/libmono.lax/libwapi.a && ar x
/home/Lluis/mono/mono/jit/../io-layer/.libs/libwapi.a)
rm -fr .libs/libmono.lax/libmonoutils.a
mkdir .libs/libmono.lax/libmonoutils.a
(cd .libs/libmono.lax/libmonoutils.a && ar x
/home/Lluis/mono/mono/jit/../utils/.libs/libmonoutils.a)
rm -fr .libs/libmono.lax/libmonoos.a
mkdir .libs/libmono.lax/libmonoos.a
(cd .libs/libmono.lax/libmonoos.a && ar x
/home/Lluis/mono/mono/jit/../os/.libs/libmonoos.a)
gcc -shared .libs/win32-exception.o .libs/codegen-x86.o .libs/emit-x86.o
.libs/regset.o .libs/debug.o .libs/debug-stabs.o .libs/debug-dwarf2.o
.libs/jit.o .libs/trampoline.o .libs/exception.o .libs/linear-scan.o
.libs/helpers.o .libs/libmono.lax/libmonoruntime.a/reflection.o
.libs/libmono.lax/libmonoruntime.a/object.o
.libs/libmono.lax/libmonoruntime.a/icall.o
.libs/libmono.lax/libmonoruntime.a/decimal.o
.libs/libmono.lax/libmonoruntime.a/gc.o
.libs/libmono.lax/libmonoruntime.a/marshal.o
.libs/libmono.lax/libmonoruntime.a/threads.o
.libs/libmono.lax/libmonoruntime.a/threadpool.o
.libs/libmono.lax/libmonoruntime.a/file-io.o
.libs/libmono.lax/libmonoruntime.a/socket-io.o
.libs/libmono.lax/libmonoruntime.a/exception.o
.libs/libmono.lax/libmonoruntime.a/unicode.o
.libs/libmono.lax/libmonoruntime.a/appdomain.o
.libs/libmono.lax/libmonoruntime.a/debug-mono-symfile.o
.libs/libmono.lax/libmonoruntime.a/profiler.o
.libs/libmono.lax/libmonoruntime.a/rand.o
.libs/libmono.lax/libmonoruntime.a/string-icalls.o
.libs/libmono.lax/libmonoruntime.a/sysmath.o
.libs/libmono.lax/libmonoruntime.a/process.o
.libs/libmono.lax/libmonoruntime.a/environment.o
.libs/libmono.lax/libmetadata.a/assembly.o
.libs/libmono.lax/libmetadata.a/domain.o
.libs/libmono.lax/libmetadata.a/opcodes.o
.libs/libmono.lax/libmetadata.a/image.o
.libs/libmono.lax/libmetadata.a/metadata.o
.libs/libmono.lax/libmetadata.a/verify.o
.libs/libmono.lax/libmetadata.a/mono-endian.o
.libs/libmono.lax/libmetadata.a/mono-config.o
.libs/libmono.lax/libmetadata.a/rawbuffer.o
.libs/libmono.lax/libmetadata.a/loader.o
.libs/libmono.lax/libmetadata.a/class.o
.libs/libmono.lax/libmetadata.a/mempool.o
.libs/libmono.lax/libmetadata.a/debug-helpers.o
.libs/libmono.lax/libwapi.a/io-layer-dummy.o
.libs/libmono.lax/libmonoutils.a/mono-hash.o
.libs/libmono.lax/libmonoutils.a/mono-md5.o
.libs/libmono.lax/libmonoutils.a/mono-sha1.o
.libs/libmono.lax/libmonoutils.a/monobitset.o
.libs/libmono.lax/libmonoutils.a/strtod.o
.libs/libmono.lax/libmonoos.a/util.o -lws2_32 -lpsapi -Wl,-version-script=./
ldscript -o
.libs/cygmono-0.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libmo
no.dll.a
Creating library file: .libs/libmono.dll.a
.libs/win32-exception.o(.text+0x26): In function `seh_handler':
/home/Lluis/mono/mono/jit/win32-exception.c:51: undefined reference to
`_g_malloc'
.libs/codegen-x86.o(.text+0x3241): In function `mono_burg_emit_16':
/home/Lluis/mono/mono/jit/codegen-x86.c:1257: undefined reference to
`__assert'
.libs/codegen-x86.o(.text+0x3269):/home/Lluis/mono/mono/jit/codegen-x86.c:12
57: undefined reference to `__assert'
.libs/codegen-x86.o(.text+0x330c):/home/Lluis/mono/mono/jit/codegen-x86.c:12
57: undefined reference to `__assert'
.libs/codegen-x86.o(.text+0x4227): In function `mono_burg_emit_23':
/home/Lluis/mono/mono/jit/codegen-x86.c:1385: undefined reference to
`_g_log'
.libs/codegen-x86.o(.text+0x5495): In function `mono_burg_emit_26':
/home/Lluis/mono/mono/jit/codegen-x86.c:1482: undefined reference to
`__assert'

... and so on.

I have gc.dll (the one from libgc-6.1-dev.zip) copied in my install/lib
folder, and all gc headers in install/include/gc.

Any ideas ?

Thanks,
Lluis.