[Mono-dev] mono on OpenSolaris

Απόστολος Συρόπουλος asyropoulos123 at hotmail.com
Tue Dec 29 08:45:16 EST 2009


   By following the instructions posted at below


I have managed to successfully compile mono 2.6.1 on a very recent OpenSolaris
box. The only problem I had to manually solve is described by the following patch:

--- decl.cs.orig    2009-12-29 15:37:46.222165555 +0200
+++ decl.cs    2009-12-29 15:38:39.500083757 +0200
@@ -625,7 +625,7 @@
                         // Both are private and share same parent
                         if (al == AccessLevel.Private) {
-                            var decl = mc.Parent;
+                            DeclSpace decl = mc.Parent;
                             do {
                                 same_access_restrictions = TypeManager.IsEqual (decl.TypeBuilder, p_parent);
                             } while (!same_access_restrictions && !decl.IsTopLevel && (decl = decl.Parent) != null);

Now I want to go further and compile gtk-sharp and in the end to try to build moonlight.
UNfortunately, I cannot compile gtk-sharp. Compilation aborts and I get the following error:

$ make
make  all-recursive
make[1]: Entering directory `/extra/mono/gtk-sharp-2.12.9'
Making all in sources
make[2]: Entering directory `/extra/mono/gtk-sharp-2.12.9/sources'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/extra/mono/gtk-sharp-2.12.9/sources'
Making all in generator
make[2]: Entering directory `/extra/mono/gtk-sharp-2.12.9/generator'
/opt/gnu/mono/bin/mcs /out:gapi_codegen.exe -define:OFF_T_4  ./AliasGen.cs ./BoxedGen.cs ./ByRefGen.cs ./CallbackGen.cs ./ChildProperty.cs ./ClassBase.cs ./ClassGen.cs ./CodeGenerator.cs ./ConstFilenameGen.cs ./ConstStringGen.cs ./Ctor.cs ./EnumGen.cs ./FieldBase.cs ./GenBase.cs ./GenerationInfo.cs ./HandleBase.cs ./IAccessor.cs ./IGeneratable.cs ./IManualMarshaler.cs ./InterfaceGen.cs ./LPGen.cs ./LPUGen.cs ./ManagedCallString.cs ./ManualGen.cs ./MarshalGen.cs ./MethodBase.cs ./MethodBody.cs ./Method.cs ./ObjectField.cs ./ObjectBase.cs ./ObjectGen.cs ./OpaqueGen.cs ./Parameters.cs ./Parser.cs ./Property.cs ./PropertyBase.cs ./ReturnValue.cs ./Signal.cs ./Signature.cs ./SimpleBase.cs ./SimpleGen.cs ./Statistics.cs ./StructBase.cs ./StructField.cs ./StructGen.cs ./SymbolTable.cs ./VirtualMethod.cs ./VMSignature.cs

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.String.LastIndexOfUnchecked (Char value, Int32 startIndex, Int32 count) [0x00000] in <filename unknown>:0 
  at System.String.LastIndexOf (Char value) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.SplitPathAndPattern (System.String spec, System.String& path, System.String& pattern) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.ProcessSourceFiles (System.String spec, Boolean recurse) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.ParseArguments (System.String[] args, Boolean require_files) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Create (System.String[] args, Boolean require_files, Mono.CSharp.ReportPrinter printer) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
make[2]: *** [gapi_codegen.exe] Error 1
make[2]: Leaving directory `/extra/mono/gtk-sharp-2.12.9/generator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/extra/mono/gtk-sharp-2.12.9'
make: *** [all] Error 2

Any help or suggestion that may help go further?

Apostols Syropoulos
Xanthi, Greece

Το What's New σας ειδοποιεί άμεσα για κάθε ενημέρωση. Μάθετε πώς.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091229/5739dd1f/attachment.html 

More information about the Mono-devel-list mailing list