http://bugs.winehq.org/show_bug.cgi?id=11343
Summary: WSAIoctl only partly implemented Product: Wine Version: 0.9.54. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: martin@hmailserver.com
WSAIoctl is only partly implemented. When setting dwIoControlCode to SIO_GET_EXTENSION_FUNCTION_POINTER, WSAIoctl will result in WSAEOPNOTSUPP.
This has the effect that hMailServer does not work under Wine.
http://bugs.winehq.org/show_bug.cgi?id=11343
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|WSAIoctl only partly |hMailServer does not work |implemented |
http://bugs.winehq.org/show_bug.cgi?id=11343
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.hmailserver.com/ Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=11343
--- Comment #1 from Martin Knafve martin@hmailserver.com 2008-01-28 14:13:35 --- I just want to add that there's other reasons hMailServer does not work under Wine as well. Some of them I've been able to work around myself. For instance, hMailServer includes a MySQL installation which does not work properly under Linux. The workaround to this was to use an already existing MySQL installation in Linux.
The problem I reported in this bug report was a problem which was stopping hMailServer completely which I could not find any workaround to.
http://bugs.winehq.org/show_bug.cgi?id=11343
--- Comment #2 from Austin English austinenglish@gmail.com 2008-12-09 19:53:07 --- Please retest in 1.1.10.
http://bugs.winehq.org/show_bug.cgi?id=11343
--- Comment #3 from Martin Knafve martin@hmailserver.com 2008-12-10 08:32:50 --- Austin,
I downloaded the source code for version 1.1.10. Looking in \dlls\ws2_32\socket.c I see that the function WSAIoctl still sets error WSAEOPNOTSUPP if the value WS_SIO_GET_EXTENSION_FUNCTION_POINTER is supplied for the parameter dwIoControlCode. Which is exactly what I reported in the description of this bug.
Am I missing something? Why do you assume it may work in 1.1.10?
http://bugs.winehq.org/show_bug.cgi?id=11343
--- Comment #4 from Austin English austinenglish@gmail.com 2008-12-10 09:50:56 --- (In reply to comment #3)
Austin,
I downloaded the source code for version 1.1.10. Looking in \dlls\ws2_32\socket.c I see that the function WSAIoctl still sets error WSAEOPNOTSUPP if the value WS_SIO_GET_EXTENSION_FUNCTION_POINTER is supplied for the parameter dwIoControlCode. Which is exactly what I reported in the description of this bug.
Am I missing something? Why do you assume it may work in 1.1.10?
I hadn't checked the relevant source yet. The bug had no activity for 6 months, so I was 'pinging' it.
http://bugs.winehq.org/show_bug.cgi?id=11343
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Austin English austinenglish@gmail.com 2010-06-14 13:53:00 --- Still present in 1.2-rc3.
http://bugs.winehq.org/show_bug.cgi?id=11343
Mike Kaplinskiy mike.kaplinskiy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mike.kaplinskiy@gmail.com
--- Comment #6 from Mike Kaplinskiy mike.kaplinskiy@gmail.com 2010-09-12 00:52:05 CDT --- Not all SIO_GET_EXTENSION_FUNCTION_POINTER are created equal, a log might be a good idea.
http://bugs.winehq.org/show_bug.cgi?id=11343
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2011-08-31 21:59:34 CDT --- Please, retest in latest wine version. There are a few implemented WS_SIO_GET_EXTENSION_FUNCTION_POINTER guids now and the program may work or at least run further.
http://bugs.winehq.org/show_bug.cgi?id=11343
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |focht@gmx.net Depends on| |15770 Resolution| |FIXED Summary|hMailServer does not work |hMailServer 4.x service | |calls some unsupported | |WSAIoctl ioctl codes
--- Comment #8 from Anastasius Focht focht@gmx.net 2012-01-10 17:02:36 CST --- Hello,
--- quote --- For instance, hMailServer includes a MySQL installation which does not work properly under Linux. The workaround to this was to use an already existing MySQL installation in Linux. --- quote ---
MySQL installation/running requirement is relatively easy to fix, see http://bugs.winehq.org/show_bug.cgi?id=15770#c6
Use older hMailServer 4.x which ships mysql server for testing.
Newer 5.x installers come with MS SQL server or external engines and more prerequisites ('winetricks dotnet20' and 'winetricks mdac28 jet40').
Using the reporter date this bug should target 4.x installers.
hMailServer 4.4.3 - Build 285 Yes 2008-11-10
http://www.hmailserver.com/index.php?page=background_download_file&downl...
--- quote --- Please, retest in latest wine version. There are a few implemented WS_SIO_GET_EXTENSION_FUNCTION_POINTER guids now and the program may work or at least run further. --- quote ---
Trace log:
--- snip --- 0086:Call ws2_32.WSASocketA(00000002,00000001,00000000,00000000,00000000,00000001) ret=004e6031 007e:Call KERNEL32.CreateEventA(00000000,00000001,00000000,00000000) ret=00511c71 0086:Ret ws2_32.WSASocketA() retval=000006a4 ret=004e6031 0086:Call ws2_32.setsockopt(000006a4,0000ffff,00001001,0575e8f8,00000004) ret=004e60b0 0086:Call ntdll.wine_server_handle_to_fd(000006a4,00000000,0575e6fc,00000000) ret=71d1f63f 0086:Ret ntdll.wine_server_handle_to_fd() retval=00000000 ret=71d1f63f 0086:Call ntdll.wine_server_release_fd(000006a4,00000154) ret=71d1f67f 0086:Ret ntdll.wine_server_release_fd() retval=00000000 ret=71d1f67f 0086:Ret ws2_32.setsockopt() retval=00000000 ret=004e60b0 007e:Call KERNEL32.CreateEventA(00000000,00000001,00000000,00000000) ret=00511c71 0086:Call ws2_32.WSAIoctl(000006a4,c8000006,0575e93c,00000010,0075f9fc,00000004,0575e938,00000000,00000000) ret=004e632a 0086:Ret ws2_32.WSAIoctl() retval=00000000 ret=004e632a 0086:Call ws2_32.WSAIoctl(000006a4,c8000006,0575e94c,00000010,0075fa00,00000004,0575e938,00000000,00000000) ret=004e639f 0086:Ret ws2_32.WSAIoctl() retval=00000000 ret=004e639f 0086:Call ws2_32.closesocket(000006a4) ret=004e63ab ... 0086:Call KERNEL32.CreateIoCompletionPort(ffffffff,00000000,00000000,00000000) ret=004ea8af 0086:Ret KERNEL32.CreateIoCompletionPort() retval=000006b4 ret=004ea8af ... --- snip ---
Which looks ok.
There are still issues (admin tool fails to connect) but these deserve their own bugs (or are already covered by others).
$ sha1sum hMailServer-4.4.3-B285.exe 882190f4dbf1133c77b0950cf507c6bab56943ba hMailServer-4.4.3-B285.exe
$ wine --version wine-1.3.36-269-g662f3ab2
Regards
http://bugs.winehq.org/show_bug.cgi?id=11343
Bug 11343 depends on bug 15770, which changed state.
Bug 15770 Summary: MySQL 5.1 service fails to start due to missing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters registry subkey http://bugs.winehq.org/show_bug.cgi?id=15770
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=11343
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2012-01-13 13:50:45 CST --- Closing bugs fixed in 1.3.37.