[Mono-list] mod_mono on RH 9

2008-02-12 Thread Bryan Buchanan
Hi,

I've got a customer using RH 9 and I wanted to get mod_mono working.

I used the mono 1.2.1 installer (get same error with 1.2.4). Mono works
fine. I've compiled Apache 2.2 from source and it too works fine, except
that when it starts, mod_mono doesn't, probably because of this error:

/opt/mono-1.2.1/bin/mono: relocation error: /opt/mono-1.2.1/bin/mono:
symbol epoll_create, version GLIBC_2.3.2 not defined in file libc.so.6
with link time reference

Unfortunately, I cannot update the site to a newer version of Linux
because the customer is using a DBMS product which they'd also need to
upgrade.

I have mod_mono working fine on other sites using more recent Linux
distros (eg. OpenSuse 10.2).

Thanks,

Bryan

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


[Mono-list] mod_mono on RH 9

2008-02-07 Thread Bryan Buchanan
Hi,

I've got a customer using RH 9 and I wanted to get mod_mono working.

I used the mono 1.2.1 installer (get same error with 1.2.4). Mono works
fine. I've compiled Apache 2.2 from source and it too works fine, except
that when it starts, mod_mono doesn't, probably because of this error:

/opt/mono-1.2.1/bin/mono: relocation error: /opt/mono-1.2.1/bin/mono:
symbol epoll_create, version GLIBC_2.3.2 not defined in file libc.so.6
with link time reference

Unfortunately, I cannot update the site to a newer version of Linux
because the customer is using a DBMS product which they'd also need to
upgrade.

I have mod_mono working fine on other sites using more recent Linux
distros (eg. OpenSuse 10.2).

Thanks,

Bryan


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


[Mono-list] Gecko.WebControl

2007-02-05 Thread Bryan Buchanan
Hi,

I'm having trouble getting this control to work in OpenSuse 10.2

I've used the example from here:

http://www.go-mono.com/docs/index.aspx?link=T%3AGecko.WebControl

I've loaded the generic Mono installer mono-1.2.2.1_1-installer.bin, and
have also tried loading all the Mono RPMs via Yast.

Whatever URL I try, progam appears to do nothing at all.

Curiously, using exactly the same example, and same version of Mono on
Ubuntu 6.06.1 LTS, it works.

The only difference I can see is on Ubuntu, libgtkembedmoz.so lives
in /usr/lib/firefox and is 78K in size, whereas on Suse, this lives
in /usr/lib/xulrunner-1.8.1b2 and is 114K.

Can anyone give me a clue on what to look for ? Should I rebuild
libgtkembedmoz from somewhere ?

Thanks,

Bryan

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


[Mono-list] Gdk.Pixbuf error in Mono

2006-09-24 Thread Bryan Buchanan
Hi,

Futher to a previous message I sent to the list, I downloaded the latest
GTK source:

glib-2.8.6
atk-1.10.3
gtk+-2.8.20
pango-1.10.4

and the latest Mono,

mono-1.1.17.1_2

A simple test program and output follows. I've tried all the
combinations of stuff I can, and always get the same error. This is only
on an OpenSuse 10.1 system. On an Ubuntu 6.06  it works fine. As far as
I can see, the library versions seem pretty similar on both.

Any help appreciated !

Bryan

[EMAIL PROTECTED]:~/asp/meta/src cat test.cs
using System;
using Gdk;

public class test {

public static void Main (string[] args) {
try {
Gdk.Pixbuf pixbuf = new 
Gdk.Pixbuf(../images/kite.jpg);
}
catch (Exception ex) {
}
}
}
[EMAIL PROTECTED]:~/asp/meta/src mcs -r:System.Data -pkg:gtk-sharp-2.0 test.cs
test.cs(8,15): warning CS0219: The variable `pixbuf' is assigned but its value 
is never used
test.cs(10,20): warning CS0168: The variable `ex' is declared but never used
Compilation succeeded - 2 warning(s)
[EMAIL PROTECTED]:~/asp/meta/src mono test.exe

