From owner-freebsd-mono@freebsd.org Fri Oct 30 06:54:05 2015 Return-Path: Delivered-To: freebsd-mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02A96A211A6 for ; Fri, 30 Oct 2015 06:54:05 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D46F11D0E for ; Fri, 30 Oct 2015 06:54:04 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id D1FC0A211A5; Fri, 30 Oct 2015 06:54:04 +0000 (UTC) Delivered-To: mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6C63A211A3 for ; Fri, 30 Oct 2015 06:54:04 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CF801D0D for ; Fri, 30 Oct 2015 06:54:04 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: by wmff134 with SMTP id f134so4562868wmf.0 for ; Thu, 29 Oct 2015 23:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=eyMoes8vPjlSO/HvsPgLayBy/2tJClSegRn1QO585EM=; b=N5AGE5QTu0zSZ86l3XeSQ0HydKSPd8kheTbHQm4JietwJqiISVBkt/1CLhrvMeLogh pQSIfjKHsXqAKo4r7YKpASqE6v1fZPMhfpFkB17NXmFzsSQy9F0IK/cl4dgS84sFtePe 7zSXTGPlJmMkRpA8/Y9uJbDsHuAoEacXfJSjzodbwSvYA7nJORMvyv75q893VlfOwlrx +x2f9Ao6AvGsy4qjDYf/o3HVdilNTyZsoqCw/dm5BlUnFa1/lSzLEaa6nycq5kjHg//x gUaayKJJVMnpI/Nv2ZK5W53nPreLdkkOtC2Uh8meuhYU3LnMKr5rFu3J9Mnr8arryR5h kbeQ== X-Received: by 10.28.213.12 with SMTP id m12mr1566140wmg.26.1446188042500; Thu, 29 Oct 2015 23:54:02 -0700 (PDT) Received: from zmaj.softwarehood.com (79-101-244-190.dynamic.isp.telekom.rs. [79.101.244.190]) by smtp.googlemail.com with ESMTPSA id c67sm1304357wmh.11.2015.10.29.23.54.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Oct 2015 23:54:01 -0700 (PDT) Message-ID: <56331409.7010705@gmail.com> Date: Fri, 30 Oct 2015 07:54:01 +0100 From: Ivan Radovanovic User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130812 Thunderbird/17.0.8 MIME-Version: 1.0 To: Russell Haley CC: mono@freebsd.org, monodevelop-list@lists.ximian.com Subject: Re: Monodevelop 5.10 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 06:54:05 -0000 Hi Russ, There is library libgit2 in /usr/ports/devel/libgit2 - I would install that, then I would check which module is crashing with this error (ie, is it MonoDevelop.exe or some .dll), then I would create config file for it (or change existing one) and add mapping to this newly installed lib (something similar to ) and see if that helps. Kind regards, Ivan On 10/30/15 07:34, Russell Haley napisa: > Hey I have been able to compile and run Monodevelop on FreeBSD 10.2. The > source is from git and I use the gmake method to build. I am trying to load > the MonoDevelop workspace IN MonoDevelop to debug some issues, but when > loading I am getting the following error: > > An unhandled exception has occured. Terminating MonoDevelop? True > System.TypeInitializationException: An exception was thrown by the type > initializer for LibGit2Sharp.Core.NativeMethods ---> > System.DllNotFoundException: git2-3d5286e > at (wrapper managed-to-native) > LibGit2Sharp.Core.NativeMethods:git_libgit2_init () > at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () > [0x00000] in :0 > at LibGit2Sharp.Core.NativeMethods..cctor () [0x00000] in unknown>:0 > --- End of inner exception stack trace --- > at LibGit2Sharp.Core.Proxy+c__AnonStoreyE.<>m__0 > (LibGit2Sharp.Core.Handles.GitBuf buf) [0x00000] in :0 > at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2 pathRetriever) > [0x00000] in :0 > at LibGit2Sharp.Core.Proxy.git_repository_discover > (LibGit2Sharp.Core.FilePath start_path) [0x00000] in :0 > at LibGit2Sharp.Repository.Discover (System.String startingPath) > [0x00000] in :0 > at MonoDevelop.VersionControl.Git.GitRepository..ctor > (MonoDevelop.VersionControl.VersionControlSystem vcs, FilePath path, > System.String url) [0x00000] in :0 > at > MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference > (FilePath path, System.String id) [0x00000] in :0 > at > MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference > (System.String path, System.String id) [0x00000] in :0 > at MonoDevelop.VersionControl.VersionControlService.GetRepository > (IWorkspaceObject entry) [0x00000] in :0 > at MonoDevelop.VersionControl.Git.GitNodeBuilderExtension.OnNodeAdded > (System.Object dataObject) [0x00000] in :0 > at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.RegisterNode > (TreeIter it, System.Object dataObject, > MonoDevelop.Ide.Gui.Components.NodeBuilder[] chain, Boolean fireAddedEvent) > [0x00000] in :0 > > > The Workspace mostly loads (po triansaltions fail?) but when I try to > compile I get a very similar error. Incidently, I am trying to update the > FreeBSD port to 5.10 and something similar is what is failing there too. > > I think I have tracked it down to this: > the LibGit2Sharp project contains a reference to a class file called > NativeDLLName.cs and in it is a string const: > > namespace LibGit2Sharp.Core > { > internal static class NativeDllName > { > public const string Name = "git2-3d5286e"; > } > } > > This is what is loaded into NativeMethods.cs: > > // ReSharper disable InconsistentNaming > namespace LibGit2Sharp.Core > { > internal static class NativeMethods > { > public const uint GIT_PATH_MAX = 4096; > private const string libgit2 = NativeDllName.Name; > private static readonly LibraryLifetimeObject lifetimeObject; > private static int handlesCount; > > ... > > > [DllImport(libgit2)] > internal static extern GitErrorSafeHandle giterr_last(); > > [DllImport(libgit2)] > internal static extern void giterr_set_str( > GitErrorCategory error_class, > [MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = > UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(StrictUtf8Marshaler))] > string errorString); > > [DllImport(libgit2)] > internal static extern void giterr_set_oom(); > ... > } > } > > Can anyone tell me more about "git2-3d5286e"? Where will I find it if it > does exist? > > Thanks, > > Russ > _______________________________________________ > freebsd-mono@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mono > To unsubscribe, send any mail to "freebsd-mono-unsubscribe@freebsd.org" >