[Mono-dev] Embedded Mono - how to update correctly

2006-03-14 Thread Janne Rantala
Hi,What is the right way to do things when I want to update files from svn and use them with embedded mono? What I'm doing now is after updating mono, mcs and libgdiplus from svn, I run ./autogen.sh --prefix=/opt/mono --with-preview=yes; make; make install. When that's done, I clean and rebuild the whole solution in VS2005.
But once again, there are errors...a lot of errors. This time they seem to originate from /metadata/domain-internals.h and various other files, and yet again I'm puzzled what I've done wrong this time? Or is it bad idea to update mono from svn everytime I want to update mcs? Because almost every time I do that, things start going the way they aren't supposed to. 
On the other hand no one else has complained about the errors I get.so is it only me?Cheers,Janne
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] compiler-tester patch for cygwin environment

2006-03-14 Thread Marek Safar
Hello,
> On running compiler-tester, cygwin/bash command line expands the
> argument file wildcard (test-*.cs etc.) to a full-length argument
> list. Thus compiler-tester never runs fine on cygwin.
>
> I created a patch to avoid this problem by adding extra "--pattern:"
> prefix onto the wildcard argument.
>
> It still have to modify mono executable name (since Windows native
> Process.Start() never runs shell scripts) but it is not safe, so
> for now I didn't include such hacky change.
>
> If it looks good please tell me and I'll commit the patch.
>   
I filled bug for this some time ago and Zoltan fixed it but latter some
change brought it back.
See http://bugzilla.ximian.com/show_bug.cgi?id=73763

So, I think a fix is still possible.

Marek

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


Re: [Mono-dev] Incorrect error string (?)

2006-03-14 Thread Marek Safar

Hello Robert,

I just got kinda confusing error string with mcs:

ServerLink.cs(35,24): error CS0118: `ServerLink.System.Net.Dns' is a 
`type' but a `type' was expected


the line has an error, but this error string isn't very helpful, 
neither is logical. The bad line was:


IPAddress addr = new Dns.Resolve( "localhost" );

Please fill  a bug report.

Thanks
Marek

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


RE: [Mono-dev] [PATCH] BUG in System.Web.HttpResponse

2006-03-14 Thread Edward C. Eisenbrey
That works beautifully and is far less invasive than the approach I
proposed.  Thanks!
 

-Original Message-
From: Carlos Ble [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 8:08 AM
To: mono-devel-list@lists.ximian.com
Subject: RE: [Mono-dev] [PATCH] BUG in System.Web.HttpResponse

Hi!
This is a reply to 
http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg06729.ht
ml
I had the same problem with mono-1.1.13.4 but I remembered that the same
code worked with mono-1.1.13.2 so I change line 447 in file 
mcs/class/System.Web/System.Web/HttpResponse.cs, replacing
"CacheControl" with "cache_control" and now it works again.
I hope this could help.

Greetings


ps- I cant do tests now, sorry



___
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] Bug in System.Web.Services inSoapMessage.ContentEncoding

2006-03-14 Thread Lluis Sanchez
This one looks ok to me.

El mar, 14-03-2006 a las 05:55 -0800, Vladimir Krasnov escribió:
> Hello,
> 
> You right, Lluis
> I've fixed this in different way. Please look at attached files.
> 
> Vladimir Krasnov
> 
> -Original Message-
> From: Lluis Sanchez [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 14, 2006 1:51 AM
> To: Vladimir Krasnov
> Cc: mono-devel-list@lists.ximian.com
> Subject: Re: [Mono-dev] Bug in System.Web.Services 
> inSoapMessage.ContentEncoding
> 
> This patch is not correct. You can't add a protected property that's
> doesn't exist in the MS api. Moreover, I don't think this is the right
> way of updating the request. Why not set the initial content type to the
> message, process it, and then update the request from the resulting
> message?
> 
> El lun, 13-03-2006 a las 09:18 -0800, Vladimir Krasnov escribió:
> > Hello,
> > 
> > ContentEncoding property has a wrong value in a soap message that passed
> > to ProcessMessage method. Look attached sample that reproduces the
> > problem. 
> > 
> > Please approve the attached patches that fix this problem.
> > I will commit if no one objects.
> > 
> > Vladimir Krasnov
> > 
> > ___
> > 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] Bug in System.Web.Services inSoapMessage.ContentEncoding