(test.exe:19453): GLib-GObject-CRITICAL **: gtype.c:2254: initialization 
assertion failed, use IA__g_type_init() prior to this function

(test.exe:19453): GLib-GObject-CRITICAL **: g_object_new: assertion 
`G_TYPE_IS_OBJECT (object_type)' failed

=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=

Stacktrace:

  at (wrapper managed-to-native) Gdk.Pixbuf.gdk_pixbuf_new_from_file 
(intptr,intptr) 0x4
  at (wrapper managed-to-native) Gdk.Pixbuf.gdk_pixbuf_new_from_file 
(intptr,intptr) 0x
  at Gdk.Pixbuf..ctor (string) 0x00042
  at test.Main (string[]) 0x0002c
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] 
(object,intptr,intptr,intptr) 0x

Native stacktrace:

mono(mono_handle_native_sigsegv+0xe6) [0x815c436]
mono [0x8146657]
[0xe440]
/usr/local/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new+0xed) 
[0xb72db2dd]
/usr/local/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so 
[0xb72ff501]
/usr/local/lib/libgdk_pixbuf-2.0.so.0 [0xb72dea75]

/usr/local/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new_from_file+0xf3) 
[0xb72dfb43]
[0xb7a4f836]
[0xb7a48a5b]
[0xb7a488fd]
[0xb7a487c3]
mono [0x8146500]
mono(mono_runtime_invoke+0x27) [0x80ddb27]
mono(mono_runtime_exec_main+0x5c) [0x80decdc]
mono(mono_runtime_run_main+0x182) [0x80de8c2]
mono(strftime+0x1bee) [0x805cba2]
mono(mono_main+0x857) [0x805d587]
mono(__fxstat64+0x137) [0x805bf4b]
/lib/libc.so.6(__libc_start_main+0xdc) [0xb7d7387c]
mono(sinh+0x4d) [0x805bea1]
Aborted


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


[Mono-list] Gdk.Pixbuf error using xsp

2006-09-22 Thread Bryan Buchanan
Hi,

My Mono app barfs a this line of code:

Gdk.Pixbuf pixbuf = new Gdk.Pixbuf(filename);

This is on an OpenSuse 10.1 system, running xsp. I've downloaded the
Mono 1.1.16.1 installer and I get the same error.

Interestingly, exactly the same code using Mono 1.1.16.1 on an Ubuntu
6.06.1 system works fine.

Can anyone point me in a direction to solve this ?

The Suse Mono version is:
Mono JIT compiler version 1.1.13.8, (C) 2002-2005 Novell, Inc and Contributors. 
www.mono-project.com
TLS:   __thread
GC:Included Boehm (with typed GC)
SIGSEGV  : normal

The relevant errors are:

(/usr/lib/xsp/1.0/xsp.exe:30726): GLib-GObject-CRITICAL **: gtype.c:2254: 
initialization assertion failed, use g_type_init() prior to this function

(/usr/lib/xsp/1.0/xsp.exe:30726): GLib-GObject-CRITICAL **: g_object_new: 
assertion `G_TYPE_IS_OBJECT (object_type)' failed

=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=

Stacktrace:

in (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_file 
(intptr,intptr) 0x4
in (wrapper managed-to-native) Gdk.Pixbuf:gdk_pixbuf_new_from_file 
(intptr,intptr) 0xf6b2
in Gdk.Pixbuf:.ctor (string) 0x42
in Meta.RunProgram:print_report (System.IO.MemoryStream) 0x1370

Native stacktrace:

/usr/bin/mono(mono_handle_native_sigsegv+0xbb) [0x8149e7b]
/usr/bin/mono [0x8119130]
[0xe440]
/opt/gnome/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new+0xed) 
[0xb606332d]
/opt/gnome/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so 
[0xb6b70187]
/opt/gnome/lib/libgdk_pixbuf-2.0.so.0 [0xb6066c10]

/opt/gnome/lib/libgdk_pixbuf-2.0.so.0(IA__gdk_pixbuf_new_from_file+0x114) 
[0xb6067d44]

Thanks,

Bryan

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


[Mono-list] gtk installer

