{"issue":{"created_at":"2011-10-23T13:48:58Z","state":"open","updated_at":"2011-12-11T05:33:10Z","comments":16,"user":{"gravatar_id":"20aeaf5bba7a584250695ca17b36621e","id":397177,"url":"https://api.github.com/users/o01eg","avatar_url":"https://secure.gravatar.com/avatar/20aeaf5bba7a584250695ca17b36621e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"o01eg"},"body":"I use next patch to use .NET 4.0 and to fix error with Mono.Unix:\r\n\r\n```patch\r\n--- configure.sh\t2011-07-23 11:32:58.000000000 +0400\r\n+++ configure.sh\t2011-07-23 11:36:06.226984026 +0400\r\n@@ -23,7 +23,5 @@\r\n echo \"\"\r\n echo \"Press enter to continue...\"\r\n \r\n-read a\r\n-\r\n # ------------------------------------------------------------------------------\r\n # Parse command line arguments and specify default values\r\n@@ -83,12 +81,12 @@\r\n MDDIR=$RESULT\r\n echo \"Successfully found MonoDevelop root directory.\" $MDDIR\r\n \r\n-PATHS=( /usr/lib/fsharp /usr/local/lib/fsharp /opt/mono/lib/mono/2.0 )\r\n+PATHS=( /usr/lib/mono/4.0 /usr/lib/fsharp )\r\n searchpaths \"F#\" FSharp.Core.dll PATHS[@]\r\n FSDIR=$RESULT\r\n echo \"Successfully found F# root directory.\" $FSDIR\r\n \r\n-PATHS=( /usr/lib/mono/2.0 /Library/Frameworks/Mono.framework/Versions/2.8/lib/mono/2.0 /opt/mono/lib/mono/2.0 )\r\n+PATHS=( /usr/lib/mono/4.0 )\r\n searchpaths \"Mono\" mscorlib.dll PATHS[@]\r\n MONODIR=$RESULT\r\n echo \"Successfully found Mono root directory.\" $MONODIR\r\n@@ -135,3 +132,4 @@\r\n sed \"s,INSERT_CSHARP_COMPILER,$GMCS,g\" Makefile.1 > Makefile.2\r\n rm Makefile.1\r\n mv Makefile.2 Makefile\r\n+\r\n--- Makefile.orig\t2011-07-29 19:16:55.000000000 +0400\r\n+++ Makefile.orig\t2011-07-29 19:18:10.000000000 +0400\r\n@@ -59,5 +59,5 @@\r\n REFERENCES = \\\r\n \t-r:$(MONOBIN)/mscorlib.dll \\\r\n-\t-r:System.dll -r:System.Xml.dll \\\r\n+\t-r:System.dll -r:System.Xml.dll -r:Mono.Posix.dll \\\r\n \t-r:$(MDBIN)/MonoDevelop.Core.dll \\\r\n \t-r:$(MDBIN)/MonoDevelop.Ide.dll \\\r\n--- src/Services/FSharpCompiler.fs\t2011-07-29 19:16:55.000000000 +0400\r\n+++ src/Services/FSharpCompiler.fs\t2011-07-29 19:18:10.000000000 +0400\r\n@@ -74,7 +74,7 @@\r\n \r\n   /// Wrapper type for the 'FSharp.Compiler.dll' assembly - expose types we use\r\n   type FSharpCompiler private () =      \r\n-    static let asm = Assembly.Load(\"FSharp.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809\")\r\n+    static let asm = Assembly.Load(\"FSharp.Compiler, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\")\r\n     static member InteractiveChecker = asm.GetType(\"Microsoft.FSharp.Compiler.SourceCodeServices.InteractiveChecker\")\r\n     static member IsResultObsolete = asm.GetType(\"Microsoft.FSharp.Compiler.SourceCodeServices.IsResultObsolete\")\r\n     static member CheckOptions = asm.GetType(\"Microsoft.FSharp.Compiler.SourceCodeServices.CheckOptions\")\r\n@@ -84,7 +84,7 @@\r\n     \r\n   /// Wrapper type for the 'FSharp.Compiler.Server.Shared.dll' assembly - expose types we use\r\n   type FSharpCompilerServerShared private () =      \r\n-    static let asm = Assembly.Load(\"FSharp.Compiler.Server.Shared, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809\")\r\n+    static let asm = Assembly.Load(\"FSharp.Compiler.Server.Shared, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\")\r\n     static member InteractiveServer = asm.GetType(\"Microsoft.FSharp.Compiler.Server.Shared.FSharpInteractiveServer\")\r\n \r\n // --------------------------------------------------------------------------------------\r\n```\r\n\r\nBut when I compile I'm getting next errors:\r\n\r\n```log\r\nSuccessfully found MonoDevelop root directory. /usr/lib/monodevelop\r\nSuccessfully found F# root directory. /usr/lib/mono/4.0\r\nSuccessfully found Mono root directory. /usr/lib/mono/4.0\r\nSuccessfully found Gtk# root directory. /usr/lib/mono/gtk-sharp-2.0\r\nSuccessfully found Glib# root directory. /usr/lib/mono/gtk-sharp-2.0\r\nSuccessfully found Atk# root directory. /usr/lib/mono/gtk-sharp-2.0\r\nSuccessfully found Gdk# root directory. /usr/lib/mono/gtk-sharp-2.0\r\nSuccessfully found Pango root directory. /usr/lib/mono/gtk-sharp-2.0\r\n>>> Source configured.\r\n>>> Compiling source in /tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999 ...\r\nmake -j5 \r\nmkdir -p bin\r\ngmcs -debug+ -out:bin/FSharpBinding.Gui.dll -target:library -r:/usr/lib/mono/4.0/mscorlib.dll -r:System.dll -r:System.Xml.dll -r:Mono.Posix.dll -r:/usr/lib/monodevelop/bin/MonoDevelop.Core.dll -r:/usr/lib/monodevelop/bin/MonoDevelop.Ide.dll -r:/usr/lib/monodevelop/bin/Mono.TextEditor.dll -r:/usr/lib/mono/4.0/FSharp.Core.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.Server.Shared.dll -r:/usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll src/Gui/FSharpBuildOrderWidget.cs src/Gui/FSharpSettingsWidget.cs src/Gui/FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpBuildOrderWidget.cs src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpSettingsWidget.cs src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/generated.cs \r\nfsharpc --noframework --debug --optimize- --target:library -r:bin/FSharpBinding.Gui.dll --out:bin/FSharpBinding.dll -r:/usr/lib/mono/4.0/mscorlib.dll -r:System.dll -r:System.Xml.dll -r:Mono.Posix.dll -r:/usr/lib/monodevelop/bin/MonoDevelop.Core.dll -r:/usr/lib/monodevelop/bin/MonoDevelop.Ide.dll -r:/usr/lib/monodevelop/bin/Mono.TextEditor.dll -r:/usr/lib/mono/4.0/FSharp.Core.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/mono/4.0/FSharp.Compiler.Server.Shared.dll -r:/usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll --resource:src/Resources/FSharpBinding.addin.xml --resource:src/Resources/EmptyFSharpSource.xft.xml --resource:src/Resources/EmptyFSharpScript.xft.xml --resource:src/Resources/FSharpConsoleProject.xpt.xml --resource:src/Resources/fsharp-icon-32.png --resource:src/Resources/fsharp-script-32.png --resource:src/Resources/fsharp-file-icon.png --resource:src/Resources/fsharp-project-icon.png --resource:src/Resources/fsharp-script-icon.png --resource:src/Resources/FSharpSyntaxMode.xml src/PowerPack/CodeDomVisitor.fs src/PowerPack/CodeDomGenerator.fs src/PowerPack/CodeProvider.fs src/PowerPack/LazyList.fsi src/PowerPack/LazyList.fs src/Services/Mailbox.fs src/Services/Parameters.fs src/Services/FSharpCompiler.fs src/Services/CompilerLocationUtils.fs src/Services/Common.fs src/Services/Parser.fs src/Services/LanguageService.fs src/Services/CompilerService.fs src/Services/InteractiveSession.fs src/FSharpInteractivePad.fs src/FSharpOptionsPanels.fs src/FSharpSyntaxMode.fs src/FSharpResourceIdBuilder.fs src/FSharpLanguageBinding.fs src/FSharpParser.fs src/FSharpTextEditorCompletion.fs src/FSharpResolverProvider.fs \r\nMicrosoft (R) F# 2.0 Compiler build (private)\r\nCopyright (c) 2002-2010 Microsoft Corporation. All Rights Reserved.\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/PowerPack/CodeDomGenerator.fs(248,44): warning FS0044: This construct is deprecated\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Parameters.fs(45,14): error FS0855: No abstract or interface member was found that corresponds to this override\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Parameters.fs(51,14): error FS0855: No abstract or interface member was found that corresponds to this override\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Common.fs(11,11): error FS0039: The namespace 'Addins' is not defined\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Common.fs(381,39): error FS0039: The namespace or module 'AddinManager' is not defined\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Common.fs(383,9): error FS0039: The namespace or module 'AddinManager' is not defined\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Common.fs(397,39): error FS0039: The namespace or module 'AddinManager' is not defined\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/Services/Common.fs(399,9): error FS0039: The namespace or module 'AddinManager' is not defined\r\n\r\n/tmp/portage/dev-dotnet/fsharpbinding-9999/work/fsharpbinding-9999/src/FSharpSyntaxMode.fs(10,21): error FS1108: The type 'Context' is required here and is unavailable. You must add a reference to assembly 'Mono.Cairo, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.\r\nmake: *** [all] Error 1\r\nemake failed\r\n```\r\n\r\nI use Gentoo amd64, mono-2.10.5, monodevelop-2.6 and last fsharp from master branch.","assignee":null,"id":2026729,"number":24,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Cann't compile fshaprbinding.","html_url":"https://github.com/fsharp/fsharpbinding/issues/24","closed_at":null,"url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/24","milestone":null},"action":"created","comment":{"created_at":"2011-12-11T05:33:10Z","updated_at":"2011-12-11T05:33:10Z","user":{"gravatar_id":"20aeaf5bba7a584250695ca17b36621e","id":397177,"url":"https://api.github.com/users/o01eg","avatar_url":"https://secure.gravatar.com/avatar/20aeaf5bba7a584250695ca17b36621e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"o01eg"},"body":"Which issues? I got existing project template from your patch.","id":3095763,"url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/comments/3095763"}}