https://bugzilla.novell.com/show_bug.cgi?id=280811 Summary: mono-winforms and libX11.so Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Mono AssignedTo: bnc-team-mono@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de I am using the build service's mono to give winforms a try. Using the sample program using System; using System.Windows.Forms; public class MainClass { public static void Main(string[] args) { MessageBox.Show("Hello World!"); } } and compiling with: gmcs Main.cs -r:System.Windows.Forms that works. However, running it does not: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.DllNotFoundException: libX11.so at (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads () at System.Windows.Forms.XplatUIX11..ctor () [0x00000] at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner exception stack trace --- at <0x00000> <unknown method> at System.Windows.Forms.Form.get_CreateParams () [0x00000] at System.Windows.Forms.MessageBox+MessageBoxForm.get_CreateParams () [0x00000] at System.Windows.Forms.Control.SizeFromClientSize (Size clientSize) [0x00000] at System.Windows.Forms.Control..ctor () [0x00000] at System.Windows.Forms.ScrollableControl..ctor () [0x00000] at System.Windows.Forms.ContainerControl..ctor () [0x00000] at System.Windows.Forms.Form..ctor () [0x00000] at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) [0x00000] at (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon) at System.Windows.Forms.MessageBox.Show (System.String text) [0x00000] at MainClass.Main (System.String[] args) [0x00000] The most important part there appears to be: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.DllNotFoundException: libX11.so so I looked for libX11.so and did not find it. I did find libX11.so.6 in /usr/lib, so I symlinked it (which is itself a symlink) to libX11.so and everything worked. However, no package creates /usr/lib/libX11.so and neither does ldconfig: jnelson@linux-lel4:~/Projects/Forms1> rpm -qf /usr/lib/libX11.so file /usr/lib/libX11.so is not owned by any package jnelson@linux-lel4:~/Projects/Forms1> consequently, something must be wrong with the mono package in that it depends on a file which does not exist. :-( I hope this proves useful and that by the time openSUSE 10.3 is out that mono with winforms will work "out of the box"! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.