[Bug 44320] New: Can't locate dll from windows system directory (err: module:import_dll)
https://bugs.winehq.org/show_bug.cgi?id=44320 Bug ID: 44320 Summary: Can't locate dll from windows system directory (err:module:import_dll) Product: Wine Version: 3.0-rc5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: bghome(a)gmail.com Distribution: --- Created attachment 60173 --> https://bugs.winehq.org/attachment.cgi?id=60173 WINEARCH=win64 WINEPREFIX=~/.wine wine ~/.wine/drive_c/Program\ Files/Native\ Instruments/Traktor\ 2/Traktor.exe # The problem I installed a program (Traktor Pro 2) onto a new fresh 64 bit wineprefix like this: WINEARCH=win64 WINEPREFIX=~/.wine wine ~/Downloads/Traktor\ 2\ 2.11.2\ Setup\ PC.exe This software also installed Microsoft Visual C++ 2017 Redistributable package which provides msvcp140.dll, see below. find ~/.wine -type f -name 'msvcp140.dll' /home/geza/.wine/drive_c/windows/system32/msvcp140.dll /home/geza/.wine/drive_c/windows/syswow64/msvcp140.dll Now I added a library override for msvcp140.dll by winecfg to use the native dll. Finally I started the installed program like this: WINEARCH=win64 WINEPREFIX=~/.wine wine ~/.wine/drive_c/Program\ Files/Native\ Instruments/Traktor\ 2/Traktor.exe # Actual result I get an error saying msvcp140.dll not found. See attached console output for details. # Expected result I expect wine to be able to load dlls from Windows system directory. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #1 from Géza Búza <bghome(a)gmail.com> --- Created attachment 60174 --> https://bugs.winehq.org/attachment.cgi?id=60174 DLL override configuration -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #2 from Géza Búza <bghome(a)gmail.com> --- Created attachment 60175 --> https://bugs.winehq.org/attachment.cgi?id=60175 Environment configuration in Windows registry I noticed that C:\windows\syswow64 is missing from the PATH environment variable inspite of I told wine to use the 64 bit architecture. However adding it to the path did not make any difference. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #3 from Rosanne DiMesio <dimesio(a)earthlink.net> --- Duplicate of bug 30713? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #4 from Nikolay Sivov <bunglehead(a)gmail.com> --- Make sure you actually have 64bit native msvcp140 installed in correct location. (In reply to Géza Búza from comment #2)
Created attachment 60175 [details] Environment configuration in Windows registry
I noticed that C:\windows\syswow64 is missing from the PATH environment variable inspite of I told wine to use the 64 bit architecture. However adding it to the path did not make any difference.
Syswow64 is not used for 64bit applications. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #5 from Géza Búza <bghome(a)gmail.com> --- @Rosanne I don't think so. I checked the file types and compared it to a Windows 10 installation: 64 bit dll is in system32, while 32 bit dll is in syswow64. I have the same thing on Linux. find ~/.wine -type f -name 'msvcp140.dll' | xargs file /home/geza/.wine/drive_c/windows/system32/msvcp140.dll: PE32+ executable (DLL) x86-64, for MS Windows /home/geza/.wine/drive_c/windows/syswow64/msvcp140.dll: PE32 executable (DLL) (console) Intel 80386, for MS Windows @Nikolay
Syswow64 is not used for 64bit applications. Hmm, that would have been too rational from Microsoft. Thanks for pointing this out.
-- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #6 from Géza Búza <bghome(a)gmail.com> --- I copied the file C:\windows\system32\msvcp140.dll from a Windows 10 installation into ~/.wine/drive_c/windows/system32/msvcp140.dll and now it is loaded properly. So there must be something wrong with the Visual C++ Redistributable package installation. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de --- Comment #7 from Fabian Maurer <dark.shadow4(a)web.de> --- Does it work if you install the runtime (vcrun2017) with winetricks? Because that should work around installation bugs. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #8 from Géza Búza <bghome(a)gmail.com> --- @Fabian Yes, running "WINEARCH=win64 WINEPREFIX=~/.wine winetricks vcrun2017" fixed it as well. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 --- Comment #9 from Fabian Maurer <dark.shadow4(a)web.de> --- Look a lot like bug 30713 indeed. Does it work in a fresh 32bit prefix? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 Géza Búza <bghome(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #10 from Géza Búza <bghome(a)gmail.com> --- @Fabian Only an older version of Traktor is available in 32-bit version. So I installed it. In that case I had to add DLL override for msvcr120.dll and the application crashed with it. After that I installed the MS VC++ redistributable package like WINEARCH=win32 WINEPREFIX=~/.wine winetricks vcrun2013 and it worked well after this. So I can confirm that it's actually the bug 30713 and it happens with both 32 and 64-bit versions of Wine. *** This bug has been marked as a duplicate of bug 30713 *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44320 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv(a)dawncrow.de --- Comment #11 from André H. <nerv(a)dawncrow.de> --- closing dup -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org