/etc/mono/config contains the dllmap for libX11 but it points to the .so <dllmap dll="libX11" target="libX11.so" os="!windows" />
the .so is only included in libx11-dev. it should point to the versioned .so.6 contained in libx116
TEST CASE: compile this with dmcs:
$ cat libx11.cs using System; using System.Runtime.InteropServices; class X11Test { [DllImport ("libX11")] static extern void XAllPlanes (); static void Main(string[] args) { XAllPlanes (); }
}
$ dmcs libx11.cs $ ./libx11.exe
Unhandled Exception: System.DllNotFoundException: libX11.so at (wrapper managed-to-native) X11Test:XAllPlanes () at X11Test.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libX11.so at (wrapper managed-to-native) X11Test:XAllPlanes () at X11Test.Main (System.String[] args) [0x00000] in <filename unknown>:0
expected: no backtrace
/etc/mono/config contains the dllmap for libX11 but it points to the .so
<dllmap dll="libX11" target="libX11.so" os="!windows" />
the .so is only included in libx11-dev.
it should point to the versioned .so.6 contained in libx116
TEST CASE:
compile this with dmcs:
$ cat libx11.cs Runtime. InteropServices ;
using System;
using System.
class X11Test
{
[DllImport ("libX11")]
static extern void XAllPlanes ();
static void Main(string[] args)
{
XAllPlanes ();
}
}
$ dmcs libx11.cs
$ ./libx11.exe
Unhandled Exception: System. DllNotFoundExce ption: libX11.so DllNotFoundExce ption: libX11.so
at (wrapper managed-to-native) X11Test:XAllPlanes ()
at X11Test.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.
at (wrapper managed-to-native) X11Test:XAllPlanes ()
at X11Test.Main (System.String[] args) [0x00000] in <filename unknown>:0
expected:
no backtrace