2006-07-14 Thread Bryan Buchanan
Hi,

There appear to be no files here

http://forge.novell.com/modules/xfmod/project/?gtks-inst4win

Have they moved or is this no longer available.

Thanks,

Bryan

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


[Mono-list] ASP Server.Transfer error

2006-05-25 Thread Bryan Buchanan
Hi,

I'm trying to run the code from MS's web site on the topic Passing
Server Control Values Between Pages.

When I click on the Go to second page button, the runtime barfs with
an error System.InvalidCastException: Cannot cast from source type to
destination type.

I'm assuming it's the line of code:

fp = (FirstPageClass) Context.Handler;

Can someone tell me if these examples should work ? Below is the code
and info on the version of Mono I'm using.

Thanks,

Bryan

FirsPageClass.aspx:
%@ Page Language=C# Inherits=FirstPageClass %
html
head
/head
body
form runat=server
First Name:
asp:TextBox id=first runat=server/asp:TextBox
br /
Last Name:
asp:TextBox id=last runat=server/asp:TextBox
br /
asp:Button id=Button1 onclick=ButtonClicked runat=server 
Text=Go to second page/asp:Button
/form
/body
/html

FirstPageClass.cs
using System;
using System.Web.UI;
using System.Web.UI.WebControls;

public class FirstPageClass : System.Web.UI.Page {
protected TextBox first;
protected TextBox last;
protected Button Button1;

public string FirstName {
get { return first.Text; }
}

public string LastName {
get { return last.Text; }
   }

protected void ButtonClicked(object sender, EventArgs e) {
Server.Transfer(SecondPageClass.aspx);
  }
}

SecondPageClass.aspx
%@ Page Language=C# Inherits=SecondPageClass %
%@ reference page=FirstPageClass.aspx %
html
head
/head
body
form runat=server
Hello asp:Label id=label1 runat=server text=Label/asp:Label
/form
/body
/html

SecondPageClass.cs
using System;
using System.Web.UI;
using System.Web.UI.WebControls;

public class SecondPageClass : System.Web.UI.Page {

protected Label label1;
public FirstPageClass fp;

protected void Page_Load() {
if (!IsPostBack) {
fp = (FirstPageClass) Context.Handler;
label1.Text = fp.FirstName +   + fp.LastName;
}
}
}

Mono and XSP version:
Mono JIT compiler version 1.1.15, (C) 2002-2005 Novell, Inc and Contributors. 
www.mono-project.com
TLS:   normal
GC:Included Boehm (with typed GC)
SIGSEGV:   normal
Disabled:  none

xsp2.exe 1.1.13.0
(c) (c) 2002-2005 Novell, Inc.
Minimalistic web server for testing System.Web


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


Re: [Mono-list] Monolaunch

2005-10-17 Thread Bryan Buchanan
On Mon, 2005-10-17 at 04:45 -0500, Francisco T. Martinez wrote:

   
 On Mono Combined installers prior to version 1.1.9.1 the mono.exe used
 to reside in the \lib directory.  MonoLaunch was written with that
 assumption.  You could copy the mono.exe file to the lib directory (I
 suggest copy not move) and that may give you a reasonable work around
 until a newer version of MonoLaunch is published to work correctly with
 the new changes in the installer.
 
 Paco
 

Thanks Paco, work fine.

Bryan

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


[Mono-list] Monolaunch

2005-10-16 Thread Bryan Buchanan
Hi,

I had Monolaunch working with Mono-1.1.8.3, and now I've updated to
1.1.9.2, Monolaunch gives me a message saying it cannot find the Mono
CLR.

1.1.9.2 seems to be loaded OK. I can get a Mono command prompt and do
stuff.

Is there some setting I need to update ?

Thanks,

Bryan

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


[Mono-list] Printing with Mono

2005-10-03 Thread Bryan Buchanan
Hi,

Can anyone give me advice on the preferred means of printing with Mono.

I think f-spot uses GnomePrint. I've used the itextsharp library to
create PDF. Cairo looks like it could be the best bet, but both
Postscript and PDF are in development so it's not ready for prime
time.

