Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Apr 2008 18:35:59 -0700
From:      perryh@pluto.rain.com
To:        roberthuff@rcn.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: wine: notepad OK, others not
Message-ID:  <480a9dff.Xi5QQIoFO6uXZXhI%perryh@pluto.rain.com>
In-Reply-To: <18362.56078.951095.162984@jerusalem.litteratus.org>
References:  <47ba7e1f.UDwudqHevRDrsQ8d%perryh@pluto.rain.com> <18362.56078.951095.162984@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> >  I have installed wine-0.9.20 from ports, and
> >  there's a Win98 FAT32 slice mounted on /windoze
>
> 	<deletia>
>   
> >  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?480a9dff.Xi5QQIoFO6uXZXhI%perryh>