@yan12125: Thank you for the update. It is good to hear that Wine has finally included a winscard.dll implementation. I will look at it.
Fix building with wine 6.23
Now that upstream Wine includes an implementation of winscard.dll, I will drop my fork.
There are some other errors from newer wine. 7.13 removed wine/unicode.h and 7.22 dropped support for non-msvcrt modules: x86_64-w64-mingw32-gcc -c -o dlls/winscard/x86_64-windows/winscard.o ../wine-winscard/dlls/winscard/winscard.c -Idlls/winscard \ -I../wine-winscard/dlls/winscard -Iinclude -I../wine-winscard/include \ -I../wine-winscard/include/msvcrt -D_UCRT -D__WINESRC__ -D__WINE_PE_BUILD -Wall -g -O2 In file included from ../wine-winscard/dlls/winscard/winscard.c:20: ../wine-winscard/dlls/winscard/wine-compat.h:3:10:...
There are some other errors from newer wine. 7.21 removed wine/unicode.h and 7.22 dropped support for non-msvcrt modules: x86_64-w64-mingw32-gcc -c -o dlls/winscard/x86_64-windows/winscard.o ../wine-winscard/dlls/winscard/winscard.c -Idlls/winscard \ -I../wine-winscard/dlls/winscard -Iinclude -I../wine-winscard/include \ -I../wine-winscard/include/msvcrt -D_UCRT -D__WINESRC__ -D__WINE_PE_BUILD -Wall -g -O2 In file included from ../wine-winscard/dlls/winscard/winscard.c:20: ../wine-winscard/dlls/winscard/wine-compat.h:3:10:...
There are some other errors from newer wine. 7.21 removed wine/unicode.h and 7.22 dropped support for non-msvcrt modules: x86_64-w64-mingw32-gcc -c -o dlls/winscard/x86_64-windows/winscard.o ../wine-winscard/dlls/winscard/winscard.c -Idlls/winscard \ -I../wine-winscard/dlls/winscard -Iinclude -I../wine-winscard/include \ -I../wine-winscard/include/msvcrt -D_UCRT -D__WINESRC__ -D__WINE_PE_BUILD -Wall -g -O2 In file included from ../wine-winscard/dlls/winscard/winscard.c:20: ../wine-winscard/dlls/winscard/wine-compat.h:3:10:...
Fix building with wine 6.23
Glad to help :D
Thank you @yan12125 for your contribution. I have merged your merge request.
Fix building with wine >= 5.6
I updated build instructions for Wine >= 6.18. I didn't test it with older Wine, but it should still work.
Done! Thanks for the fast reponse! I didn't find a way to build only winscard.dll. Also, I tested my steps on Wine 6.6~6.8 only.
Thank you for your efforts on this, I appreciate. I'm ok with this approach. Can you add it to your pull-request?
Thanks a lot for the fast and detailed explanations. Sorry for the delay - I got some issues before I found a way when I tried to make sources compatible with both wine 5.0 and 6.x. Here are my attempts: Find a macro for indicating the wine version. There is only a string macro PACKAGE_VERSION, which seems not useful for version comparisons. Use a user-defined macro to choose between wine_dl* and dl* functions. A work-in-place https://sourceforge.net/u/yan12125/scard4wine/ci/19fa5f748b7d3022c0b9e69e1401d4a123ad246d/...
Thank you for this contribution. Since version 5.0.x is still maintained, I prefer to have this change implement using macro defines that are defined correctly depending on the version of WINE used for the build (if version < 5.6, defines will use wine_XXX functions and if version >= 5.6, defines will use dlfcn functions). Is it possible to update the pull request to use this approach? Concerning submission to upstream or staging, I have nothing against but the last time I tried, I gave up because...
Fix building with wine >= 5.6
Fix various memory related issues that causes crashes or non visibility of readers.
Update installation script to also copy winscard.dll.fake
Hi thanks for your reply. I remake wine with your winscard.c with Suse 13.2 x86,...
Hi, Thank you for the report. I was able to reproduce the "Invalid floating point...
Deplhi can not load the new wincard.dll.so
Yes, I think I installed the card reader on Linux properly. The pcsc_scan returns...
Thank you for posting all the logs files. From what I see, there is nothing that...
Safesign crashes with wine 1.[67]
fix SCardStatusA() and SCardTransmit() to be co...
SafeSign crash
Hi, The debug dump you posted seem to confirm that Winscard is not responsible and...
Hi! Sorry for the delay. It seems that one of Internet Banking "Security Module"...
Hi, Thank you for your update. Indeed, your investigation of the issue will be helpful...
Hi, I've managed to make it work directly on linux (without wine, with a native safesign...
Hi, SCard4Wine is known to work with many smart card middlewareon the market like...
SafeSign crash