[Mono-list] We need Linux.NET Stub

Ian MacLean ianm@ActiveState.com
Wed, 26 May 2004 17:34:05 +0900


Martin Olsson wrote:

>
> This is the same thing that's given in the FAQ but I dont need this. I 
> cannot possibly rely on this at the end-user, what if their kernel 
> does not have support for it? Should I recompile their kernel in the 
> installation program? Seems insane. Also the problems with Wine.
>
> As I said below, what I would like to use it a pure native Linux stub 
> instead. Would not that be rather easy to create? Anyone tried?

It probably depends on whether you need to keep the file as a valid P.E. 
file. I'm not sure its possible to create a file thats both a valid P.E 
and is also recognizable to the linux loader as a native binary. I don't 
know that much about the linux loader so I could be wrong here.

possible workaround solutions are:
- create shell script launchers for each managed exe
- create stubs yourself in c that host the runtime and load the required 
managed executable.

Ian

>
>
> Regards,
> /m
>
> Fredrik Hedberg wrote:
>
>> http://www.osnews.com/story.php?news_id=6795
>>
>> 2nd tip
>>
>> /Fredrik
>>
>> On Tue, 2004-05-25 at 15:50, Martin Olsson wrote:
>>
>>> Hi Mono-guys,
>>>
>>> I saw in the FAQ that mono apps are called using "mono hello.exe" 
>>> but in
>>> Windows you can run them directly because the hello.exe program is
>>> essentially just a stub that kicks the interpreter going.
>>>
>>> Now, I read in the FAQ that there is a hack which avoids the "mono
>>> hello.exe" problem but do you guys have any plans to implement real
>>> Linux/MacOS/HP-UX stubs? They would be basically the same as the Win 
>>> dows
>>> .NET .exe files but they would be native to their respective system.
>>>
>>> Is anyone working on that?
>>>
>>>
>>>
>>> Regards,
>>> /m
>>>
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list@lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



-- 
Ian MacLean, Developer, 
ActiveState, a division of Sophos
http://www.ActiveState.com