[Mono-list] Re: Mono - mkbundle

Robert Jordan robertj at gmx.net
Mon May 22 06:16:51 EDT 2006


Schmuck wrote:
> Hi
> 
> We're trying to bundle our App with the mono-framework using mkbundle. 
> 
> Our tries where 
> 1. linux:/home/gecosoft # /opt/mono-1.1.15/bin/mkbundle --static gecocomnet.exe -o gecocomnet
> 
> 2. linux:/home/gecosoft # /opt/mono-1.1.15/bin/mkbundle --static --deps gecocomnet.exe -o gecocomnet
> 
> 3. linux:/home/gecosoft # /opt/mono-1.1.15/bin/mkbundle --static -- deps -l /opt/mono-1.1.15/lib/libMonoPosixHelper.so gecocomnet.exe -o gecocomnet
> 
> All of this three are trowing these error:
> 
> 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)
> 
> Any ideas what to do? 

Well, the exception clearly states what's missing:
libMonoPosixHelper.so. This is a p/invoke dependency of
Mono.Posix and must be deployed along with you application.

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.

Robert



More information about the Mono-list mailing list