Artifacts Associated With Ticket 3280043
Ticket change [8219c894aa] (rid 117167) by stankok on 2011-04-08 00:24:24:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Functions getaddrinfo(), getnameinfo() and freeaddrinfo() were introduced in winXP, and are not present on win2k. Tcl relies on these functions in files generic/tclIOSock.c and generic/tclIOSock.c, resulting in unresolved imports from ws2_32.dll (see screenshot). The fix is to include header "wspiapi.h". Read section titled "Support for XXX on earlier versions of Windows" at the bottom of articles: getaddrinfo: http://msdn.microsoft.com/en-us/library/ms738520%28v=vs.85%29.aspx getnameinfo: http://msdn.microsoft.com/en-us/library/ms738532%28v=vs.85%29.aspx freeaddrinfo: http://msdn.microsoft.com/en-us/library/ms737931%28v=vs.85%29.aspx Patch is trivial, but here it is: diff -r orig/generic/tclIOSock.c src/generic/tclIOSock.c 15a16,19 > #if defined(_WIN32) > #include <wspiapi.h> > #endif > diff -r orig/win/tclWinSock.c src/win/tclWinSock.c 51a52,53 > #include <wspiapi.h> >
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "stankok"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "win2k: unresolved DLL imports"
- type initialized to: "Bug"
Add attachment "win2k_getnameinfo_linking_issue.png" [89b5812b5d] (rid 127274) by stankok on 2011-04-08 07:24:24.
Ticket change [e6977891f1] (rid 104315) by stankok on 2011-04-08 07:24:25:
- icomment:
File Added - 407640: win2k_getnameinfo_linking_issue.png
- login: "stankok"
- mimetype: "text/plain"
- username: "stankok"
- icomment:
Ticket change [b3be4a81e2] (rid 124905) by nijtmans on 2011-04-08 13:32:08:
- assignee changed to: "nijtmans"
- closedate changed to: "2011-04-08T06:32:08"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Fixed in trunk Moved the #include to win/tclWinPort.h, and added a test to configure.in whether this include file actually esists.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"