2006-03-14 Thread Vladimir Krasnov
Hello,

You right, Lluis
I've fixed this in different way. Please look at attached files.

Vladimir Krasnov

-Original Message-
From: Lluis Sanchez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 1:51 AM
To: Vladimir Krasnov
Cc: mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] Bug in System.Web.Services inSoapMessage.ContentEncoding

This patch is not correct. You can't add a protected property that's
doesn't exist in the MS api. Moreover, I don't think this is the right
way of updating the request. Why not set the initial content type to the
message, process it, and then update the request from the resulting
message?

El lun, 13-03-2006 a las 09:18 -0800, Vladimir Krasnov escribió:
> Hello,
> 
> ContentEncoding property has a wrong value in a soap message that passed
> to ProcessMessage method. Look attached sample that reproduces the
> problem. 
> 
> Please approve the attached patches that fix this problem.
> I will commit if no one objects.
> 
> Vladimir Krasnov
> 
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



HttpSoapWebServiceHandler.cs.1a.patch
Description: HttpSoapWebServiceHandler.cs.1a.patch


SoapServerMessage.cs.1a.patch
Description: SoapServerMessage.cs.1a.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


RE: [Mono-dev] [PATCH] BUG in System.Web.HttpResponse

2006-03-14 Thread Carlos Ble
Hi!
This is a reply to 
http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg06729.html
I had the same problem with mono-1.1.13.4 but I remembered that the same
code worked with mono-1.1.13.2 so I change line 447 in file 
mcs/class/System.Web/System.Web/HttpResponse.cs, replacing
"CacheControl" with "cache_control" and now it works again.
I hope this could help.

Greetings


ps- I cant do tests now, sorry



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


[Mono-dev] (no subject)

2006-03-14 Thread Sridhar Kulkarni

Hi:

Please find the attached patch for /bugreport option bug in Mono Compiler.

Regards,

-Sri

_
Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search 
http://server1.msn.co.in/profile/shahrukh.asp

--- driverold.cs2006-03-14 16:40:24.0 +0530
+++ ./mono/mono-1.1.13.4/mcs/mcs/driver.cs	2006-03-14 16:36:47.0 
+0530

@@ -89,7 +89,13 @@
// Output file
//
static string output_file = null;
-
+
+   //
+   // Bugreport file
+   //
+   static string bugreport_file = null;
+   public static string bugerr_msg = null;
+
//
// Last time we took the time
//
@@ -113,6 +119,7 @@
win32ResourceFile = win32IconFile = null;
defines = null;
output_file = null;
+   bugreport_file = null;
encoding = null;
first_source = null;
}
@@ -227,6 +234,7 @@
"mcs [options] source-files\n" +
"   --aboutAbout the Mono C# 
compiler\n" +
"   -addmodule:MODULE  Adds the module to the 
generated assembly\n" +
+   "   -bugreport:   Creates a 'Bug Report' 
file\n" +
"   -checked[+|-]  Set default context to 
checked\n" +
"   -codepage:ID   Sets code page to the one in ID (number, utf8, 
reset)\n" +
"   -clscheck[+|-] Disables CLS Compliance verifications" + 
Environment.NewLine +

@@ -287,8 +295,12 @@
{
Location.InEmacs = Environment.GetEnvironmentVariable ("EMACS") 
== "t";

+
bool ok = MainDriver (args);
-
+   //Sri
+   if(bugreport_file != null)
+   CreateBugReportFile(args);
+
if (ok && Report.Errors == 0) {
if (Report.Warnings > 0) {
	Console.WriteLine ("Compilation succeeded - {0} warning(s)", 
Report.Warnings);

@@ -565,6 +577,7 @@
return;
}
foreach (string f in files) {
+   Console.WriteLine("Files:  {0}", f);
ProcessFile (f);
}

@@ -634,6 +647,15 @@
return Path.GetFileName (output_file);
}
}
+   public static string BugreportFile
+   {
+   set {
+   bugreport_file = value;
+   }
+   /*  get {
+   //return Path.GetFilename (bugreport_file);
+   }*/
+   }

