project-navigation
Personal tools

Author Topic: Windows 2K testers needed  (Read 12711 times)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Windows 2K testers needed
« on: August 24, 2007, 09:49:02 am »
I've recently implemented a fallback for the network function freeaddrinfo - there were reports about unresolved symbols about this on win2k. If some of our brave gamers here still has a 2k box somewhere around, please try to compile the latest revision in trunk on this win2k box and run it please. Let me know whether there are any other unresolved network function symbols, please

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #1 on: August 24, 2007, 11:17:27 pm »
the latest beta installer on http://mattn.ninex.info now also includes the fix for freeaddrinfo - now need to compile the game yourself - just download the installer and let me know whether the game starts on your win2k box please.

Offline Mysc

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: Windows 2K testers needed
« Reply #2 on: August 25, 2007, 04:44:23 am »
Ok well, first of all when I try loading the game without adding anything... I get "The procedure entry point getaddrinfo could not be located in the dynamic link library WS2_32.dll"
If I add the WinXP version of WS2_32.dll and WS2help.dll I get "The procedure entry point SetHandleContext could not be located in the dynamic link library KERNEL32.dll"

My Win2k hasnt bee updated in a fair while I will try updating it later see if it will make a diffrence although I wouldn't imagine so.
Will also try on another machine in my house later a little busy to test right now though :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #3 on: August 25, 2007, 07:39:02 am »
thank you very much - i will try to solve the getaddrinfo issue, too

Offline Mysc

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: Windows 2K testers needed
« Reply #4 on: August 25, 2007, 08:45:18 am »
I just tested with my windows fully upto date - Got same error, didn't think it would make a diffrence anyway.
If it makes any diffrence i'm using Win2k Server SP4, I also tested on Win2k Professional SP4.
Got same errors both times round. Also if possible could you upload the new exe somewhere when you have a fix ready (I imagine that it would only effect the main executables) as I have no idea how to use SVN let alone how to compile. :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #5 on: August 25, 2007, 08:57:52 am »
yes, i will - after the weekend - i will let you know in this thread, thank you very much again

HaJo

  • Guest
Re: Windows 2K testers needed
« Reply #6 on: September 19, 2007, 01:18:29 pm »
beta installer.. fix for freeaddrinfo
Same for Win98 with the beta from 2007-09-15 -
the old error "shell32.dll:SHGetFolderPathA" is gone,
but now I get this error about WS2_32.dll.
« Last Edit: September 19, 2007, 01:20:34 pm by HaJo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #7 on: September 19, 2007, 03:53:08 pm »
win98 is no longer supported

HaJo

  • Guest
Re: Windows 2K testers needed
« Reply #8 on: September 19, 2007, 05:39:11 pm »
I tested with Win2000, SP4, Beta 2.2 from 2007-09-18,
and got the error
"entry point freeaddrinfo could not be located in WS2_32.dll"

HaJo

  • Guest
Re: Windows 2K testers needed
« Reply #9 on: September 25, 2007, 11:38:40 am »
I tested with Win2000, SP4, Beta 2.2 from 2007-09-18, and got the error
"entry point freeaddrinfo could not be located in WS2_32.dll"

I tested again, with 2.2 trunk - rev 11925 - 2007-09-23, same error.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #10 on: September 25, 2007, 11:45:52 am »
this error will stay until someone will implement ipv4-only code. win2k handles the ipv6 stuff different than winxp.

an ipv4 implementation would be nice. the problem is, noone on the team has those problems, and thus noone on the team really is seeing the need for this. if there is someone around here who is able to do it and willing to do it... would be cool. otherwise there will be no win2k support for 2.2

HaJo

  • Guest
Re: Windows 2K testers needed
« Reply #11 on: September 25, 2007, 08:39:40 pm »
this error will stay until someone will implement ipv4-only code.
win2k handles the ipv6 stuff different than winxp.

It looks like several other projects have already encountered this problem.
There are some bugreports / patches at
* http://www.mail-archive.com/pan-devel@nongnu.org/msg00328.html
* http://bugs.xmms2.xmms.se/view.php?id=116

and a hint from http://forums.pcworld.co.nz/showthread.php?t=50226 :
Code: [Select]
... include these 2 files at the end of your stdafx.h
(or at the top of your cpp files just after the stdafx.h)
#include <Ws2tcpip.h>
#include <Wspiapi.h>
You should also probably check your defines for win2k minimal support:
WINVER=0x0500;WIN32_WINNT=0x0500;_WIN32_IE=0x0600

Sorry, I have no build-environment for Win2000, so I cannot check these hints.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #12 on: September 26, 2007, 08:20:41 am »
afaik mingw doesn't support this yet, we would have to build two binaries for win2k and >= winxp

imo that isn't worth it, we are not supporting 7 years old solaris or linux, too

if someone is sending working patches we will of couse commit them.

zark

  • Guest
Re: Windows 2K testers needed
« Reply #13 on: October 12, 2007, 10:18:21 pm »
Hi,

I have made a patch to make UFO 2.2 work under win2K (and possibly previous windows). (I have used the code that mattn started to write for net.c). Could you integrate it in SVN ?

It should allow to keep one binary version for all windows. The impacts on Unix binary will be null and almost inexistent for windows XP/vista (if those versions are detected, the "usual" network functions are used).

I have changed the following files:
win_main.c : built from the revision 11974
net.c : built from revision 12318

Changes:

src\ports\windows\win_main.c : small changes : I have created a new qboolean s_win2k to distinguish winXP and win2K since XP has the new network APIs. CVAR sys_os is fed accordingly.


src\common\net.c : I'm using pre processor instruction on _WIN32 (no impact on UNIX). For _win32 build, code checks the s_winNNN qboolean from win_main.c. Under winXP and vista it loads ws2_32.dll (first time it's needed) and calls the standard function (freeaddrinfo, getaddrinfo and getnameinfo). Otherwise it uses specific code (I didn't implement the full IPV6 functions but it's quite enough for IPV4)

That allows to keep one binary for all windows. It should have no impact compared to previous versions on winXP or vista (although it's not fully equivalent to the previous static DLL link)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Windows 2K testers needed
« Reply #14 on: October 12, 2007, 10:27:39 pm »
where is that code located?