From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 21:26:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAD7216A4CE for ; Sat, 11 Sep 2004 21:26:11 +0000 (GMT) Received: from green.homeunix.org (pcp04368961pcs.nrockv01.md.comcast.net [69.140.212.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFE143D53 for ; Sat, 11 Sep 2004 21:26:11 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i8BLQ5qT022359; Sat, 11 Sep 2004 17:26:10 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i8BLQ4nc022358; Sat, 11 Sep 2004 17:26:04 -0400 (EDT) (envelope-from green) Date: Sat, 11 Sep 2004 17:26:04 -0400 From: Brian Fundakowski Feldman To: Anish Mistry Message-ID: <20040911212604.GY928@green.homeunix.org> References: <47158390.20040827112834@ulstu.ru> <200409060149.35764.mistry.7@osu.edu> <20040911180000.GX928@green.homeunix.org> <200409111707.25937.mistry.7@osu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409111707.25937.mistry.7@osu.edu> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: Wine and mmap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 21:26:11 -0000 On Sat, Sep 11, 2004 at 05:07:13PM -0400, Anish Mistry wrote: > On Saturday 11 September 2004 02:00 pm, you wrote: > > On Mon, Sep 06, 2004 at 01:49:35AM -0400, Anish Mistry wrote: > > > On Sunday 05 September 2004 05:15 pm, Gerald Pfeifer wrote: > > > > [ John, sorry for the duplicate message; this is the correct one. ] > > > > > > > > On Fri, 27 Aug 2004, John Birrell wrote: > > > > > Anish Mistry has developed a patch to choose an > > > > > appropriate mmap address. He posted it to -current. I haven't had > > > > > time to test it. > > > > > > > > Thanks for the note. Will you have time to test/commit this before > > > > 5.3? > > > > > > > > Anish, do you have any news on this patch? (Wine has been broken for a > > > > couple of months now, and it would be great to have at least 5.3 > > > > fixed.) > > > > > > Well I guess this is my lucky day. Apply the attached patch for vm_mmap > > > to your kernel and patch the August wine sources with the wine-mmap.patch > > > and compile and install wine (be sure to use gmake). This is working on > > > my dev system with 6-CURRENT as of Saturday night. > > > The wine mmap patch just doesn't reserve the DOS area so DOS programs may > > > not work. This seems to just work around a side effect of the kernel > > > mmap patch. I still think that the kernel mmap patch has issues so I'm > > > hoping Alan can give us some feedback. > > > Anyway this worked for me, YMMV. > > > > Do these combined work for you, minus any modifications to mmap(2)? I do > > not feel that the kernel mmap(2) should be modified in this manner, that it > > is a strictly userland problem. > > > With only these applied I get old message that wine can't mmap it's address > space. Oh, I'm sorry for not explaining the last step. You need to set the environment variable "LD_LIBRARY_LOW_ADDR" to some address, like after the first megabyte, or something like that, but before the first "data" address. Try, say, 1024000. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\