http://bugs.winehq.org/show_bug.cgi?id=13068
Summary: iphlpapi dll error Product: Wine Version: 0.9.46. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: svenwinkle@yahoo.com
Created an attachment (id=12824) --> (http://bugs.winehq.org/attachment.cgi?id=12824) trace from the point the program stopped working
When trying to run Saga (see playsaga.com) I receive the following message during the login step:
wine: Call from 0x4e1577 to unimplemented function iphlpapi.dll.GetAdaptersAddresses, aborting
The full trace is in a txt file I've attached. It looks like the program wants to see what ip addresses are on my network interfaces, but bombs out. I've tried running the program as root through sudo with the same result.
Thanks, Jeff
http://bugs.winehq.org/show_bug.cgi?id=13068
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|iphlpapi dll error |saga crashes on | |unimplemented | |iphlpapi:GetAdaptersAddresse | |s
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2008-05-08 12:30:20 --- Starting the game required getting the msvcr80 manifest file. Downloading http://www.sweetpotatosoftware.com/files/microsoft.vc80.crt.zip , extracting it, and copying the manifest file to the app's directory worked for me.
0.9.46 is rather old. Could you try again with a more recent version?
I couldn't reproduce the bug. Instead, when I try to log in, it shows an error dialog: Error! Server Not Responding
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #2 from Jeff svenwinkle@yahoo.com 2008-05-09 00:49:58 --- I get the same message with 0.9.61 freshly compiled on a different server. I did get the vc80 file earlier as well. I tried it on the new install too. One of the mods on the playsaga.com forums suggested I check the network settings in the ini in the Saga folder but that didn't show any options beyond the ip address of the saga servers unfortunately. Seems like the game can't open a network connection in linux.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2008-05-09 10:07:40 --- (In reply to comment #2)
Seems like the game can't open a network connection in linux.
That's too general a conclusion. The bug you opened (crash) is due to a missing part of Wine. I'd like to be able to reproduce the bug so I can see whether a quick hack would fix it: the function is rather large and complex, which is why I never got around to implementing it in the first place. The "Server Not responding" error might mean just that. It's hard to know whether it's a server bug, a client bug, a Wine bug, or a Linux bug without more information.
I get the same message with 0.9.61 freshly compiled on a different server.
Is it possible to change which server the client connects to? If so, how? What server were you using that showed the crash?
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #4 from Jeff svenwinkle@yahoo.com 2008-05-09 12:05:04 --- Sorry, I work with servers all day and I get home and I refer to my desktops as servers. I actually tried a different desktop at home, not a different login server.
I've backtracked a little and am now looking into the patcher. I didn't realize that the patcher wasn't running at all when I ran saga.exe. So, I've been trying to run the patcher to completion and it's not working. It gets around 2000 files into a 6000+ file patch and then bombs. I'm not sure if that's related. I didn't capture the errors before making a slight modification and trying again. I'll get the output from this try and attach it when it finishes. I'm not sure if that is a related problem to the bug I've posted. It's probably not.
I used a friend's windows XP computer, ran the install, ran the patcher, logged into the game, then copied the files completely into linux and I get the same problem (iphlphapi), so I'm not sure that getting through this patching process in linux is going to help.
I have gotten the error on 2 different desktops now. Both are running ubuntu 7.10 with the 2.6.22-14-generic kernel, and both have compiled versions of wine-0.9.61.
One thing that is interesting is that after patching on the windows box I have a folder called settings with a file inside called localsettings.ini. It looks like it actually refers to a private ip address of a login server at playsaga.com:
me@desktop:~/.wine/drive_c/Program Files/sagawindows/settings$ cat localsettings.ini [APP] ; Main application settings
SYSTEM = w ; g, p, x, w
Licensed = true ; a way to force licensing on/off - non-final builds only!
[NETWORK]
LoginServerIP =192.168.0.29
I'm not sure what else to tweak to try to get a different output that might be more helpful to you. I'll keep trying.
http://bugs.winehq.org/show_bug.cgi?id=13068
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |juan_lang@yahoo.com Summary|saga crashes on |saga can't log in, complains |unimplemented |"Server Not responding" |iphlpapi:GetAdaptersAddresse| |s |
--- Comment #5 from Juan Lang juan_lang@yahoo.com 2008-05-09 12:51:34 --- Okay, thanks for the followup.
It sounds to me that we have three different bugs here: 1. The unpatched version of Saga doesn't log in, but times out like I saw. 2. The patcher doesn't run to completion. 3. The patched version, installed by copying from a windows installation, crashes with a call to iphlpapi:GetAdaptersAddresses.
I'm changing the summary to reflect the first bug, as that's the one people will most easily be able to reproduce. If we can fix bug 2., then we can investigate 3. Copying from a windows installation is likely to be seen as an invalid configuration, so unless we can reproduce it by installing and patching the game in Linux, it probably shouldn't be considered a Wine bug yet.
2. should be logged as a separate bug. Would you mind?
http://bugs.winehq.org/show_bug.cgi?id=13068
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.46. |0.9.61.
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2008-05-09 12:53:49 --- Changing wine version to match more recent testing.
http://bugs.winehq.org/show_bug.cgi?id=13068
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #7 from Juan Lang juan_lang@yahoo.com 2008-05-09 12:54:16 --- Changing wine version to match more recent testing, and confirming.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #8 from Juan Lang juan_lang@yahoo.com 2008-05-09 13:10:50 --- Created an attachment (id=12845) --> (http://bugs.winehq.org/attachment.cgi?id=12845) +winsock log
The log shows a little of what's going on. The program sends UDP packets to the server 209.90.78.210, but never receives a reply. The "ERROR 10035" is WSAEWOULDBLOCK, because there's no reply received.
I also did a trace with wireshark. The packets are sent all right, but they all have an invalid UDP checksum. It's always 0xd1d8 in my traces, but the correct value varies depending on the data (and it's never 0xd1d8.) So it's no surprise that the server never replies to invalid packets.
The question is, where are the invalid checksums coming from?
http://bugs.winehq.org/show_bug.cgi?id=13068
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winsock
--- Comment #9 from Juan Lang juan_lang@yahoo.com 2008-05-09 13:13:37 --- Tentatively changing component to winsock, as it shouldn't be sending UDP packets with invalid checksums.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #10 from Jeff svenwinkle@yahoo.com 2008-05-10 10:10:20 --- I filed bug 13104 in regards to the patcher.
http://bugs.winehq.org/show_bug.cgi?id=13068
Jeff svenwinkle@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME
--- Comment #11 from Jeff svenwinkle@yahoo.com 2008-05-12 17:57:39 --- Another player at playsaga.com told me he got it working with the following dll's added and overridden using windows version 2000 (although dll's came from a windows xp drive):
dhcpsvc.dll esent.dll iphlpapi.dll netman.dll netshell.dll rtutils.dll winsta.dll wzcsapi.dll wzcsvc.dll
I tried it and can confirm that it works.
Also, I found that I had to open the following udp port range on my firewall or it wouldn't let me log in (got this from the playsaga.com forums): 19691-19701.
I'd say that this bug is solved/never existed.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #12 from Lei Zhang thestig@google.com 2008-05-12 18:31:27 --- Does it work if you don't override iphlpapi.dll?
http://bugs.winehq.org/show_bug.cgi?id=13068
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://www.playsaga.com/ Status|RESOLVED |REOPENED Keywords| |download Resolution|WORKSFORME |
--- Comment #13 from Lei Zhang thestig@google.com 2008-05-12 22:08:07 --- While using native dlls is a workaround, and I'm glad it works for you, the bug has not been fixed in Wine. Reopening.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #14 from Juan Lang juan_lang@yahoo.com 2008-05-14 17:33:31 --- I also can't confirm what you see. I tried with the same set of DLLs, and still get the same error.
Can you try to isolate exactly which of those DLLs is needed to log in successfully?
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #15 from Jeff svenwinkle@yahoo.com 2008-05-15 12:25:04 --- It seems like I have to use all the dlls I mentioned. I'll keep testing one at a time. This takes a while since once I log out, I can't log back in for a little bit. I'm not sure what causes that. I believe it is my sound. Please also make sure you are opening the ports on your firewall that I mentioned. If I don't have those opened I can't log in at all.
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #16 from Juan Lang juan_lang@yahoo.com 2008-05-19 13:19:31 --- I still can't reproduce your success. I tried with the DLLs you mention from a Windows XP SP2 installation, and I made sure those ports were not blocked. Same symptoms as before.
My Windows version is set to Windows 2000, the command line I used was: WINEDLLOVERRIDES=iphlpapi=n WINEDEBUG=relay,snoop wine saga.exe >& relay.txt
A scan of relay.txt showed no use of the DLLs you mention except for iphlpapi, so I don't know why those are needed.
Could you run it with the command above, then run: head -10000 relay.txt
And compress and attach it here?
http://bugs.winehq.org/show_bug.cgi?id=13068
--- Comment #17 from Austin English austinenglish@gmail.com 2008-12-26 17:27:57 --- Is this still an issue in current (1.1.11 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13068
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |ABANDONED
--- Comment #18 from Jeff Zaroyko jeffz@jeffz.name 2008-12-29 07:03:52 --- Downloaded and installed the saga client, waded through a ton of updates and I can login and start a game. The unimplemented function is never called, I added the required headers and stubbed the function, a fixme for it is never printed.
Marking WORKSFORME.
see bug 14574 for the implementation of GetAdaptersAddresses
http://bugs.winehq.org/show_bug.cgi?id=13068
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Jeff Zaroyko jeffz@jeffz.name 2008-12-29 07:04:03 --- closing
http://bugs.winehq.org/show_bug.cgi?id=13068
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winsock |-unknown Resolution|ABANDONED |WORKSFORME
--- Comment #20 from Jeff Zaroyko jeffz@jeffz.name 2008-12-29 07:08:44 --- selected the wrong resolution by mistake
https://bugs.winehq.org/show_bug.cgi?id=13068
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com