From owner-freebsd-threads@FreeBSD.ORG Sat Aug 21 02:52:42 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E83A16A4CE for ; Sat, 21 Aug 2004 02:52:42 +0000 (GMT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC37043D2D for ; Sat, 21 Aug 2004 02:52:41 +0000 (GMT) (envelope-from burpmaster@truffula.net) Received: from [192.168.0.2] (c-67-169-200-31.client.comcast.net[67.169.200.31]) by comcast.net (sccrmhc13) with ESMTP id <2004082102524001600jro07e> (Authid: rogers240); Sat, 21 Aug 2004 02:52:41 +0000 Message-ID: <4126B8F4.4050809@truffula.net> Date: Fri, 20 Aug 2004 19:52:36 -0700 From: Brian Rogers User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040806) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@freebsd.org References: <200408200300.43060.mistry.7@osu.edu> In-Reply-To: <200408200300.43060.mistry.7@osu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wine and CURRENT X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2004 02:52:42 -0000 Anish Mistry wrote: >I've managed to get the post May versions on wine to be able to mmap their memory properly by patching our mmap implementation (see current mailling list) > Great! >but I'm having the following problem that I can't figure out: > >Fatal error 'Uninitialized mutex in pthread_mutex_trylock_basic' at line 474 >in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 0) > > Wine doesn't like being linked to libpthread, and that happens through winearts.drv.so and the libraries that use OpenGL. To deal with OpenGL, I mapped libpthread to libc (not libc_r, wine doesn't like that either) for libGL.so, effectively canceling it out. You can avoid winearts.drv.so by disabling sound in the wine config or switching to a different audio driver. Alternatively, you can just use wine-pthread. It actually works, and it doesn't have a problem with libpthread. You just have to "cd loader && gmake wine-pthread" to build it.