I rarely used MS platform, so I'm too sure if there is an API for
printing. I can't see anything in C# in a Nutshell.

Thanks,

Bryan

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


[Mono-list] Re: Little glade xml to .cs stub generator

2005-05-31 Thread Bryan Buchanan
On Wed, 2005-06-01 at 10:32, [EMAIL PROTECTED] wrote:

Rafael,

Great little tool. Very useful. Thanks for making it available.

Bryan

 From: Rafael Ferreira [EMAIL PROTECTED]

 Of course, this works for me (tm), your mileage may vary... and please
 email me any questions/comments.
 
 - Rafael
 
 download it here:
 http://ophion.org/~rafael/static/download/GladeStub.tar.bz2
 



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


[Mono-list] Re: [Bpd] Re: a start at the arm app

2005-04-26 Thread Bryan Buchanan
Sorry, try this attachment.
//
// class definitions for CRM app
//
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
using Gtk;
using com.db4o;
using com.db4o.ext;
using com.db4o.query;

namespace wEbbTide {

//
// statuses for calls
//
public enum Status {Planned, Held, Closed, Other}

//
// define an Account (aka customer or supplier
//
public class Account : CodeFile {
public string name;
public StringCollection address;// string
public Postcode postcode;
public string acn;
public string fax;
public string telephone;
public string email;
public Contact contact;
public Industry industry;
public AccountType accountType;
public DateTime created;

}

//
// type of account supplier, customer, something else ?
//
public class AccountType : CodeFile {
public string description;

}

//
// a call. This is what it's all about
//
public class Call : CodeFile {
public StringCollection subject;
public StringCollection description;
public DateTime started;
public DateTime finished;
public DateTime followupDate;
public Contact contact;
public Salesperson takenBy;
public Salesperson assignedTo;
public Call previous;
public Status status;
public bool initiated;

}

//
// each call must be assosciated with a contact
//
public class Contact : CodeFile {
public string name;
public string title;
public StringCollection address;
public Postcode postcode;
public string telephone;
public string mobile;
public string otherPhone;
public string fax;
public string email;
public string department;
public string reportsTo;
public LeadSource leadSource;
public Salesperson accountManager;
public Account account;
public DateTime created;
public DateTime modified;

}

//
// industry codes. Each Account has an industry code
//
public class Industry : CodeFile {
public string description;

}

//
// a list of pre-determined lead sources. Each contact has a lead
//
public class LeadSource : CodeFile {
public string description;

}

//
// Notes. Random notes for a contact
//
public class Note : CodeFile {
public StringCollection subject;
public StringCollection description;
public Contact contact;
public Salesperson enteredBy;
public DateTime enteredDate;
public Call references;

}

//
// people who work for us
//
public class Salesperson : CodeFile {
public string name;
public string email;
public string phone;

}

//
// Tasks. Our todo list
//
public class Task : CodeFile {
public StringCollection subject;
public StringCollection description;
public Contact contact;
public Salesperson enteredBy;
public DateTime enteredDate;
public DateTime toBeCompletedBy;
public Call references;
public Status status;

}
}


[Mono-list] C - C# strings

2004-12-12 Thread Bryan Buchanan
Hi,

Can some please tell me why I cannot return 8 bit strings from C to C#.

Using this example:

#include gnome.h

$ cat bjb.c 
gchar *test(void)
{
gchar *y = g_strconcat(xxx, \xFE, yyy, NULL);
return y;
}
 
$ cat bjb.cs
using System;
using System.Runtime.InteropServices;
 
public class bjb {
 
[DllImport(bjb, EntryPoint=test, CharSet=CharSet.Auto)]
public static extern string test();
 
static void Main() {
string str = test();
Console.WriteLine({0}, str);
}
}

If the string in C has a high bit character set (eg xFE) the string
returned is alway null. If I change it to, say, x4E, a valid string is
returned. I've trued CharSet Auto, Ansi, Unicode and none make any
difference. (g_strconcat works fine, the problem is in the marshalling
of the C string to return to Mono).

Thanks,

Bryan

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list