[Mono-devel-list] mono-debugger 0.9

alex alexstreng at t-online.de
Sun Jul 11 08:40:48 EDT 2004


Hallo Chris,

now i can compile mono-debugger 0.9. thanks to "Norbert Berzen", he has posted 
this patch:
---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>

--- ./mono-debugger-0.9/wrapper/wrapper.c.orig  2004-04-26
21:14:27.000000000 +0200
+++ ./mono-debugger-0.9/wrapper/wrapper.c       2004-07-06 16:37:28.000000000
+0200
@@ -118,7 +118,7 @@
 {
        MonoClass *klass = GUINT_TO_POINTER ((guint32) value);
        MonoVTable *vtable = mono_class_vtable (mono_domain_get (), klass);
-       return GPOINTER_TO_UINT (vtable->data);
+       return GPOINTER_TO_UINT (mono_vtable_get_static_field_data (vtable));
 }
 
 static void
@@ -223,7 +223,9 @@
         */
 
        debugger_main_method = mono_get_method (
-               assembly->image, mono_image_get_entry_point (assembly->image), 
NULL);
+               mono_assembly_get_image(assembly),
+               mono_image_get_entry_point 
(mono_assembly_get_image(assembly)),
+               NULL);
        MONO_DEBUGGER__manager.main_function = mono_compile_method
