Re: [Mono-dev] Building boo 0.9.2-3383 or 0.9.3-3457 problem

2010-02-21 Thread Rodrigo B. de Oliveira
Hi!

On Sat, Feb 20, 2010 at 9:21 PM, Paul p...@all-the-johnsons.co.uk wrote:
 ...
 Any ideas if it's me or not?


It's a bug: http://jira.codehaus.org/browse/BOO-1282

The workaround is to remove any existing Boo.Lang.Extensions from the
gac before building.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Testing Compatibility

2010-02-21 Thread Stifu

If I'm not mistaken, Mono can't build C++, but it should be able to run .NET
C++ apps.
Hmm, shouldn't you have done mono Test.exe rather than mono Test?

Feel free to attach the exe so I can try and confirm.
-- 
View this message in context: 
http://n4.nabble.com/Testing-Compatibility-tp1563435p1563476.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Enable silent build

2010-02-21 Thread Priit Laes
Hey!

Following patch enables optional silent build on platforms that support
it.


From de2f55410258d4f1aac5b29fa5439905d16b1777 Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 17:24:22 +0200
Subject: [PATCH 6/6] Enable silent build

---
 configure.in |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index ea4fc2d..d2ba390 100644
--- a/configure.in
+++ b/configure.in
@@ -10,6 +10,9 @@ AC_PROG_CC
 AM_PROG_CC_STDC
 AC_PROG_INSTALL
 