static void SetWarningLevel (string s)
{
@@ -1025,8 +1047,13 @@
//
// We should collect data, runtime, etc and 
store in the file specified
//
-Console.WriteLine ("To file bug reports, please visit: 
http://www.mono-project.com/Bugs";);

+   if (value == ""){
+   Usage ();
+   Environment.Exit (1);
+   }
+   BugreportFile = value;
return true;
+			//	Console.WriteLine ("To file bug reports, please visit: 
http://www.mono-project.com/Bugs";);


case "/pkg": {
string packages;
@@ -1426,7 +1453,66 @@

return true;
}
+   //Sri
+
+   static void CreateBugReportFile(string[] args)
+   {
+   try
+   {
+   TextReader tr = null;
+string version = Assembly.GetExecutingAssembly ().GetName 
().Version.ToString ();

+   TextWriter tw = new StreamWriter 
(bugreport_file);
+tw.WriteLine ("### Mono C# compiler version {0} " + "Defect Report 
Created on {1} " , version, DateTime.Now);

+   tw.WriteLine ("### Operating System " + 
Environment.OSVersion);
+   tw.WriteLine ("### Compiler Commandline: ");
+   
tw.Write(Assembly.GetExecutingAssembly().GetName().Name.ToString());
+   foreach (string arg in args) {
+   tw.Write(" ");
+   tw.Write(arg);
+   }
+   

[Mono-dev] [Patch] Signals access in mono/support/serial

2006-03-14 Thread Carlos Alberto Cortez
Hello,

The attached patch adds a pair of small functions to access signals
information for the serial port. 

Carlos.
Index: serial.c
===
--- serial.c	(revisión: 57943)
+++ serial.c	(copia de trabajo)
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -202,6 +203,62 @@
 	return TRUE;
 }
 
+static gint32
+get_signal_code (MonoSerialSignal signal)
+{
+	switch (signal) {
+		case Cd:
+			return TIOCM_CAR;
+		case Cts:
+			return TIOCM_CTS;
+		case Dsr:
+			return TIOCM_DSR;
+		case Dtr:
+			return TIOCM_DTR;
+		case Rts:
+			return TIOCM_RTS;
+	}
+
+	/* Not reached */
+	return 0;
+}
+
+gint32
+get_signal (int fd, MonoSerialSignal signal)
+{
+	int signals, expected;
+
+	expected = get_signal_code (signal);
+	if (ioctl (fd, TIOCMGET, &signals) == -1)
+		return -1;
+	
+	return (expected & signals) != 0;
+}
+
+gint32
+set_signal (int fd, MonoSerialSignal signal, gboolean value)
+{
+	int signals, expected, activated;
+
+	expected = get_signal_code (signal);
+	if (ioctl (fd, TIOCMGET, &signals) == -1)
+		return -1;
+	
+	activated = (signals & expected) != 0;
+	if (activated == value) /* Already set */
+		return 1;
+	
+	if (value)
+		signals |= expected;
+	else
+		signals &= ~expected;
+	
+	if (ioctl (fd, TIOCMSET, &signals) == -1)
+		return -1;
+	
+	return 1;
+}
+
 /*
  * mono internals should not be used here.
  * this serial stuff needs to be implemented with icalls.
Index: serial.h
===
--- serial.h	(revisión: 57943)
+++ serial.h	(copia de trabajo)
@@ -27,5 +27,14 @@
 	OnePointFive = 3
 } MonoStopBits;
 
+/* This is a copy of System.IO.Ports.SerialSignal */
+typedef enum {
+	Cd = 0, /* Carrier detect */
+	Cts = 1, /* Clear to send */
+	Dsr = 2, /* Data set ready */
+	Dtr = 3, /* Data terminal ready */
+	Rts = 4  /* Request to send */
+} MonoSerialSignal;
+
 #endif
 
Index: ChangeLog
===
--- ChangeLog	(revisión: 57943)
+++ ChangeLog	(copia de trabajo)
@@ -1,3 +1,7 @@
+2006-03-14  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+	* serial.c: Add functions to handle signals access.
+
 2006-03-09  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
 	* serial.c: Fix a pair of wrong or incomplete assignations
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list