Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2015 23:34:08 -0700
From:      Russell Haley <russ.haley@gmail.com>
To:        mono@freebsd.org, monodevelop-list@lists.ximian.com
Subject:   Monodevelop 5.10
Message-ID:  <CABx9NuQwXXjkzJ1d-158T%2BSDA_ycQT%2Bgphut28PYXJ%2Bnx4v4Cw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 <filename unknown>:0
  at LibGit2Sharp.Core.NativeMethods..cctor () [0x00000] in <filename
unknown>:0
  --- End of inner exception stack trace ---
  at LibGit2Sharp.Core.Proxy+<git_repository_discover>c__AnonStoreyE.<>m__0
(LibGit2Sharp.Core.Handles.GitBuf buf) [0x00000] in <filename unknown>:0
  at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2 pathRetriever)
[0x00000] in <filename unknown>:0
  at LibGit2Sharp.Core.Proxy.git_repository_discover
(LibGit2Sharp.Core.FilePath start_path) [0x00000] in <filename unknown>:0
  at LibGit2Sharp.Repository.Discover (System.String startingPath)
[0x00000] in <filename unknown>:0
  at MonoDevelop.VersionControl.Git.GitRepository..ctor
(MonoDevelop.VersionControl.VersionControlSystem vcs, FilePath path,
System.String url) [0x00000] in <filename unknown>:0
  at
MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference
(FilePath path, System.String id) [0x00000] in <filename unknown>:0
  at
MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference
(System.String path, System.String id) [0x00000] in <filename unknown>:0
  at MonoDevelop.VersionControl.VersionControlService.GetRepository
(IWorkspaceObject entry) [0x00000] in <filename unknown>:0
  at MonoDevelop.VersionControl.Git.GitNodeBuilderExtension.OnNodeAdded
(System.Object dataObject) [0x00000] in <filename unknown>:0
  at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.RegisterNode
(TreeIter it, System.Object dataObject,
MonoDevelop.Ide.Gui.Components.NodeBuilder[] chain, Boolean fireAddedEvent)
[0x00000] in <filename unknown>: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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuQwXXjkzJ1d-158T%2BSDA_ycQT%2Bgphut28PYXJ%2Bnx4v4Cw>