[Mono-list] Re: Mono - mkbundle

Jonathan Pryor jonpryor at vt.edu
Mon May 22 06:51:55 EDT 2006


On Mon, 2006-05-22 at 12:16 +0200, Robert Jordan wrote:
> > Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.DllNotFoundException: libMonoPosixHelper.so
> > in (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
> > in <0x0000c> Mono.Unix.Native.Stdlib:.cctor ()--- End of inner exception stack trace ---
> > 
> > in <0x00000> <unknown method>
> > in <0x00022> Mono.Unix.UnixMarshal:AllocHeap (Int64 size)
> > in <0x00048> MakeBundle:DetectOS ()
> > in <0x00073> MakeBundle:Main (System.String[] args)
> > 
> You may try to manually link against libMonoPosixHelper.a
> maybe using ld's --whole-archive option, but I cannot tell
> you if it will work.

That is unlikely to work, as Mono.Posix.dll uses [DllImport
("MonoPosixHelper")], which will _not_ look for symbols within the
executing program.  Linking against a .a file won't work, you need
the .so.

 - Jon




More information about the Mono-list mailing list