Skip to content
Tcl Source Code History Of Ticket 3280043
Login

History Of Ticket 3280043

Artifacts Associated With Ticket 3280043

  1. Ticket change [8219c894aa] (rid 117167) by stankok on 2011-04-08 00:24:24:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. 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>
      > 
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "stankok"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "win2k: unresolved DLL imports"
    12. type initialized to: "Bug"
  2. Add attachment "win2k_getnameinfo_linking_issue.png" [89b5812b5d] (rid 127274) by stankok on 2011-04-08 07:24:24.

  3. Ticket change [e6977891f1] (rid 104315) by stankok on 2011-04-08 07:24:25:

    1. icomment:
      
      
      File Added - 407640: win2k_getnameinfo_linking_issue.png
      
      
      
    2. login: "stankok"
    3. mimetype: "text/plain"
    4. username: "stankok"
  4. Ticket change [b3be4a81e2] (rid 124905) by nijtmans on 2011-04-08 13:32:08:

    1. assignee changed to: "nijtmans"
    2. closedate changed to: "2011-04-08T06:32:08"
    3. closer changed to: "nijtmans"
    4. 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.
      
      
    5. login: "nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "nijtmans"