Subject: Problems with wine
To: port-i386@netbsd.org <port-i386@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 02/04/2002 19:39:55
I've installed 'wine-new' (as opposed to 'wine' or 'wine-current') onto
a (reasonably recent) 1.5ZA system.

Some programs (eg freecell - which doesn't run under my win98 system!)
run fine, however I get the following error:

dsl@snowdrop:-ksh$ wine /c/OKWin410//Okwin
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll kernel32.dll still not found
err:module:PE_fixup_imports Module (file) kernel32.dll
		 (which is needed by advapi32.dll) not found
err:module:load_library can't load advapi32.dll
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll advapi32.dll still not found
err:module:PE_fixup_imports Module (file) advapi32.dll
		 (which is needed by gdi32.dll) not found
err:module:load_library can't load gdi32.dll
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll gdi32.dll still not found
err:module:PE_fixup_imports Module (file) gdi32.dll
		 (which is needed by user32.dll) not found
err:module:load_library can't load user32.dll
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll user32.dll still not found
err:module:PE_fixup_imports Module (file) user32.dll
		 (which is needed by ws2_32.dll) not found
err:module:load_library can't load ws2_32.dll
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll ws2_32.dll still not found
err:module:PE_fixup_imports Module (file) ws2_32.dll
		 (which is needed by wsock32.dll) not found
err:module:load_library can't load wsock32.dll
err:module:BUILTIN32_LoadLibraryExA loaded .so
		 but dll wsock32.dll still not found
err:module:PE_fixup_imports Module (file) WSOCK32.dll
		 (which is needed by C:\OKwin410\Okwin.exe) not found

This looks like a cascade of errors....
I ran this under ktrace - 24Mb of output - but the fail message is
output in this sequence:

  1713 wine     CALL  __stat13(0x4805d100,0x484f5ed8)
  1713 wine     NAMI  "/usr/X11R6/lib/libkernel32.so"
  1713 wine     RET   __stat13 -1 errno 2 No such file or directory
  1713 wine     CALL  __stat13(0x4805a840,0x484f5ed8)
  1713 wine     NAMI  "/usr/pkg/lib/libkernel32.so"
  1713 wine     RET   __stat13 0
  1713 wine     CALL  open(0x4805a840,0,0x482d0000)  
  1713 wine     NAMI  "/usr/pkg/lib/libkernel32.so"
  1713 wine     RET   open 9
  1713 wine     CALL  read(0x9,0x484f5ea4,0x34)
  1713 wine     GIO   fd 9 read 52 bytes
"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\0\240\^B\0004\0\0\
        \0\M-\e\a\0\0\0\0\0004\0 \0\^D\0(\0\^[\0\^Z\0"
  1713 wine     RET   read 52/0x34
  1713 wine     CALL  close(0x9)
  1713 wine     RET   close 0
  1713 wine     CALL  write(0x2,0x4812ac28,0x54)
  1713 wine     GIO   fd 2 wrote 84 bytes
"err:module:BUILTIN32_LoadLibraryExA loaded .so but dll kernel32.dll st\
        ill not found
       "

Now libkernel32.so has been found and mmap()ed earlier (just after
libuser32.so), and also opened then ignored later.  Presumably somthing
in the header indicates that it is already loaded?

So does anyone know what wine is complaining about?  Or have I got to
through all teh source????

	David