AW: [Mono-list] Re: Mono - mkbundle

Schmuck schmuck at gecosoft.com
Wed May 24 05:34:22 EDT 2006


Hi,

got the previous error shown below (dll not found: libMonoPosixHelper.so) solved, but ran directly into an other error one.
Could you please advice to solve this one?

----------------------------------------------------------------
linux:/home/gecosoft # /opt/mono-1.1.15/bin/mkbundle --static --deps -o gecocomnet gecocomnet.exe
OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 1 Auto-dependencies: True
   embedding: /home/gecosoft/gecocomnet.exe
   embedding: /opt/mono-1.1.15/lib/mono/1.0/mscorlib.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/Microsoft.VisualBasic.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Xml.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Windows.Forms.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Drawing.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Data.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/Mono.Data.Tds.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/Mono.Security.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.EnterpriseServices.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/Mono.Posix.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/Accessibility.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.ServiceProcess.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Configuration.Install.dll
   embedding: /opt/mono-1.1.15/lib/mono/1.0/System.Web.dll
Compiling:
as -o temp.o temp.s
cc -o gecocomnet -Wall `pkg-config --cflags mono` temp.c  `pkg-config --libs-only-L mono` -Wl,-Bstatic -lmono -Wl,-Bdynamic `pkg-config --libs-only-l mono | sed -e "s/\-lmono //"` temp.o
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: cc: command not found
[Fail]
linux:/home/gecosoft # 
----------------------------------------------------------------

Thanks!

Regards,
Stephan


-----Ursprüngliche Nachricht-----
Von: Jonathan Pryor [mailto:jonpryor at vt.edu]
Gesendet: Montag, 22. Mai 2006 12:52
An: Robert Jordan
Cc: Mono-list at lists.ximian.com
Betreff: Re: [Mono-list] Re: Mono - mkbundle


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


_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list