(debugger_main_method);
 
        /*

---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>
-- 

Source in cvs only integrated the first part of the patch.

alex

*****************************************************************************************************

Am Sonntag, 11. Juli 2004 03:30 schrieben Sie:
> I am having the same problems with 0.9 on fedora core 2. :(
>
> regards,
> Chris
>
> On Tue, 2004-07-06 at 19:36, alex streng wrote:
> > hallo,
> >
> > i can't compile mono-debugger 0.9 on suse 9.1 too.
> >
> > CONFIGURE:
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... i686-pc-linux-gnu
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking whether to enable maintainer-specific portions of Makefiles...
> > no checking for gcc... gcc
> > checking for gcc... (cached) gcc
> > checking for C compiler default output... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables...
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ANSI C... none needed
> > checking for style of include used by make... GNU
> > checking dependency style of gcc... gcc3
> > checking for gcc option to accept ANSI C... none needed
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking host platform characteristics... ok
> > checking for NPTL support... yes
> > checking for ar... ar
> > checking for ranlib... ranlib
> > checking how to run the C preprocessor... gcc -E
> > checking for egrep... grep -E
> > checking for ANSI C header files... yes
> > checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
> > checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> > checking for /usr/i586-suse-linux/bin/ld option to reload object files...
> > -r checking for BSD-compatible nm... /usr/bin/nm -B
> > checking for a sed that does not truncate output... /usr/bin/sed
> > checking whether ln -s works... yes
> > checking how to recognise dependent libraries... pass_all
> > checking command to parse /usr/bin/nm -B output... ok
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking dlfcn.h usability... yes
> > checking dlfcn.h presence... yes
> > checking for dlfcn.h... yes
> > checking for ranlib... (cached) ranlib
> > checking for strip... strip
> > checking for objdir... .libs
> > checking for gcc option to produce PIC... -fPIC
> > checking if gcc PIC flag -fPIC works... yes
> > checking if gcc static flag -static works... yes
> > checking if gcc supports -c -o file.o... yes
> > checking if gcc supports -c -o file.lo... yes
> > checking if gcc supports -fno-rtti -fno-exceptions... yes
> > checking whether the linker (/usr/i586-suse-linux/bin/ld) supports shared
> > libraries... yes
> > checking how to hardcode library paths into programs... immediate
> > checking whether stripping libraries is possible... yes
> > checking dynamic linker characteristics... GNU/Linux ld.so
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes
> > checking whether -lc should be explicitly linked in... no
> > creating libtool
> > checking for void *... yes
> > checking size of void *... 4
> > checking for pkg-config... /usr/bin/pkg-config
> > checking whether we're compiling from CVS... no
> > checking for glib-2.0 >= 2.0.0... yes
> > checking BASE_DEPENDENCIES_CFLAGS... -I/opt/gnome/include/glib-2.0
> > -I/opt/ gnome/lib/glib-2.0/include
> > checking BASE_DEPENDENCIES_LIBS... -L/opt/gnome/lib -lglib-2.0
> > checking for glib-2.0 >= 2.0.0 ... yes
> > checking SERVER_DEPENDENCIES_CFLAGS... -I/opt/gnome/include/glib-2.0
> > -I/opt/ gnome/lib/glib-2.0/include
> > checking SERVER_DEPENDENCIES_LIBS... -L/opt/gnome/lib -lglib-2.0
> > checking for mono >= 0.96 gthread-2.0 >= 2.0.0... yes
> > checking WRAPPER_CFLAGS... -D_REENTRANT -pthread
> > -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
> > checking WRAPPER_LIBS... -Wl,--export-dynamic -pthread -L/opt/gnome/lib
> > -lmono -lpthread -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
> > checking for gacutil... /usr/bin/gacutil
> > checking for mono... /usr/bin/mono
> > checking for mcs... /usr/bin/mcs
> > checking if using the readline library is requested... yes
> > checking stddef.h usability... yes
> > checking stddef.h presence... yes
> > checking for stddef.h... yes
> > checking for string.h... (cached) yes
> > checking for strings.h... (cached) yes
> > checking for stdlib.h... (cached) yes
> > checking time.h usability... yes
> > checking time.h presence... yes
> > checking for time.h... yes
> > checking for unistd.h... (cached) yes
> > checking fcntl.h usability... yes
> > checking fcntl.h presence... yes
> > checking for fcntl.h... yes
> > checking sys/file.h usability... yes
> > checking sys/file.h presence... yes
> > checking for sys/file.h... yes
> > checking sys/time.h usability... yes
> > checking sys/time.h presence... yes
> > checking for sys/time.h... yes
> > checking whether time.h and sys/time.h may both be included... yes
> > checking for dirent.h that defines DIR... yes
> > checking for library containing opendir... none required
> > checking for fcntl... yes
> > checking for getpagesize... yes
> > checking for setitimer... yes
> > checking for sysconf... yes
> > checking for fdopen... yes
> > checking for getuid... yes
> > checking for getgid... yes
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating mono-debugger.pc
> > config.status: creating interfaces/Makefile
> > config.status: creating classes/Makefile
> > config.status: creating glue/Makefile
> > config.status: creating wrapper/Makefile
> > config.status: creating backends/Makefile
> > config.status: creating backends/classes/Makefile
> > config.status: creating backends/server/Makefile
> > config.status: creating backends/ptrace/Makefile
> > config.status: creating backends/mono-csharp/Makefile
> > config.status: creating backends/native/Makefile
> > config.status: creating frontends/Makefile
> > config.status: creating frontends/scripting/Makefile
> > config.status: creating frontends/command-line/Makefile
> > config.status: creating arch/Makefile
> > config.status: creating arch/libiberty/Makefile
> > config.status: creating arch/opcodes/Makefile
> > config.status: creating arch/bfd/Makefile
> > config.status: creating arch/bfd/hosts/Makefile
> > config.status: creating arch/bfd/include/Makefile
> > config.status: creating arch/bfd/include/aout/Makefile
> > config.status: creating arch/bfd/include/coff/Makefile
> > config.status: creating arch/bfd/include/elf/Makefile
> > config.status: creating arch/bfd/include/opcode/Makefile
> > config.status: creating test/Makefile
> > config.status: creating test/mono-debugger.tests/Makefile
> > config.status: creating doc/Makefile
> > config.status: creating config.h
> > config.status: executing depfiles commands
> >
> > MAKE:
> > ...
> > gcc -DHAVE_CONFIG_H -I. -I. -I..
> > -DG_LOG_DOMAIN=\"MonoDebuggerJitWrapper\" -D_REENTRANT -pthread
> > -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/ glib-2.0/include      -g
> > -Wall -Wunused -Wmissing-prototypes
> > -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes
> > -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align
> > -Wwrite-strings -c `test -f 'wrapper.c' || echo './'`wrapper.c
> > wrapper.c: In function `debugger_class_get_static_field_data':
> > wrapper.c:121: error: dereferencing pointer to incomplete type
> > wrapper.c: In function `debugger_event_handler':
> > wrapper.c:135: warning: enumeration value
> > `MONO_DEBUGGER_EVENT_UNHANDLED_EXCEPTION' not handled in switch
> > wrapper.c: At top level:
> > wrapper.c:139: warning: initialization from incompatible pointer type
> > wrapper.c: In function `mono_debugger_main':
> > wrapper.c:226: error: dereferencing pointer to incomplete type
> > wrapper.c:226: error: dereferencing pointer to incomplete type
> > make[2]: *** [wrapper.o] Error 1
> >
> > can anybody help?
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list