[Mono-winforms-list] Compiling Mono+Wine+SWF on Debian

David W. Bettis dwb@umd.edu
Mon, 28 Jul 2003 18:36:28 -0400


With the recent release of the Mono/Wine packages, I felt compelled to
try and compile for myself. Under Debian unstable.

I've been able to successfully compile wine using the patches from
http://www.openlinksw.com/mono/; but when I follow the instructions in
wine-shared/mono for adding the GUI runtime support to mono, I run
into problems.

I'm operating on the CVS version of mono (7/28)-- and the only odd
thing I did to my system was downgrade automake to 1.4 (the
configure.in provided by wine-shared-20030618.tar.gz is incompatible
with 1.5).

Is there a specific mono release that needs to be used?

Thanks!

dwb@gandalf:~/src/mono-cvs/mono/mono/gui_runtime$ make
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..                             -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include                   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/local/include/wine  -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions -D_FILE_OFFSET_BITS=64  -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -c mono.c
In file included from mono.c:12:
debug.h:19: error: conflicting types for `MONO_DEBUG_FORMAT_NONE'
../../mono/metadata/mono-debug.h:20: error: previous declaration of `MONO_DEBUG_FORMAT_NONE'
debug.h:23: error: conflicting types for `MONO_DEBUG_FORMAT_MONO'
../../mono/metadata/mono-debug.h:21: error: previous declaration of `MONO_DEBUG_FORMAT_MONO'
debug.h:23: error: redefinition of `MonoDebugFormat'
../../mono/metadata/mono-debug.h:23: error: `MonoDebugFormat' previously declared here
debug.h:73: error: conflicting types for `mono_debug_add_wrapper'
../../mono/metadata/mono-debug.h:88: error: previous declaration of `mono_debug_add_wrapper'
debug.h:78: error: conflicting types for `mono_debug_source_location_from_address'
../../mono/metadata/mono-debug.h:91: error: previous declaration of `mono_debug_source_location_from_address'
debug.h:80: error: conflicting types for `mono_debug_il_offset_from_address'
../../mono/metadata/mono-debug.h:94: error: previous declaration of `mono_debug_il_offset_from_address'
debug.h:82: error: conflicting types for `mono_debug_address_from_il_offset'
../../mono/metadata/mono-debug.h:95: error: previous declaration of `mono_debug_address_from_il_offset'
debug.h:98: error: conflicting types for `mono_debug_init'
../../mono/metadata/mono-debug.h:84: error: previous declaration of `mono_debug_init'
debug.h:138: error: syntax error before '*' token
debug.h:138: warning: type defaults to `int' in declaration of `mono_debugger_symbol_file_table'
debug.h:138: warning: data definition has no type or storage class
debug.h:146: error: syntax error before "MonoGlobalSymbolFile"
debug.h:146: warning: no semicolon at end of struct or union
debug.h:148: error: syntax error before '}' token
mono.c: In function `main':
mono.c:275: warning: implicit declaration of function `PROCESS_InitWine'
mono.c:276: warning: implicit declaration of function `LoadLibraryA'
mono.c:333: warning: implicit declaration of function `mono_profiler_install_simple'
make: *** [mono.o] Error 1

Regards,
-- 
David W. Bettis (dwb@umd.edu), http://www.wam.umd.edu/~dwb/