https://bugs.winehq.org/show_bug.cgi?id=39195
Bug ID: 39195 Summary: msvcr120.dll.nextafter is needed by Sonkwo Product: Wine Version: 1.7.48 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: litimetal@gmail.com Distribution: ---
http://www.sonkwo.com is a game store in China.
0. Download http://www.sonkwo.com/installer/SonkwoInstaller.exe $ sha1sum SonkwoInstaller.exe 0ef9ccba21b0b00ebeb312a40f2f5ce752fadd16 SonkwoInstaller.exe
2. wine SonkwoInstaller.exe wine: Call from 0x7b83c2b3 to unimplemented function msvcr120.dll.nextafter, aborting wine: Unimplemented function msvcr120.dll.nextafter called at address 0x7b83c2b3 (thread 002a), starting debugger...
https://bugs.winehq.org/show_bug.cgi?id=39195
lizhenbo litimetal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.sonkwo.com/insta | |ller/SonkwoInstaller.exe CC| |christopherwuy@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39195
Michael Bosse metiscus@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |metiscus@gmail.com
--- Comment #1 from Michael Bosse metiscus@gmail.com --- I have observed the same crash while installing the new eve launcher program. I resolved it in the following way:
1. Download and install the Microsoft Visual C 2012 Runtime https://www.microsoft.com/en-us/download/details.aspx?id=30679 2. Run winecfg. 3. Add msvcr120.dll as an override and set it to native.
The program will then work as expected.
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #2 from christopherwuy@gmail.com --- Created attachment 53144 --> https://bugs.winehq.org/attachment.cgi?id=53144 hack
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #3 from christopherwuy@gmail.com --- I had wrote the hack to fix the problem. The hack works well on my machine. Will send a patch to upstream after code frozen.
https://bugs.winehq.org/show_bug.cgi?id=39195
Sergey Isakov isakov-sl@bk.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl@bk.ru
--- Comment #4 from Sergey Isakov isakov-sl@bk.ru --- What was the reason initially to make these functions to be stubs for i386 and real functions for x86_64?
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sergey Isakov from comment #4)
What was the reason initially to make these functions to be stubs for i386 and real functions for x86_64?
For msvcr120 they are stubs regardless, for older CRT versions they did not exist in 32bit versions.
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #6 from christopherwuy@gmail.com --- Yep, so this is just a hack. I will sharpen the code. ;P
https://bugs.winehq.org/show_bug.cgi?id=39195
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- I don't think it's a hack, msvcr120 have such exports on both arches. I don't see a problem in enabling this code in msvcrt for i386 case.
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #8 from Sergey Isakov isakov-sl@bk.ru --- (In reply to Nikolay Sivov from comment #7)
I don't think it's a hack, msvcr120 have such exports on both arches. I don't see a problem in enabling this code in msvcrt for i386 case.
Enabling more codes?
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #9 from YongHao Hu christopherwuy@gmail.com --- (In reply to Sergey Isakov from comment #8)
(In reply to Nikolay Sivov from comment #7)
I don't think it's a hack, msvcr120 have such exports on both arches. I don't see a problem in enabling this code in msvcrt for i386 case.
Enabling more codes?
I think that Nikolay Sivov means using the code below to enable nextafter function in msvcrt for i386 case
-#if defined(__x86_64__) || defined(__arm__) +#if defined(__x86_64__) || defined(__arm__) || defined(__i386__)
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #10 from YongHao Hu christopherwuy@gmail.com --- (In reply to Nikolay Sivov from comment #7)
I don't think it's a hack, msvcr120 have such exports on both arches. I don't see a problem in enabling this code in msvcrt for i386 case.
Hi, I prefer #if defined(__x86_64__) || defined(__arm__) || _MSVCR_VER>=120. And Wine had used this method in MSVCRT__chgsignf function. How do you think about that? Thank you.
#if defined(__x86_64__) || defined(__arm__) || _MSVCR_VER>=120
/********************************************************************* * _chgsignf (MSVCRT.@) */ float CDECL MSVCRT__chgsignf( float num ) { /* FIXME: +-infinity,Nan not tested */ return -num; }
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #11 from Sergey Isakov isakov-sl@bk.ru --- Let the dll to be better then native one. ;)
https://bugs.winehq.org/show_bug.cgi?id=39195
--- Comment #12 from Nikolay Sivov bunglehead@gmail.com --- Fix was committed as http://source.winehq.org/git/wine.git/?a=commit;h=072f34be730761faa2fabefa8e..., please retest with current wine.
https://bugs.winehq.org/show_bug.cgi?id=39195
lizhenbo litimetal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #13 from lizhenbo litimetal@gmail.com --- (In reply to Nikolay Sivov from comment #12)
Fix was committed as http://source.winehq.org/git/wine.git/?a=commit; h=072f34be730761faa2fabefa8e4a3306d19c4a63, please retest with current wine.
Yes, this bug has been fixed. Installer finished successfully, although other bugs are blocking this app to run.
https://bugs.winehq.org/show_bug.cgi?id=39195
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |072f34be730761faa2fabefa8e4 | |a3306d19c4a63
https://bugs.winehq.org/show_bug.cgi?id=39195
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.1.
https://bugs.winehq.org/show_bug.cgi?id=39195
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ultracook314@gmail.com
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com --- *** Bug 40654 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39195
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x CC| |mstefani@redhat.com
https://bugs.winehq.org/show_bug.cgi?id=39195
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #16 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.5.