Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2024 15:08:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279057] lang/dotnet F# gtksharp program does not build ,error libdl.so.2
Message-ID:  <bug-279057-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279057

            Bug ID: 279057
           Summary: lang/dotnet F# gtksharp program does not build ,error
                    libdl.so.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: arrowd@FreeBSD.org
          Reporter: devosalain@ymail.com
          Assignee: arrowd@FreeBSD.org
             Flags: maintainer-feedback?(arrowd@FreeBSD.org)

Creating an F# gtksharp "hello world" project.
dotnet run fails with

```

Unhandled exception. System.TypeInitializationException: The type initializ=
er
for 'Gtk.Application' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libdl.so.=
2'
or one of its dependencies. In order to help diagnose loading problems,
consider using a tool like strace. If you're using glibc, consider setting =
the
LD_DEBUG environment variable:=20
Cannot open "/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.0/libdl.so.=
2"
Cannot open
"/mnt/xxx_source/Languages_ok/fsharptut/65_gtk/c_treestore/bin/Debug/net8.0=
/libdl.so.2"
Shared object "libdl.so.2" not found, required by "fsharp_gtk"
Cannot open
"/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.0/liblibdl.so.2"
Cannot open
"/mnt/xxx_source/Languages_ok/fsharptut/65_gtk/c_treestore/bin/Debug/net8.0=
/liblibdl.so.2"
Shared object "liblibdl.so.2" not found, required by "fsharp_gtk"
Cannot open
"/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.0/libdl.so.2.so"
Cannot open
"/mnt/xxx_source/Languages_ok/fsharptut/65_gtk/c_treestore/bin/Debug/net8.0=
/libdl.so.2.so"
Shared object "libdl.so.2.so" not found, required by "fsharp_gtk"
Cannot open
"/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.0/liblibdl.so.2.so"
Cannot open
"/mnt/xxx_source/Languages_ok/fsharptut/65_gtk/c_treestore/bin/Debug/net8.0=
/liblibdl.so.2.so"
Shared object "liblibdl.so.2.so" not found, required by "fsharp_gtk"

   at FuncLoader.Linux.dlopen(String path, Int32 flags)
   at FuncLoader.LoadLibrary(String libname)
   at GLibrary.TryGet(Library library, IntPtr& ret)
   at GLibrary.Load(Library library)
   at Gtk.Application..cctor()
   --- End of inner exception stack trace ---
   at Gtk.Application.Init()
   at Program.main(String[] a) in
/mnt/xxx_source/Languages_ok/fsharptut/65_gtk/c_treestore/Program.fs:line 31

```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279057-7788>