ppgrainbow Posted May 12, 2012 Posted May 12, 2012 (edited) Hey there! I haven't been using Qemu for a while. I've been trying out Qemu 1.0.1 from this page here and when I used Dependency Walker to look into one of these files, it won't execute on Windows 2000 or Windows XP RTM host by default as it is missing the following dependencies: freeaddrinfo, getaddrinfo and getnameinfo.The three dependencies listed above are required to enable IPv6 internet support and Win2k/XP RTM doesn't have it.I have a couple of questions to answer:1 In order to compile Qemu 1.0.1 on Win2k, is there a way to replace freeaddrinfo with another Win2k compatible dependency? I already used a hex editor to replace getaddrinfo and getnameinfo with gethostname.2. Is it also possible to compile Qemu 1.0.1 using Visual Studio 2005 or Visual Studio 2008?Qemu hasn't been officially supported on Win2k since Qemu 0.9.1 back in 2008.I also got word that Qemu 1.0.1's NAT doesn’t work and I'm wondering if there is also a way to get NAT working on Win2k without using the getaddrinfo and getnameinfo with gethostname IPv6 related dependencies. Edited May 12, 2012 by ppgrainbow
tomasz86 Posted May 12, 2012 Posted May 12, 2012 (edited) No dependency problems with UURollup-v9b installed Edited May 12, 2012 by tomasz86
ppgrainbow Posted May 12, 2012 Author Posted May 12, 2012 No dependency problems with UURollup-v9b installed Thank you for telling me. I'll probably install the UURollup v9b when Firefox 13 comes out for sure. :B
tomasz86 Posted May 12, 2012 Posted May 12, 2012 (edited) By the way, in order to quickly check dependencies create a .cmd file with this script and place it in a folder where the files concerned are and run it. It's not perfect but will report issues correctly in most cases. Copy depends.exe from Dependency Walker to %systemroot%\system32 before running it!It's for Windows 2000 only.@ECHO OFFIF EXIST depends.txt DEL/Q depends.txtFOR /F "tokens=* delims=*" %%I IN ('DIR/A-D/B') DO ( ECHO Checking %%I DEPENDS.exe /C /OT:temp.txt %%I FINDSTR/BR "\[.E.\] \[.\?.\]" temp.txt >NUL IF !ERRORLEVEL! EQU 0 ( FOR /F "tokens=2 delims=[] " %%J IN ('FINDSTR/BR "\[.E.\]" temp.txt') DO ( IF /I NOT "%%J"=="MPR.DLL" IF /I NOT "%%J"=="DBGHELP.DLL" ( ECHO Dependecy issues found in %%I ECHO. ECHO.>>depends.txt ECHO>>depends.txt %%I %%J ) ) FOR /F "tokens=2 delims=[] " %%J IN ('FINDSTR/BR "\[.\?.\]" temp.txt') DO ( IF /I NOT "%%J"=="APPHELP.DLL" ( ECHO Dependency issues found in %%I ECHO. ECHO.>>depends.txt ECHO>>depends.txt %%I needs %%J ) ) ))DEL/Q temp.txtECHO.IF EXIST depends.txt ( ECHO Finished.) ELSE ( ECHO There are no dependency issues.)ECHO.PAUSEThis is how it looks for Qemu files: Edited May 12, 2012 by tomasz86
ppgrainbow Posted May 12, 2012 Author Posted May 12, 2012 Thanks again. It looks like that the script to check for dependencies didn't correctly check for dependencies that don't exist on Win2k and getting a "There are no dependency issues." message instead of dependency issues found in (filename). What am I doing wrong here?
tomasz86 Posted May 12, 2012 Posted May 12, 2012 Hmm, could you tell me which file exactly it is? I'll try to check it in a standard W2K installation (without any unofficial kernels).
ppgrainbow Posted May 12, 2012 Author Posted May 12, 2012 Hmm, could you tell me which file exactly it is? I'll try to check it in a standard W2K installation (without any unofficial kernels).Any of the executable files including qemu-system-i386.exe which throws the freeaddrinfo, getaddrinfo and getnameinfo dependencies.
tomasz86 Posted May 13, 2012 Posted May 13, 2012 (edited) Did you run the script under Windows 2000? I've just tried it in a VM and the output (depends.txt) looks like this:qemu-img.exe WS2_32.DLLqemu-io.exe WS2_32.DLLqemu-system-alpha.exe WS2_32.DLLqemu-system-arm.exe WS2_32.DLLqemu-system-cris.exe WS2_32.DLLqemu-system-i386.exe WS2_32.DLLqemu-system-lm32.exe WS2_32.DLLqemu-system-m68k.exe WS2_32.DLLqemu-system-microblaze.exe WS2_32.DLLqemu-system-microblazeel.exe WS2_32.DLLqemu-system-mips.exe WS2_32.DLLqemu-system-mips64.exe WS2_32.DLLqemu-system-mips64el.exe WS2_32.DLLqemu-system-mipsel.exe WS2_32.DLLqemu-system-ppc.exe WS2_32.DLLqemu-system-ppc64.exe WS2_32.DLLqemu-system-ppcemb.exe WS2_32.DLLqemu-system-s390x.exe WS2_32.DLLqemu-system-sh4.exe WS2_32.DLLqemu-system-sh4eb.exe WS2_32.DLLqemu-system-sparc.exe WS2_32.DLLqemu-system-sparc64.exe WS2_32.DLLqemu-system-x86_64.exe WS2_32.DLLqemu-system-xtensa.exe WS2_32.DLLqemu-system-xtensaeb.exe WS2_32.DLLIt doesn't report which dependencies are missing but if you check each of them you'll see that they are the ones you're talking about (freeaddrinfo, getaddrinfo and getnameinfo in ws2_32.dll).Assuming that you ran the script in Windows 2000... what language version of W2K do you use? Are you using Dependency Walker 2.2.6000? Edited May 13, 2012 by tomasz86
blackwingcat Posted May 14, 2012 Posted May 14, 2012 (edited) I missed thread this post. Edited May 14, 2012 by blackwingcat
ppgrainbow Posted May 14, 2012 Author Posted May 14, 2012 Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL. I'm using the US English language version of the OS, btw.As for Dependency Walker, I'm using the latest version - version 2.2.6000 released on 2006-10-29.
tomasz86 Posted May 14, 2012 Posted May 14, 2012 Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL.Is "depends.txt" created at all?
ppgrainbow Posted May 14, 2012 Author Posted May 14, 2012 Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL.Is "depends.txt" created at all?The depends.txt file is not created at all. I did a search for that file on drives C: and D: and came up with nothing.
tomasz86 Posted May 14, 2012 Posted May 14, 2012 (edited) Strange So is your output similar to the one I uploaded in #4 (the commandline window)?I've tested the script on two configurations (desktop & VM) and it worked fine on both of them. Edited May 14, 2012 by tomasz86
ppgrainbow Posted May 15, 2012 Author Posted May 15, 2012 Strange So is your output similar to the one I uploaded in #4 (the commandline window)?I've tested the script on two configurations (desktop & VM) and it worked fine on both of them.The output looks similar to the one that you uploaded in your fourth comment. The problem here is that none of the files are being able to detect dependencies that are missing.
DosFreak Posted May 17, 2012 Posted May 17, 2012 (edited) Hexediting qemu.exe (or any qemu executable) and replacing "freeaddrinfo","getaddrinfo", and "getnameinfo" with "gethostname" should work fine....at least it did last time I tried it.KQemu isn't supported any more with later versions of Qemu only IIRC Qemu 0.9x supports it so you are really better off with Vmware Workstation 7/Player 4 (using blackwingcat patches) if you need speed.AFAIK Vmware Workstation 8/Player 5 are not yet working on Windows 2000. Edited May 17, 2012 by DosFreak
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now