+# Use AM_SILENT_RULES if present
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
 build_warnings=-W -Wall -Wstrict-prototypes -Wmissing-prototypes
 AC_ARG_ENABLE(build-warnings,
 [  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Respect CFLAGS.

2010-02-21 Thread Priit Laes
Hey!

Following patch makes configure respect user-provided CFLAGS.

From 99afdb8ee441b65ae85737fea7bbf7208e14aa29 Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 16:49:24 +0200
Subject: [PATCH 2/6] Respect CFLAGS.

---
 configure.in |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.in b/configure.in
index 8a6899f..6be6bd1 100644
--- a/configure.in
+++ b/configure.in
@@ -106,7 +106,7 @@ AM_PROG_LIBTOOL
 # not 64 bit clean in cross-compile
 AC_CHECK_SIZEOF(void *, 4)
 
-CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -fno-strict-aliasing'
+CFLAGS=-g ${CFLAGS} -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -fno-strict-aliasing
 
 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 if test x$PKG_CONFIG = xno; then
@@ -288,7 +288,7 @@ AM_CONDITIONAL(HAVE_XSP, test x$with_xsp = xyes)
 #not sure why, but I cannot get this test to pass on OS X.
 if test x$platform != xi386darwin ; then
 AC_MSG_CHECKING([Whether your Mono is working])
-old_CFLAGS=$cflags
+old_CFLAGS=$CFLAGS
 CFLAGS=$WRAPPER_CFLAGS
 AC_TRY_COMPILE([#include mono/metadata/mono-debug.h
 #include mono/metadata/debug-mono-symfile.h
@@ -310,7 +310,7 @@ if test x$mono_working != xyes; then
 fi
 
 AC_MSG_CHECKING([Whether attaching is supported in this version of the Mono runtime])
-old_CFLAGS=$cflags
+old_CFLAGS=$CFLAGS
 CFLAGS=$WRAPPER_CFLAGS
 #define MONO_DEBUGGER_MAJOR_VERSION			81
 #define MONO_DEBUGGER_MINOR_VERSION			3
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Fix wrong configure flag for build warnings.

2010-02-21 Thread Priit Laes
Hey,

This patch fixes wrong configure flags that autogen.sh passes on to
configure.

Cheers,
Priit :)
From 075df0df8714b41a3afa576cf6458dcdb5d3814b Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 16:39:28 +0200
Subject: [PATCH 1/6] Fix wrong configure flag for build warnings.

---
 autogen.sh |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 1070762..4f3 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -99,7 +99,7 @@ echo Running autoconf ...
 autoconf || { echo **Error**: autoconf failed.; exit 1; }
 
 
-conf_flags=--enable-maintainer-mode --enable-compile-warnings #--enable-iso-c
+conf_flags=--enable-maintainer-mode --enable-build-warnings #--enable-iso-c
 
 if test x$NOCONFIGURE = x; then
   echo Running $srcdir/configure $conf_flags $@ ...
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Fix parallel build

2010-02-21 Thread Priit Laes
Hey!

Following patch makes it possible to build mono-debugger with make -jN,
where N  1 :)
From d979c9035e6d545caac892ec31f9fae838a612db Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 17:19:19 +0200
Subject: [PATCH 5/6] Fix parallel-build.

---
 build/Makefile.am |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build/Makefile.am b/build/Makefile.am
index 3454bff..5cfbfa1 100644
--- a/build/Makefile.am
+++ b/build/Makefile.am
@@ -168,7 +168,7 @@ Mono.Debugger.Frontend.dll: Makefile $(MDB_SRCLIST) Mono.Debugger.dll
 Mono.Debugger.Test.Framework.dll: Makefile $(TEST_FRAMEWORK_SRCLIST) Mono.Debugger.dll Mono.Debugger.Frontend.dll
 	$(MCS) -target:library -out:Mono.Debugger.Test.Framework.dll $(MCS_FLAGS) -keyfile:$(top_srcdir)/build/mono.snk $(TEST_FRAMEWORK_DEPS) $(TEST_FRAMEWORK_SRCLIST)
 
-Mono.Debugger.Test.dll: Makefile $(TEST_SRCLIST) Mono.Debugger.dll Mono.Debugger.Frontend.dll
+Mono.Debugger.Test.dll: Makefile $(TEST_SRCLIST) Mono.Debugger.dll Mono.Debugger.Frontend.dll Mono.Debugger.Test.Framework.dll
 	$(MCS) -target:library -out:Mono.Debugger.Test.dll $(MCS_FLAGS) -keyfile:$(top_srcdir)/build/mono.snk $(TEST_DEPS) $(TEST_SRCLIST)
 
 Mono.Cecil.dll:
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Add optional support for system libbfd.

2010-02-21 Thread Priit Laes
Hey!

Following patch adds optional support for using system-wide libbfd
instead of bundled one.
From b84e53c2f2ebe42a339602703ee40e405c14d087 Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 17:06:37 +0200
Subject: [PATCH 4/6] Add optional support for system libbfd.

---
 backend/os/Makefile.am |   13 +++--
 backend/os/bfdglue.c   |8 +++-
 configure.in   |   13 +
 3 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/backend/os/Makefile.am b/backend/os/Makefile.am
index 2a9f019..b4ca82c 100644
--- a/backend/os/Makefile.am
+++ b/backend/os/Makefile.am
@@ -1,15 +1,24 @@
+if !SYSTEM_LIBBFD
 SUBDIRS = bfd
 
+libbfd_libs = bfd/opcodes/libopcodes.la bfd/libbfd.la
+libbfd_includes = -I$(srcdir)/bfd -I$(srcdir)/bfd/include -I$(srcdir)/bfd/opcodes
+else
+libbfd_libs = -lopcodes -lbfd
+libbfd_includes =
+endif
+
+
 noinst_LTLIBRARIES = libmonodebuggerbfdglue.la
 
 libmonodebuggerbfdglue_la_SOURCES = \
 	bfdglue.c		\
 	bfdglue.h
 
-libmonodebuggerbfdglue_la_LIBADD = bfd/opcodes/libopcodes.la bfd/libbfd.la @BASE_DEPENDENCIES_LIBS@
+libmonodebuggerbfdglue_la_LIBADD = $(libbfd_libs) @BASE_DEPENDENCIES_LIBS@
 libmonodebuggerbfdglue_la_LDFLAGS = -no-undefined -module -export-dynamic -shared
 
-INCLUDES = -I$(srcdir)/bfd -I$(srcdir)/bfd/include -I$(srcdir)/bfd/opcodes @BASE_DEPENDENCIES_CFLAGS@
+INCLUDES = $(libbfd_includes) @BASE_DEPENDENCIES_CFLAGS@
 
 CLEANFILES = lib*.a lib*.dll
 
diff --git a/backend/os/bfdglue.c b/backend/os/bfdglue.c
index 9a741ac..e2138e7 100644
--- a/backend/os/bfdglue.c
+++ b/backend/os/bfdglue.c
@@ -1,3 +1,5 @@
+#include config.h
+
 #include bfdglue.h
 #include signal.h
 #include string.h
@@ -246,7 +248,11 @@ bfd_glue_get_errormsg (void)
 guint32
 bfd_glue_get_section_size (asection *p)
 {
+#ifdef HAVE_ASECTION_RAWSIZE
+	return p-rawsize ? p-rawsize : p-size;
+#else
 	return p-_raw_size;
+#endif
 }
 
 BfdGlueSectionFlags
@@ -350,4 +356,4 @@ guint64
 bfd_glue_get_start_address (bfd *abfd)
 {
 	return bfd_get_start_address (abfd);
-}
\ No newline at end of file
+}
diff --git a/configure.in b/configure.in
index f88e706..ea4fc2d 100644
--- a/configure.in
+++ b/configure.in
@@ -64,6 +64,19 @@ case $host in
 esac
 AC_MSG_RESULT(ok)
 
+AC_ARG_WITH([system-libbfd],
+	AS_HELP_STRING([--with-system-libbfd], [Use the system copy of libbfd and libopcodes.]))
+
+AS_IF([test x$with_system_libbfd = xyes],
+[
+	AC_CHECK_HEADERS([bfd.h], [], [AC_MSG_ERROR([Missing bfd.h header])])
+	AC_CHECK_LIB([bfd], [bfd_init], [:], [AC_MSG_ERROR([Missing libbfd library])])
+	AC_CHECK_LIB([opcodes], [init_disassemble_info], [:], [AC_MSG_ERROR([Missing libopcodes library])])
+	AC_CHECK_MEMBERS([asection.rawsize], [], [], [[#include bfd.h]])
+])
+
+AM_CONDITIONAL([SYSTEM_LIBBFD], [test x$with_system_libbfd = xyes])
+
 AC_ARG_WITH(bfd-target,
 [  --with-bfd-target   Manually override the BFD target],
 	if test x$with_bfd_target != x; then
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] mono-debugger: Add optional support for system libedit.

2010-02-21 Thread Priit Laes
Hey!

Following patch adds optional support for system-wide libedit library
instead of bundled one...


From dbaeba79be1292a43c50e0b9cf29a0e96a1994ad Mon Sep 17 00:00:00 2001
From: Priit Laes pl...@plaes.org
Date: Sun, 21 Feb 2010 16:58:26 +0200
Subject: [PATCH 3/6] Add optional support for system libedit.

---
 configure.in  |   14 +-
 frontend/libedit/Makefile.am  |   11 +--
 frontend/libedit/mono-debugger-readline.h |   10 +-
 3 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/configure.in b/configure.in
index 6be6bd1..f88e706 100644
--- a/configure.in
+++ b/configure.in
@@ -262,7 +262,19 @@ AC_HEADER_DIRENT
 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
 AC_CHECK_FUNCS(strlcpy strlcat fgetln)
 
-CHECK_READLINE
+AC_ARG_WITH([system-libedit],
+   AS_HELP_STRING([--with-system-libedit], [Use the system copy of libedit.]))
+
+AS_IF([test x$with_system_libedit = xyes],
+  [
+ AC_CHECK_HEADERS([editline/readline.h libedit/readline.h], [found_libedit_header=yes; break;])
+ AS_IF([test $found_libedit_header != yes], [AC_MSG_ERROR([Missing libedit/readline.h header])])
+ AC_CHECK_LIB([edit], [el_init], [:], [AC_MSG_ERROR([Missing libedit library])])
+  ], [
+ CHECK_READLINE
+  ])
+
+AM_CONDITIONAL([SYSTEM_LIBEDIT], [test x$with_system_libedit = xyes])
 
 min_mono_version=72
 symfile_major_version=50
diff --git a/frontend/libedit/Makefile.am b/frontend/libedit/Makefile.am
index 9e03757..100cb88 100644
--- a/frontend/libedit/Makefile.am
+++ b/frontend/libedit/Makefile.am
@@ -1,14 +1,21 @@
 lib_LTLIBRARIES = libmonodebuggerreadline.la
 
 libmonodebuggerreadline_la_SOURCES = \
-	mono-debugger-readline.c mono-debugger-readline.h readline.c readline.h \
+	mono-debugger-readline.c mono-debugger-readline.h
+
+if SYSTEM_LIBEDIT
+libedit_libs = -ledit
+else
+libedit_libs = @READLINE_DEPLIBS@
+libmonodebuggerreadline_la_SOURCES += readline.c readline.h \
 	chared.c common.c el.c emacs.c fcns.c help.c hist.c history.c key.c map.c \
 	parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c vis.c unvis.c \
 	strlcpy.c strlcat.c chared.h common.h el.h emacs.h fcns.h help.h histedit.h hist.h \
 	key.h map.h parse.h prompt.h read.h refresh.h search.h sig.h sys.h term.h tty.h \
 	vi.h vis.h el_term.h filecomplete.h tokenizer.c filecomplete.c
+endif
 
-libmonodebuggerreadline_la_LIBADD = @BASE_DEPENDENCIES_LIBS@ @READLINE_DEPLIBS@
+libmonodebuggerreadline_la_LIBADD = @BASE_DEPENDENCIES_LIBS@ $(libedit_libs)
 if PLATFORM_X86_DARWIN
 libmonodebuggerreadline_la_LDFLAGS = -no-undefined -shared -Wl
 else
diff --git a/frontend/libedit/mono-debugger-readline.h b/frontend/libedit/mono-debugger-readline.h
index c547c75..1a854cc 100644
--- a/frontend/libedit/mono-debugger-readline.h
+++ b/frontend/libedit/mono-debugger-readline.h
@@ -1,9 +1,17 @@
 #ifndef __MONO_DEBUGGER_READLINE_H__
 #define __MONO_DEBUGGER_READLINE_H__
 
+#include config.h
+
 #include glib.h
 #include stdio.h
-#include readline.h
+#if defined(HAVE_LIBEDIT_READLINE_H)
+# include libedit/readline.h
+#elif defined(HAVE_LIBEDIT_READLINE_H)
+# include libedit/readline.h
+#else
+# include readline.h
+#endif
 
 G_BEGIN_DECLS
 
-- 
1.7.0

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Testing Compatibility

2010-02-21 Thread Michael Hutchinson
On Sun, Feb 21, 2010 at 7:47 AM, Stifu st...@free.fr wrote:

 If I'm not mistaken, Mono can't build C++, but it should be able to run .NET
 C++ apps.

Only if they're pure CIL. If they're mixed-mode, i.e. contain both
native and CIL code in the dll/exe, then Mono can only run them on
Windows or Wine.

Unfortunately most C++/CLI is mixed-mode; although it's possible to
run C++/CLI in CIL-only mode, that not very common, as managed/native
interop is the main reason to use it.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] soft debugger

2010-02-21 Thread pablosantosl...@terra.es
Hi there,

On which platforms is the soft debugger supported?

Thanks,

pablo
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] soft debugger

2010-02-21 Thread Zoltan Varga
On amd64/x86/arm.

   Zoltan

On Sun, Feb 21, 2010 at 11:10 PM, pablosantosl...@terra.es 
pablosantosl...@terra.es wrote:

 Hi there,

 On which platforms is the soft debugger supported?

 Thanks,

 pablo
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] soft debugger

2010-02-21 Thread pablosantosl...@terra.es
on every OS or just Linux?? I know it's on Mac too, we're using it! :-)

