[Mono-winforms-list] WINELIB

John Sohn jsohn@columbus.rr.com
Wed, 5 Feb 2003 01:17:00 -0500


I have been looking into this problem as well but I have not made much
progress. It seems as though the existing implementation of threads in
Wine has some issues with the latest glibc. There is some new
information on the WineHQ site at http://www.winehq.com/news/?view=155.
They even mention us :).

I have been trying to get the garbage collector to work under WineLib
first (before worrying about the Mono runtime) using this code:

#include <stdio.h>
#include <gc/gc.h>
#include <windows.h>

int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpszCmdLine, int nCmdShow)
{
	GC_malloc (1);
	return 0;
}

I have tried recompiling the garbage collection library under WineLib
and linking with this instead of the pthread version. When compiled this
way it uses Win32 (Wine) threads instead of pthreads but it did not seem
to get much further than the pthread version.

I also tried using the Win32 implementation of pthreads at
http://sources.redhat.com/pthreads-win32/. It doesn't look like this is
compatible with the Wine source but it may be a starting point for
implementing the missing pthread functions in Wine.

Initially I was hoping we could add some code to monostub but I believe
a patch to the Wine source may be the best way to fix this problem.

John

-----Original Message-----
From: mono-winforms-list-admin@lists.ximian.com
[mailto:mono-winforms-list-admin@lists.ximian.com] On Behalf Of Dennis
Hayes
Sent: Tuesday, February 04, 2003 5:43 PM
To: 'mono-winforms-list@ximian.com'
Subject: [Mono-winforms-list] WINELIB



I have started looking into getting WINE/WINELIB compatible with
pthreads and mono. If nothing else, I will document a better starting
point for those who follow. Wish me luck! Dennis


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