Winsock No Such Device Error?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
BobDole
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2015 2:37 pm

Winsock No Such Device Error?

Post by BobDole »

I've spent the last week trying to get the Pelco Endura camera viewer to run with Wine and my current holdup appears to be in winsock. I'm running Wine 1.7.38 on Ubuntu 14.04.2 LTS installed for just this purpose. The session I've included debug info for below started first with a pristine wineprefix and then added the following winetricks in this order, no mono.

Code: Select all

dotnet30
vcrun2008
cmd
dotnet35
wininet
Without those winetricks I get a ton of fixme: messages and the same winsock errors. I've traced the application on Windows7 and the sequence of winsock calls looks to be nearly identical right up until the errno 19 no such device messages. Its worth noting that this application is heavily multicast dependent, so I'm not sure if that comes into play here or not. Looking at the debug trace socket 0b40 is bound to the correct interface on my machine, but then shutdown. I don't know how to tell if the errno 19 messages are referring specifically to that socket or one of the other sockets that are opened. And there is a WS_setsockopt error 10045 which google says means unsupported operation, again I'm not sure which socket this applies to.

Here is my debug output

Code: Select all

trace:winsock:DllMain 0x7ed50000 0x1 0x1
fixme:advapi:RegisterEventSourceA ((null),"Pelco"): stub
fixme:advapi:RegisterEventSourceW (L"",L"Pelco"): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x31e0d8,(nil)): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x137790,(nil)): stub
err:eventlog:ReportEventW L"EverestLoader: Unable to load the file \"Private/Libmap.xml\" as expected. [[\n(172,XMLDocument.cpp) ER(-6) FileId(System/MsgSystemXml) msgId(318799111) P1(\"Private/Libmap.xml\") \n(58,XMLReference.cpp) ER(-9) FileId(System/MsgSystemGen) msgId(587232561) P1(\"object\") P2(\"XMLReference::SetDOMObjec"...
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:advapi:RegisterEventSourceA ((null),"Pelco"): stub
fixme:advapi:RegisterEventSourceW (L"",L"Pelco"): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x31d9e4,(nil)): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x118d90,(nil)): stub
err:eventlog:ReportEventW L"[[\n(1986,EverestLoader.cpp) ER(-1) FileId(System/MsgSystemGen) msgId(318797281) P1(\"Private/Libmap.xml\") \n(172,XMLDocument.cpp) ER(-6) FileId(System/MsgSystemXml) msgId(318799111) P1(\"Private/Libmap.xml\") \n(58,XMLReference.cpp) ER(-9) FileId(System/MsgSystemGen) msgId(587232561) P1(\"object\")"...
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:system:SetProcessDPIAware stub!
trace:winsock:DllMain 0x7ed50000 0x0 0x1
trace:winsock:DllMain 0x7ed40000 0x1 0x1
fixme:system:SetProcessDPIAware stub!
err:module:import_dll Library QtSvg4.dll (which is needed by L"Z:\\home\\bobdole\\.wine\\drive_c\\Program Files\\Pelco\\Endura\\WS5000\\imageformats\\qsvg4.dll") not found
fixme:win:FlashWindowEx 0x33f374
trace:winsock:WSAStartup verReq=202
trace:winsock:WSAStartup succeeded starts: 1
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:WS_gethostname name 0x33f544, len 256
trace:winsock:WS_gethostname <- 'bobdole-MacPro'
trace:winsock:WS_gethostbyname "bobdole-MacPro" ret 0x1720f8
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:WSASocketA af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x0
trace:winsock:WSASocketW af=2 type=1 protocol=0 protocol_info=(nil) group=0 flags=0x0
trace:winsock:WSASocketW 	created 0b40
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:WS_bind socket 0b40, ptr 0x33f5fc { family AF_INET, address 172.23.9.249, port 49152 }, length 16
trace:winsock:WS_listen socket 0b40, backlog 2147483647
trace:winsock:WS_getsockname socket: 0b40, ptr 0x33f5c8, len 00000010
trace:winsock:WS_getsockname => { family AF_INET, address 172.23.9.249, port 49152 }
trace:winsock:WSASocketA af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x0
trace:winsock:WSASocketW af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x0
trace:winsock:WSASocketW 	created 0b48
trace:winsock:WS_bind socket 0b48, ptr 0x33f5fc { family AF_INET, address 127.0.0.1, port 0 }, length 16
trace:winsock:WS_getsockname socket: 0b48, ptr 0x33f5c8, len 00000010
trace:winsock:WS_getsockname => { family AF_INET, address 127.0.0.1, port 51543 }
trace:winsock:WS_socket af=2 type=2 protocol=0
trace:winsock:WSASocketA af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1
trace:winsock:WSASocketW af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1
trace:winsock:WSASocketW 	created 0b4c
trace:winsock:WS_setsockopt socket: 0b4c, level 0x0, name 0xa, ptr 0x33f5e3, len 1
trace:winsock:WSAIoctl 0b4c, _IOW('f', 126, 4), 0x33f5c4, 4, 0x33f5c4, 4, 0x33f58c, (nil), (nil)
trace:winsock:WSAIoctl -> FIONBIO (1)
trace:winsock:WS_setsockopt socket: 0b4c, level 0x0, name 0x9, ptr 0x33f5fc, len 4
trace:winsock:WS_socket af=2 type=2 protocol=0
trace:winsock:WSASocketA af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1
trace:winsock:WSASocketW af=2 type=2 protocol=0 protocol_info=(nil) group=0 flags=0x1
trace:winsock:WSASocketW 	created 0b50
trace:winsock:WS_setsockopt socket: 0b50, level 0xffff, name 0x4, ptr 0x33f5e8, len 4
trace:winsock:WS_bind socket 0b50, ptr 0x33f600 { family AF_INET, address 0.0.0.0, port 1900 }, length 16
trace:winsock:WS_setsockopt socket: 0b50, level 0x0, name 0xc, ptr 0x33f5f0, len 12
warn:winsock:wsaErrno errno 19, (No such device).
warn:winsock:sock_get_error Unknown errno 19!
trace:winsock:WS_setsockopt Setting socket error, 10045
warn:winsock:wsaErrno errno 19, (No such device).
warn:winsock:sock_get_error Unknown errno 19!
trace:winsock:WS_shutdown socket 0b4c, how 2 0
trace:winsock:WS2_register_async_shutdown s 0b4c type 1
trace:winsock:WS2_register_async_shutdown s 0b4c type 2
warn:winsock:wsaErrStatus errno 107, (Transport endpoint is not connected).
trace:winsock:WSAAsyncSelect b4c, hWnd (nil), uMsg 00000000, event 00000000
trace:winsock:WS_closesocket (socket 0b4c) -> 0
trace:winsock:WS_shutdown socket 0b50, how 2 0
trace:winsock:WS2_register_async_shutdown s 0b50 type 1
trace:winsock:WS2_register_async_shutdown s 0b50 type 2
warn:winsock:wsaErrStatus errno 107, (Transport endpoint is not connected).
trace:winsock:WSAAsyncSelect b50, hWnd (nil), uMsg 00000000, event 00000000
trace:winsock:WS_closesocket (socket 0b50) -> 0
trace:winsock:WS_shutdown socket 0b40, how 2 20
trace:winsock:WSAAsyncSelect b40, hWnd (nil), uMsg 00000000, event 00000000
trace:winsock:WS_closesocket (socket 0b40) -> 0
trace:winsock:WS_shutdown socket 0b48, how 2 20
warn:winsock:wsaErrno errno 107, (Transport endpoint is not connected).
trace:winsock:WS_closesocket (socket 0b48) -> 0
trace:winsock:WS_shutdown socket 0b4c, how 2 0
trace:winsock:WS_closesocket (socket 0b4c) -> -1
trace:winsock:WS_shutdown socket 0b50, how 2 0
trace:winsock:WS_closesocket (socket 0b48) -> -1
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:WSACleanup pending cleanups: 0
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
trace:winsock:DllMain 0x7ed40000 0x3 (nil)
fixme:advapi:RegisterEventSourceA ((null),"Pelco"): stub
fixme:advapi:RegisterEventSourceW (L"",L"Pelco"): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0002,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x32ed60,(nil)): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0002,0x0000,0x000003e8,(nil),0x0001,0x00000000,0x16a2d8,(nil)): stub
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
trace:winsock:WSAStartup verReq=2
trace:winsock:WSAStartup succeeded starts: 1
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
trace:winsock:DllMain 0x7ed40000 0x2 (nil)
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
fixme:imm:ImmReleaseContext (0x40064, 0x18b420): stub
fixme:win:FlashWindowEx 0x33f2e4
Thanks for any insight!
BobDole
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2015 2:37 pm

Re: Winsock No Such Device Error?

Post by BobDole »

I haven't found a fix for my issue on Ubuntu yet, but its worth noting that everything works fine with Wine on OS X. The entire app comes up and runs just fine with zero winetricks.

I tried disabling AppArmor on Ubuntu but that hasn't helped. Still looking for things to try if anyone has a suggestion. Thanks
Locked