On 21/02/2010 23:15, Zoltan Varga wrote:
 On amd64/x86/arm.
 
Zoltan
 
 On Sun, Feb 21, 2010 at 11:10 PM, pablosantosl...@terra.es
 mailto:pablosantosl...@terra.es pablosantosl...@terra.es
 mailto:pablosantosl...@terra.es wrote:
 
 Hi there,
 
 On which platforms is the soft debugger supported?
 
 Thanks,
 
 pablo
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 mailto:Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] soft debugger

2010-02-21 Thread Zoltan Varga
Hi,

  It is known to work on linux, windows, mac and the iphone.

   Zoltan

On Sun, Feb 21, 2010 at 11:52 PM, pablosantosl...@terra.es 
pablosantosl...@terra.es wrote:

 on every OS or just Linux?? I know it's on Mac too, we're using it! :-)

 On 21/02/2010 23:15, Zoltan Varga wrote:
  On amd64/x86/arm.
 
 Zoltan
 
  On Sun, Feb 21, 2010 at 11:10 PM, pablosantosl...@terra.es
  mailto:pablosantosl...@terra.es pablosantosl...@terra.es
  mailto:pablosantosl...@terra.es wrote:
 
  Hi there,
 
  On which platforms is the soft debugger supported?
 
  Thanks,
 
  pablo
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  mailto:Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list