Re: [Mono-docs-list] Wiki Markup for ECMA documents.
As always, I'll be more than happy to help as well... But I'm on the same boat as you, I'm not very familiar with neither XSLT nor Mediawiki. - raf On Tue, 2005-11-29 at 10:06 +0100, Mario Sopena wrote: Hello, 2005/11/27, Miguel de Icaza [EMAIL PROTECTED]: Hello, The trick of course is that I know very little about XSLT, and am wondering if a kind soul could whip up the code necessary to go from our ECMA XML to MediaWiki markup and back. I can try to write something, I'm not an XSLT expert (say Joshua), but I think I can cook something. The issue is that I've started a (new) job and I have less and less time to code (*snif*). Stay tuned. Mario Miguel. -- Miguel de Icaza [EMAIL PROTECTED] Novell, Inc. ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list ___ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list
Re: [Mono-dev] System.Drawing.SystemIcons.cs
It is deliberate. Icons have special masks that this code handles that is not part of regular bitmaps, otherwise the standard bitmap code would have been called. Assuming that there are no bugs in the encoder I see no reason to plug in another, as there's only one format it is supposed to handle, and that format is handled. Cheers, Peter -Original Message- From: Konstantin Triger [EMAIL PROTECTED] To: Peter Dennis Bartok [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Date: Tuesday, 29 November, 2005 00:58 Subject: RE: [Mono-dev] System.Drawing.SystemIcons.cs 1. I may want to plug some 3rd party or an encoder. 2. This will give a unified architecture. 3. This will make the ToBitmap method to return the internal object instead of serializing / deserializing to BMP. But actually I wondered whether this was made deliberately or is an historic issue. Regards, Konstantin Triger -Original Message- From: Peter Dennis Bartok [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 9:20 AM To: Konstantin Triger; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] System.Drawing.SystemIcons.cs BTW, does someone know why Icon.cs has its codec inside and does not use a pluggable mechanism, like other codecs do? Not sure what that would achieve. What codecs do you want to plug in? The Icon format is defined by MS. Cheers, Peter ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context
On Mon, 2005-11-28 at 21:10 -0500, John Luke wrote: Hello, Here is a patch that renames the Graphics class to Context, like all the other cairo bindings use. It would be a breaking change, but I think it will be less confusing for developers. Please speak up if you disagree. There is one other API change I think would be nice, but I dont think I'll have time to do it this week. That is to change PointD, Color, etc to structs and rename PointD to Point. Everything else should be able to be handled in an API compatible way. Seems like a gratuitous change to me. We are already exposing Cairo.Graphics in the 2.7.1 release of Gtk#. It's an unstable release, so I can change the symbol still, but the change as posted would break 2.7.1 on newer mono releases. If this change is going to be made, at the very least I would suggest adding something like: [Obsolete (Replaced by Cairo.Context)] public class Graphics : Context {} That would at least give source compat, if not runtime compat. But I don't personally think it's worth changing just to be consistent with other language bindings. -- Mike Kestner [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
RE: [Mono-dev] System.Drawing.SystemIcons.cs
OK, thanks. Regards, Konstantin Triger -Original Message- From: Peter Dennis Bartok [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 5:57 PM To: Konstantin Triger; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] System.Drawing.SystemIcons.cs It is deliberate. Icons have special masks that this code handles that is not part of regular bitmaps, otherwise the standard bitmap code would have been called. Assuming that there are no bugs in the encoder I see no reason to plug in another, as there's only one format it is supposed to handle, and that format is handled. Cheers, Peter -Original Message- From: Konstantin Triger [EMAIL PROTECTED] To: Peter Dennis Bartok [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Date: Tuesday, 29 November, 2005 00:58 Subject: RE: [Mono-dev] System.Drawing.SystemIcons.cs 1. I may want to plug some 3rd party or an encoder. 2. This will give a unified architecture. 3. This will make the ToBitmap method to return the internal object instead of serializing / deserializing to BMP. But actually I wondered whether this was made deliberately or is an historic issue. Regards, Konstantin Triger -Original Message- From: Peter Dennis Bartok [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 9:20 AM To: Konstantin Triger; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] System.Drawing.SystemIcons.cs BTW, does someone know why Icon.cs has its codec inside and does not use a pluggable mechanism, like other codecs do? Not sure what that would achieve. What codecs do you want to plug in? The Icon format is defined by MS. Cheers, Peter ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Mono.Data.SqliteClient fixes from Beagle
Hi, Previously, SqliteClient did not properly check the return values of some of its calls into the sqlite API. The sqlite API can return BUSY in some locking-related situations, but this wasn't being handled appropriately, and strange things would happen. This patch wraps Sqlite errors into a new exception class, which allows the user to respond accordingly to BUSY states. For example, Beagle sleeps a bit and then retries when it sees a SqliteException with BUSY inside it. This work was done by Jon Trowbridge, but I've been maintaining it and keeping it up-to-date with the more recent SqliteClient changes applied to the tree. After a long period of testing in Beagle I feel its time this should be fixed in the main tree :) Any comments? Does this look ok for me to commit? Thanks, Daniel Index: SqliteDataReader.cs === --- SqliteDataReader.cs (revision 53531) +++ SqliteDataReader.cs (working copy) @@ -43,29 +43,30 @@ #region Fields private SqliteCommand command; - private ArrayList rows; + private IntPtr pVm; + private int version; + + private ArrayList current_row; + private ArrayList columns; private Hashtable column_names; - private int current_row; private bool closed; - private bool reading; - private int records_affected; #endregion #region Constructors and destructors - internal SqliteDataReader (SqliteCommand cmd, IntPtr pVm, int version) + internal SqliteDataReader (SqliteCommand cmd, IntPtr _pVm, int _version) { command = cmd; - rows = new ArrayList (); + pVm = _pVm; + version = _version; + + current_row = new ArrayList (); + columns = new ArrayList (); column_names = new Hashtable (); closed = false; - current_row = -1; - reading = true; - ReadpVm (pVm, version); - ReadingDone (); } #endregion @@ -81,11 +82,11 @@ } public object this[string name] { - get { return ((ArrayList) rows[current_row])[(int) column_names[name]]; } + get { return current_row [(int) column_names[name]]; } } public object this[int i] { - get { return ((ArrayList) rows[current_row])[i]; } + get { return current_row [i]; } } public bool IsClosed { @@ -93,90 +94,90 @@ } public int RecordsAffected { - get { return records_affected; } + get { return command.NumChanges (); } } #endregion #region Internal Methods - - internal void ReadpVm (IntPtr pVm, int version) + + internal bool ReadNextColumn () { int pN = 0; IntPtr pazValue = IntPtr.Zero; IntPtr pazColName = IntPtr.Zero; SqliteError res; - while (true) { -if (version == 3) { - res = Sqlite.sqlite3_step (pVm); - pN = Sqlite.sqlite3_column_count (pVm); -} else - res = Sqlite.sqlite_step (pVm, out pN, out pazValue, out pazColName); -if (res == SqliteError.ERROR) { - throw new ApplicationException (Sqlite error); -} -if (res == SqliteError.DONE) { - break; -} -// We have some data; lets read it -if (column_names.Count == 0) { - for (int i = 0; i pN; i++) { - string colName = ; - if (version == 2) { - IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazColName, i*IntPtr.Size); - colName = Marshal.PtrToStringAnsi (fieldPtr); - } else { - colName = Marshal.PtrToStringAnsi (Sqlite.sqlite3_column_name (pVm, i)); - } - columns.Add (colName); - column_names [colName] = i; - } -} -ArrayList data_row = new ArrayList (pN); + if (version == 3) { +res = Sqlite.sqlite3_step (pVm); +pN = Sqlite.sqlite3_column_count (pVm); + } else +res = Sqlite.sqlite_step (pVm, out pN, out pazValue, out pazColName); + + if (res == SqliteError.DONE) { +return false; + } + + if (res != SqliteError.ROW) +throw new SqliteException (res); + + // We have some data; lets read it + + // If we are reading the first column, populate the column names + if (column_names.Count == 0) { for (int i = 0; i pN; i++) { - string colData = ; + string colName = ; if (version == 2) { - IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazValue, i*IntPtr.Size); - colData = Marshal.PtrToStringAnsi (fieldPtr); - data_row.Add (Marshal.PtrToStringAnsi (fieldPtr)); + IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazColName, i*IntPtr.Size); + colName = Marshal.PtrToStringAnsi (fieldPtr); } else { - switch (Sqlite.sqlite3_column_type (pVm, i)) { - case 1: -Int64 sqliteint64 = Sqlite.sqlite3_column_int64 (pVm, i); -data_row.Add (sqliteint64.ToString ()); -break; - case 2: -double sqlitedouble = Sqlite.sqlite3_column_double (pVm, i); -data_row.Add (sqlitedouble.ToString ()); -break; - case 3: -colData = Marshal.PtrToStringAnsi (Sqlite.sqlite3_column_text (pVm, i)); -data_row.Add (colData); -
[Mono-dev] [PATCH] Mono.Data.SqliteClient fixes from Beagle
Hi, Previously, SqliteClient did not properly check the return values of some of its calls into the sqlite API. The sqlite API can return BUSY in some locking-related situations, but this wasn't being handled appropriately, and strange things would happen. This patch wraps Sqlite errors into a new exception class, which allows the user to respond accordingly to BUSY states. For example, Beagle sleeps a bit and then retries when it sees a SqliteException with BUSY inside it. This work was done by Jon Trowbridge, but I've been maintaining it and keeping it up-to-date with the more recent SqliteClient changes applied to the tree. After a long period of testing in Beagle I feel its time this should be fixed in the main tree :) Any comments? Does this look ok for me to commit? Thanks, Daniel Index: SqliteDataReader.cs === --- SqliteDataReader.cs (revision 53531) +++ SqliteDataReader.cs (working copy) @@ -43,29 +43,30 @@ #region Fields private SqliteCommand command; - private ArrayList rows; + private IntPtr pVm; + private int version; + + private ArrayList current_row; + private ArrayList columns; private Hashtable column_names; - private int current_row; private bool closed; - private bool reading; - private int records_affected; #endregion #region Constructors and destructors - internal SqliteDataReader (SqliteCommand cmd, IntPtr pVm, int version) + internal SqliteDataReader (SqliteCommand cmd, IntPtr _pVm, int _version) { command = cmd; - rows = new ArrayList (); + pVm = _pVm; + version = _version; + + current_row = new ArrayList (); + columns = new ArrayList (); column_names = new Hashtable (); closed = false; - current_row = -1; - reading = true; - ReadpVm (pVm, version); - ReadingDone (); } #endregion @@ -81,11 +82,11 @@ } public object this[string name] { - get { return ((ArrayList) rows[current_row])[(int) column_names[name]]; } + get { return current_row [(int) column_names[name]]; } } public object this[int i] { - get { return ((ArrayList) rows[current_row])[i]; } + get { return current_row [i]; } } public bool IsClosed { @@ -93,90 +94,90 @@ } public int RecordsAffected { - get { return records_affected; } + get { return command.NumChanges (); } } #endregion #region Internal Methods - - internal void ReadpVm (IntPtr pVm, int version) + + internal bool ReadNextColumn () { int pN = 0; IntPtr pazValue = IntPtr.Zero; IntPtr pazColName = IntPtr.Zero; SqliteError res; - while (true) { -if (version == 3) { - res = Sqlite.sqlite3_step (pVm); - pN = Sqlite.sqlite3_column_count (pVm); -} else - res = Sqlite.sqlite_step (pVm, out pN, out pazValue, out pazColName); -if (res == SqliteError.ERROR) { - throw new ApplicationException (Sqlite error); -} -if (res == SqliteError.DONE) { - break; -} -// We have some data; lets read it -if (column_names.Count == 0) { - for (int i = 0; i pN; i++) { - string colName = ; - if (version == 2) { - IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazColName, i*IntPtr.Size); - colName = Marshal.PtrToStringAnsi (fieldPtr); - } else { - colName = Marshal.PtrToStringAnsi (Sqlite.sqlite3_column_name (pVm, i)); - } - columns.Add (colName); - column_names [colName] = i; - } -} -ArrayList data_row = new ArrayList (pN); + if (version == 3) { +res = Sqlite.sqlite3_step (pVm); +pN = Sqlite.sqlite3_column_count (pVm); + } else +res = Sqlite.sqlite_step (pVm, out pN, out pazValue, out pazColName); + + if (res == SqliteError.DONE) { +return false; + } + + if (res != SqliteError.ROW) +throw new SqliteException (res); + + // We have some data; lets read it + + // If we are reading the first column, populate the column names + if (column_names.Count == 0) { for (int i = 0; i pN; i++) { - string colData = ; + string colName = ; if (version == 2) { - IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazValue, i*IntPtr.Size); - colData = Marshal.PtrToStringAnsi (fieldPtr); - data_row.Add (Marshal.PtrToStringAnsi (fieldPtr)); + IntPtr fieldPtr = (IntPtr)Marshal.ReadInt32 (pazColName, i*IntPtr.Size); + colName = Marshal.PtrToStringAnsi (fieldPtr); } else { - switch (Sqlite.sqlite3_column_type (pVm, i)) { - case 1: -Int64 sqliteint64 = Sqlite.sqlite3_column_int64 (pVm, i); -data_row.Add (sqliteint64.ToString ()); -break; - case 2: -double sqlitedouble = Sqlite.sqlite3_column_double (pVm, i); -data_row.Add (sqlitedouble.ToString ()); -break; - case 3: -colData = Marshal.PtrToStringAnsi (Sqlite.sqlite3_column_text (pVm, i)); -data_row.Add (colData); -
Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context
Being consistent with other language bindings enables users to easily switch languages and switch to using Mono for their cairo needs without relearning or posting support questions. The cairo documentation refers to 'Contexts', the language binding specification says this: For this reason, and for inter-language consistency all object-oriented languages should name this type as if it were cairo_context_t. When we moved Mono.Cairo to cairo 1.0 we should have followed the language binding specs that cairo provides instead of sticking with what it was called when Mono.Cairo was created and no language binding docs existed. I would rather have a little pain now, affecting an unstable release, than lots of pain later, if we ever decided to change it after all. The [Obsolete] attribute sounds like a good idea. Cheers, Peter -Original Message- From: Mike Kestner [EMAIL PROTECTED] To: John Luke [EMAIL PROTECTED] Cc: mono-devel-list@lists.ximian.com Date: 29 November, 2005 09:57 Subject: Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context On Mon, 2005-11-28 at 21:10 -0500, John Luke wrote: Hello, Here is a patch that renames the Graphics class to Context, like all the other cairo bindings use. It would be a breaking change, but I think it will be less confusing for developers. Please speak up if you disagree. There is one other API change I think would be nice, but I dont think I'll have time to do it this week. That is to change PointD, Color, etc to structs and rename PointD to Point. Everything else should be able to be handled in an API compatible way. Seems like a gratuitous change to me. We are already exposing Cairo.Graphics in the 2.7.1 release of Gtk#. It's an unstable release, so I can change the symbol still, but the change as posted would break 2.7.1 on newer mono releases. If this change is going to be made, at the very least I would suggest adding something like: [Obsolete (Replaced by Cairo.Context)] public class Graphics : Context {} That would at least give source compat, if not runtime compat. But I don't personally think it's worth changing just to be consistent with other language bindings. -- Mike Kestner [EMAIL PROTECTED] ___ 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] patch for Mono.Cairo to rename Graphics to Context
On Tue, 2005-11-29 at 12:40 -0500, John Luke wrote: [Obsolete (Replaced by Cairo.Context)] public class Graphics : Context {} I would rather not make the change if we have to add Obsolete API, I consider that an even more likely source of confusion. Peter pointed me to this: http://www.cairographics.org/manual/language-bindings.html Which clearly supports the change. As far as confusion with Obsolete API, we need to add some support to monodoc for stuffing obsolete API onto a special page or at least highlighting summaries for obsolete members/types. I guess we just need an official statement from Miguel as to whether the Mono.Cairo API was ever declared stable. It has shipped with stable releases already, but I don't know if that alone carries an expectation of stability. Since the Gtk# exposure of Cairo.Graphics is so new and unstable, we could probably get around the issue by simultaneously releasing a new Gtk# with the next mono release. We also need to address the issue of Mono.Cairo availability on win32 with the MS runtime. We need to be able to build/ship Mono.Cairo without mono on win32 for Gtk#. -- Mike Kestner [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context
On Tue, 2005-11-29 at 10:35 -0600, Mike Kestner wrote: We are already exposing Cairo.Graphics in the 2.7.1 release of Gtk#. It's an unstable release, so I can change the symbol still, but the change as posted would break 2.7.1 on newer mono releases. If this change is going to be made, at the very least I would suggest adding something like: [Obsolete (Replaced by Cairo.Context)] public class Graphics : Context {} That would at least give source compat, if not runtime compat. But I don't personally think it's worth changing just to be consistent with other language bindings. I really hope we aren't considering the Cairo bindings to be stable right now. I took a quick look and found a few api issues: * Things like Point are classes not structs. This is confusing as all the other graphics apis (S.Drawing, Gdk) use structs. * Point, Color, etc use public fields rather than properties. For example, Color should probably check that r,g,b,a are = 1.0. * There are many apis to do the same thing: // FIXME should be made into a property public void FontSetSize (double size) { CairoAPI.cairo_set_font_size (state, size); } public double FontSize { set { CairoAPI.cairo_set_font_size (state, value); } } public void SetFontSize (double scale) { CairoAPI.cairo_set_font_size (state, scale); } public void SelectFontFace (string family, FontSlant slant, FontWeight weight) { CairoAPI.cairo_select_font_face (state, family, slant, weight); } public void FontFace (string family, FontSlant s, FontWeight w) { CairoAPI.cairo_select_font_face (state, family, s, w); } public IntPtr Handle { get { return surface; } } public IntPtr Pointer { get { return surface; } } * Other todos in the API, (See Graphics.cs around line 531). * Inconsistent following of API guidelines wrt case of API names: * public Cairo.Color ColorRgb { * public void SetSourceRGB (double r, double g, double b * (Micorosft uses public static Color FromArgb (int argb)) In short, I don't think this API has had the level of auditing needed to declare it stable. If we consider the current API to be stable, we will be left with binding full of [Obsolete] methods and riddled with some unfixable issues. -- Ben ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] Mono.Data.SqliteClient fixes from Beagle
Daniel Drake wrote: Previously, SqliteClient did not properly check the return values of some of its calls into the sqlite API. In light of the issue on mono-list about a CREATE TABLE ...; CREATE TABLE ...; command, if my hasty conclusion was true that we can't prepare the whole thing before executing, and in which case SqliteCommand.cs needs to be rewritten, it might be better to hold off on modifying that file until after. At least, if I'm going to do the rewriting, that's my preference. But I won't have time to do that for a few weeks, so if you or anyone else wants to work on that before then, just ignore my opinion. :) -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context
On Tue, 2005-11-29 at 12:07 -0600, Mike Kestner wrote: We also need to address the issue of Mono.Cairo availability on win32 with the MS runtime. We need to be able to build/ship Mono.Cairo without mono on win32 for Gtk#. This already works (for gtk2.8), or are you referring to making it easier/automatic? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] patch for Mono.Cairo to rename Graphics to Context
On Tue, 2005-11-29 at 15:53 -0500, John Luke wrote: On Tue, 2005-11-29 at 12:07 -0600, Mike Kestner wrote: We also need to address the issue of Mono.Cairo availability on win32 with the MS runtime. We need to be able to build/ship Mono.Cairo without mono on win32 for Gtk#. This already works (for gtk2.8), or are you referring to making it easier/automatic? Right now, we only reference Mono.Cairo.dll on non-win32 platforms, so 2.7.1 probably doesn't even build out of the box on win32. We need a way to detect if Mono.Cairo is installed (ie mono-cairo.pc) and make 2.7.x depend on that. We can't just depend on mono.pc because the MS runtime is a primary win32 target for Gtk#. -- Mike Kestner [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono Presentation Slides
I was wondering if there were any presentation slides that anyone has done on Mono that I could use for my presentation I'm giving to the OSU Opensource Club; I've seen them on the various blogs but I can't find any of them on Google. Any suggestions / ideas / cool demos you've got would also be awesome! -- Paul Betts [EMAIL PROTECTED] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-list] Re: Running mod-mono-server in a chroot jail
Robert Jordan wrote: Jesse, You are correct, I do not have the real proc filesystem mounted into the jail. I was thinking I could go ahead and mount this using something like: mount --bind /proc -o ro,nosuid /home/jail/proc mount -n -t proc proc /home/jail/proc Does this open up and security issues etc? I'm not very familiar with the proc filesystem. There were some security issues (chroot escapes) with chroot and procfs, but I cannot remember which linux kernel version was affected (2.2 or 2.4?). Since security is being brought up here... Find paxtest.. Test your system and then check to see if you have make tools installed.. It takes about 2 minutes to pivot and or simply escape out of a chroot jail if you know a few key things.. chroot isn't a panacea.. Also.. For those that plan to run a reverse proxy to allow multiple xsp.. (Take a look at how many vulnerabilities squid has had over the last year.) I'm by no means an expert, but these are my basic thoughts.. C. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] pkg-config install fail in Solaris
Hi In Solaris 8 I installgcc-3.4.2-sol8-sparc-local, and libiconv-1.8-sol8-sparc-local.gz from http://www.sunfreeware.com/ the i make pkg-config-0.20.tar.gz and glib-2.9.0.tar.gz without problems when i configure mono i get error Bison needed, I make m4-1.4.3.tar.gz in /usr, no /usr/local, and the bison-2.0.tar.gz in/usr/local I configure mono, without problems But when i make i get: S�bolo primera referencia no definidoen el archivo isnormallibmonodis.a(get.o) ld: error fatal: Errores de referencia de s�bolo. No se escribi�salida en .libs/monodis collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `monodis' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10/mono/dis *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10/mono *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10 *** Error code 1 make: Fatal error: Command failed for target `all' Regards 2005/11/23, Miguel de Icaza [EMAIL PROTECTED]: I'm trying to install mono on solaris and the pkg-config fails in make, the /configure --prefix=/usr/local has succeeded is mandatory to install pkg-config on solaris? You are compiling with cc, while the flags that you are passing are for gcc. You are mixing toolchains. Regards depmode=none /bin/bash ./depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -DPKG_CONFIG_PC_PATH=\/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\ -I./glib-1.2.8-g -Wall -O2 -g -c `test -f 'pkg.c' || echo './'`pkg.c cc: illegal option -Wall *** Error code 1 make: Fatal error: Command failed for target `pkg.o' Current working directory /tpnetfrontend/1.1.10.1.src/pkg-config-0.20 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/pkg-config-0.20 *** Error code 1 make: Fatal error: Command failed for target `all' ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Miguel de Icaza [EMAIL PROTECTED] ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Undefined symbol isnormal when building mono-1.1.10
Hi I'm trying to complire mono-1.1.10 in Solaris 8 the error: /bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-align -o monodis dump.o main.o libmonodis.a ../mini/libmono.la -L/usr/local/lib -lgmodule-2.0 -ldl -lglib-2.0 -lintl -liconv -threads -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -lintl -liconv -lrt -lsocket -lnsl -lxnet -lpthread -lm -lrt gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-align -o .libs/monodis dump.o main.o -threads libmonodis.a ../mini/.libs/libmono.so -L/usr/local/lib -L/usr/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib -L/usr/openwin/llib /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libgthread-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so -lc /usr/local/lib/libiconv.so -lsocket -lnsl -lxnet -lpthread -lm -lrt -R/usr/local/lib S�bolo primera referencia no definidoen el archivo isnormallibmonodis.a(get.o) ld: error fatal: Errores de referencia de s�bolo. No se escribi�salida en .libs/monodis collect2: ld returned 1 exit status any idea? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Fwd: [Mono-list] pkg-config install fail in Solaris
Hi In Solaris 8 I installgcc-3.4.2-sol8-sparc-local, and libiconv-1.8-sol8-sparc-local.gz from http://www.sunfreeware.com/ the i make pkg-config-0.20.tar.gz and glib-2.9.0.tar.gz without problems when i configure mono i get error Bison needed, I make m4-1.4.3.tar.gz in /usr, no /usr/local, and the bison-2.0.tar.gz in/usr/local I configure mono, without problems But when i make i get: S�bolo primera referencia no definidoen el archivo isnormallibmonodis.a(get.o) ld: error fatal: Errores de referencia de s�bolo. No se escribi�salida en .libs/monodis collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `monodis' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10/mono/dis *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10/mono *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/mono-1.1.10 *** Error code 1 make: Fatal error: Command failed for target `all' Regards 2005/11/23, Miguel de Icaza [EMAIL PROTECTED]: I'm trying to install mono on solaris and the pkg-config fails in make, the /configure --prefix=/usr/local has succeeded is mandatory to install pkg-config on solaris? You are compiling with cc, while the flags that you are passing are for gcc. You are mixing toolchains. Regards depmode=none /bin/bash ./depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -DPKG_CONFIG_PC_PATH=\/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\ -I./glib-1.2.8-g -Wall -O2 -g -c `test -f 'pkg.c' || echo './'`pkg.c cc: illegal option -Wall *** Error code 1 make: Fatal error: Command failed for target `pkg.o' Current working directory /tpnetfrontend/1.1.10.1.src/pkg-config-0.20 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tpnetfrontend/1.1.10.1.src/pkg-config-0.20 *** Error code 1 make: Fatal error: Command failed for target `all' ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Miguel de Icaza [EMAIL PROTECTED] ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Sqlite Client
Hello, I am trying to use the Mono.Data.SqliteClient with sqlite3 but can not execute more than one SQL command in a single CommandText: SqliteCommand dbcmd = new SqliteCommand (); .. .. dbcmd.CommandText = @ CREATE TABLE table1 ( id TEXT, name TEXT ); CREATE TABLE table2 ( id TEXT, name TEXT ); ; This command creates table1 only (sometimes). If it is only possible to use 1 command per SqliteCommand, is it ok to use only one SqliteCommand instance through out the method? Best regards. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sqlite Client
I am using Mono 1.1.10_1 installer on Ubuntu 5.10. This should be the latest official release. using System; using System.Data; using Mono.Data.SqliteClient; public class TestSqlite { public static void Main (string[] args) { string connString = version=3,URI=file:test.db; SqliteConnection dbcon = new SqliteConnection (connString); dbcon.Open (); SqliteCommand dbcmd = new SqliteCommand (@ CREATE TABLE counter1 ( transid INTEGER ); CREATE TABLE counter2 ( transid INTEGER ); ); dbcmd.Connection = dbcon; dbcmd.ExecuteNonQuery (); dbcmd.Dispose (); dbcon.Close (); } } This creates only counter1. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sqlite Client
I remember having the same problem with mono svn. I just used the same command multiple times to execute each query element. 2005/11/29, Ecmel Ercan [EMAIL PROTECTED]: I am using Mono 1.1.10_1 installer on Ubuntu 5.10. This should be the latest official release. using System; using System.Data; using Mono.Data.SqliteClient; public class TestSqlite { public static void Main (string[] args) { string connString = version=3,URI=file:test.db; SqliteConnection dbcon = new SqliteConnection (connString); dbcon.Open (); SqliteCommand dbcmd = new SqliteCommand (@ CREATE TABLE counter1 ( transid INTEGER ); CREATE TABLE counter2 ( transid INTEGER ); ); dbcmd.Connection = dbcon; dbcmd.ExecuteNonQuery (); dbcmd.Dispose (); dbcon.Close (); } } This creates only counter1. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- Kamil Skalski http://nazgul.omega.pl ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sqlite Client
It looks like this is an issue internal to Sqlite, where you can't create/modify tables after 'preparing' an SQL statement. A database schema has changed error is being generated on the second CREATE TABLE, except another issue is preventing that from being reported. The way the binding works now is that it prepares all of the statements in the SQL string, and then executes each of them. Given this issue, we won't be able to prepare statements ahead of time (in the general case). SqliteCommand needs to be rewritten. Ah well. -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** Ecmel Ercan wrote: I am using Mono 1.1.10_1 installer on Ubuntu 5.10. This should be the latest official release. using System; using System.Data; using Mono.Data.SqliteClient; public class TestSqlite { public static void Main (string[] args) { string connString = version=3,URI=file:test.db; SqliteConnection dbcon = new SqliteConnection (connString); dbcon.Open (); SqliteCommand dbcmd = new SqliteCommand (@ CREATE TABLE counter1 ( transid INTEGER ); CREATE TABLE counter2 ( transid INTEGER ); ); dbcmd.Connection = dbcon; dbcmd.ExecuteNonQuery (); dbcmd.Dispose (); dbcon.Close (); } } This creates only counter1. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sqlite Client
Chris Turchin wrote: Hi, On Tue, 29 Nov 2005, Ecmel Ercan wrote: This command creates table1 only (sometimes). If it is only possible to use 1 command per SqliteCommand, is it ok to I think this problem was solved in rev. 47733: Revision 47733 - Sqlite.cs Modified Wed Jul 27 01:07:50 2005 UTC (4 months ago) by joshua File length: 7975 byte(s) Diff to previous 46710 Sqlite adapter now handles SQL strings containing more than one SQL statement (i.e. separated by semicolons). Which version of mono are you using? Regards, --chris Hello, I also ran again the same issue with Mono 1.1.10. Julien ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] ASP.NET sample page
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Hi! I'm trying to run an example asp.net page, but I get an error: Server Error in '/~koxta' Application Parser Error Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error. Error message: Cannot find type SimpleWebApp.SimplePage File name: /home/koxta/public_html/aspnet/example1/index.aspxLine: 1 Source Error: %@ Page language=c# Codebehind=index.aspx.cs Inherits=SimpleWebApp.SimplePage AutoEventWireup=false% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD The index.aspx and index.aspx.cs files are located in ~koxta/public_html/aspnet/example1 Am I missing something? Isn't mod-mono-server compiling the .cs file by itself? Here are the sources: [EMAIL PROTECTED]:~/public_html/aspnet/example1$ ls index.aspx index.aspx.cs [EMAIL PROTECTED]:~/public_html/aspnet/example1$ cat index.aspx %@ Page language=c# Codebehind=index.aspx.cs Inherits=SimpleWebApp.SimplePage AutoEventWireup=false% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD titleSimple Page/title /HEAD body form method=post runat=server table width=450px border=1px tr td colspan=2strongServer Details/strong/td /tr tr tdServer Name:/td td asp:Label id=serverName runat=server/asp:Label/td /tr tr tdOperating System:/td td asp:Label id=operatingSystem runat=server/asp:Label /td /tr tr tdOperating System Version:/td td asp:Label id=operatingSystemVersion runat=server /asp:Label /td /tr /table br table width=450px border=1px tr td colspan=2strongRequest Details/strong/td /tr tr tdPage Requested:/td td asp:Label id=requestedPage runat=server/asp:Label /td /tr tr tdRequest From:/td td asp:Label id=requestIP runat=server/asp:Label /td /tr tr tdUser Agent:/td td asp:Label id=requestUA runat=server/asp:Label /td /tr /table /form /body /HTML [EMAIL PROTECTED]:~/public_html/aspnet/example1$ cat index.aspx.cs using System; using System.Web.UI.WebControls; namespace SimpleWebApp { public class SimplePage : System.Web.UI.Page { protected Label operatingSystem; protected Label operatingSystemVersion; protected Label requestedPage; protected Label requestIP; protected Label requestUA; protected Label serverName; protected override void OnLoad(EventArgs e) { DisplayServerDetails(); DisplayRequestDetails(); base.OnLoad (e); } private void DisplayServerDetails() { serverName.Text = Environment.MachineName; operatingSystem.Text = Environment.OSVersion.Platform.ToString(); operatingSystemVersion.Text = Environment.OSVersion.Version.ToString(); } private void DisplayRequestDetails() { requestedPage.Text = Request.Url.AbsolutePath; requestIP.Text = Request.UserHostAddress; requestUA.Text = Request.UserAgent; } } } Best regards, Jurek Bartuszek -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDjJ0K6l8uJkeTVlMRA9TaAJ4zPAzT9IvJQTQHm0dnJNR1tvKtVQCdHsYh kBdV0gBNe3MMO4MqAMPnD2A= =eXKB -END PGP SIGNATURE- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] ASP.NET sample page
Hi! I'm trying to run an example asp.net page, but I get an error: Server Error in '/~koxta' Application Parser Error Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error. Error message: Cannot find type SimpleWebApp.SimplePage File name: /home/koxta/public_html/aspnet/example1/index.aspx Line: 1 Source Error: %@ Page language=c# Codebehind=index.aspx.cs Inherits=SimpleWebApp.SimplePage AutoEventWireup=false% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTML HEAD The index.aspx and index.aspx.cs files are located in ~koxta/public_html/aspnet/example1 Am I missing something? Isn't mod-mono-server compiling the .cs file by itself? Codebehind is a Visual Studio thing. Either precompile the .aspx.cs page, and stick the .bin into the ~/bin/ folder, or change the 'Codebehind=' into a 'Src=' By Changing the Codebehind to a Src mono knows to compile the .aspx.cs page Just In Time. HTH Chris -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Sqlite Client
Ecmel Ercan wrote: Executing the commands separetly is against atomicity. What happens if in the middle of a statement some exception occurs? Sometime ago, I used the sqlite C api and as I recall, you can pass any number of sql commands in one statement and it executes all or none. This ensures integrity of the database. I wasn't aware of that and never got that impression from the docs (for version 3 at least), but if you can point me to something explaining it, or show me that that's true, then we'll have the mono binding do the same thing. Eventually. I can't work on it for a few weeks, so maybe another SqliteClient hacker will want to pick this up. -- - Joshua Tauberer http://taubz.for.net ** Nothing Unreal Exists ** ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] REST.NET - REST Web Services for ASP.NET
I wrote a little library that allows you to easily add REST RPC services to your ASP.NET applications. Haven't tried this with Mono, but should be good to go. Details are here: http://forums.asp.net/1127032/ShowPost.aspx Hope this helps someone. Cheers, Jon. //jon.gilkison //interfacelab.com //p: 347.645.0177[c] | 718.360.8826[w] //e: [EMAIL PROTECTED] //i: pr0nst4rz (AIM) | [EMAIL PROTECTED] (MSN) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] REST.NET - REST Web Services for ASP.NET
Please excuse my ignorance. This is neat, but what was the motivation(intent) behind this library? What problem does it solve specifically? Is there something specific your using it for? Just curious. -Dan Maltes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Gilkison Sent: Tuesday, November 29, 2005 4:24 PM To: mono-list@lists.ximian.com Subject: [Mono-list] REST.NET - REST Web Services for ASP.NET I wrote a little library that allows you to easily add REST RPC services to your ASP.NET applications. Haven't tried this with Mono, but should be good to go. Details are here: http://forums.asp.net/1127032/ShowPost.aspx Hope this helps someone. Cheers, Jon. //jon.gilkison //interfacelab.com //p: 347.645.0177[c] | 718.360.8826[w] //e: [EMAIL PROTECTED] //i: pr0nst4rz (AIM) | [EMAIL PROTECTED] (MSN) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] suse8.0
My employer needs to run free suse 8.0 does someone know where to download iso's ? does mono run under suse 8.0 at least mod_mono, xsp ?, we don't need gtksharp.. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] suse8.0
why do you have to go back to SUSE 8? because of oracle or something? oh, thats the last 2.4 kernel addition .. maybe thats why? -tl On Tue, 29 Nov 2005 14:05:39 -0800 (PST) Eduardo Osorio Armenta [EMAIL PROTECTED] wrote: My employer needs to run free suse 8.0 does someone know where to download iso's ? does mono run under suse 8.0 at least mod_mono, xsp ?, we don't need gtksharp.. __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list