From owner-freebsd-questions@FreeBSD.ORG Sun Apr 20 01:48:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4142E106566C for ; Sun, 20 Apr 2008 01:48:28 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 2656C8FC0C for ; Sun, 20 Apr 2008 01:48:28 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id m3K1mRpo033560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 19 Apr 2008 18:48:27 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id m3K1mROl033559; Sat, 19 Apr 2008 18:48:27 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA02533; Sat, 19 Apr 08 18:37:33 PDT Date: Sat, 19 Apr 2008 18:35:59 -0700 From: perryh@pluto.rain.com To: roberthuff@rcn.com Message-Id: <480a9dff.Xi5QQIoFO6uXZXhI%perryh@pluto.rain.com> References: <47ba7e1f.UDwudqHevRDrsQ8d%perryh@pluto.rain.com> <18362.56078.951095.162984@jerusalem.litteratus.org> In-Reply-To: <18362.56078.951095.162984@jerusalem.litteratus.org> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: wine: notepad OK, others not X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2008 01:48:28 -0000 > > I have installed wine-0.9.20 from ports, and > > there's a Win98 FAT32 slice mounted on /windoze > > > > > How do I fix this? > > I would start by upgrading and re-installing wine. You have > 0.9.20; the current version is 0.9.55 and I believe there have been > substantial improvements. When I updated my ports, the newer wine refused to install on 6.1, saying it wouldn't work properly on anything prior to 6.3 IIRC. Rather than risk breaking my primary system in an upgrade attempt, I installed 7.0-RELEASE and wine-0.9.48 (the version from the 7.0-RELEASE ports) on a different machine. It happened to have XP, so I'm now trying to run XP .exe's instead of win98 .exe's. Notepad and Write are, if anything, worse than before: now, if I just start typing without selecting a font, I get something that looks more or less like dingbats. They do seem to work if I explicitly select Courier. (The ultimate goal is to run Visio, not to do word processing, but I'm trying to start with something simple.) The problem with wordpad has not changed very much: $ wine "/winxp/Program Files/Windows NT/Accessories/wordpad.exe" err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe" failed, status c0000135 (Previously it was looking for MFC42.DLL instead of MFC42u.DLL.) OK, it doesn't know where to find the DLLs. Try making a symlink to a place which (per the manpage) is always searched: $ ls -l /winxp/WINDOWS/SYSTEM32/mfc42u.dll -rwxr-xr-x 1 root wheel 995384 Aug 23 2001 /winxp/WINDOWS/SYSTEM32/mfc42u.dll $ ln -s /winxp/WINDOWS/SYSTEM32/mfc42u.dll /usr/local/lib/wine $ wine "/winxp/Program Files/Windows NT/Accessories/wordpad.exe" err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe" failed, status c0000135 Maybe the search is case-sensitive (although Windows ordinarily isn't)? $ ln -s /winxp/WINDOWS/SYSTEM32/mfc42u.dll /usr/local/lib/wine/MFC42u.DLL $ wine "/winxp/Program Files/Windows NT/Accessories/wordpad.exe" err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe" failed, status c0000135 The symlinks in /usr/local/lib/wine *do* point to that DLL, and they *can* be followed successfully: $ ( cd /usr/local/lib/wine ; ls -lL mfc* MFC* ) -rwxr-xr-x 1 root wheel 995384 Aug 23 2001 MFC42u.DLL -rwxr-xr-x 1 root wheel 995384 Aug 23 2001 mfc42u.dll Now what? I can't imagine anyone would be able to do much with wine if problems finding DLLs were common. What am I doing wrong? $ wine --version wine-0.9.48 $ uname -a FreeBSD fbsd70.uucp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386