Skip to content
Tcl Source Code History Of Ticket 3019634
Login

History Of Ticket 3019634

Artifacts Associated With Ticket 3019634

  1. Ticket change [9f55b0e8e2] (rid 96627) by glawlor on 2010-06-22 14:08:14:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      MS VC++ 2010 errno.h and tclWinPort.h have conflicting defintiions.
      
      tclWinPort.h:
      
      ln144:  #   define ESOCKTNOSUPPORT 121
      ln150:  #   define EPFNOSUPPORT123
      
      errno.h
      
      ln 113:  #define ENOLINK         121
      ln 115:  #define ENOPROTOOPT     123
      
    4. foundin initialized to: "None"
    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: "glawlor"
    10. subsystem initialized to: "None"
    11. title initialized to:
      errno.h and tclWinPort.h have conflicting defintiions.
      
    12. type initialized to: "Patch"
  2. Ticket change [e5e8f77a39] (rid 104210) by glawlor on 2010-06-22 21:08:14:

    1. icomment:
      
      
      File Added - 378044: tclWinPort.h.patch
      
      
      
    2. login: "glawlor"
    3. mimetype: "text/plain"
    4. username: "glawlor"
  3. Add attachment "tclWinPort.h.patch" [ffc1a33471] (rid 108813) by glawlor on 2010-06-22 21:08:14.

  4. Ticket change [f5e09af3f5] (rid 130191) by dkf on 2010-06-23 16:32:57:

    1. assignee changed to: "nijtmans"
    2. priority changed to: "9 Immediate"
    3. subsystem changed to: "52. Portability Support"
  5. Ticket change [573192f785] (rid 94441) by dkf on 2010-06-23 16:33:40:

    1. icomment:
      This ought to be sorted.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [104f7a6c0c] (rid 94951) by nijtmans on 2010-06-23 21:32:08:

    1. icomment:
      There is more to it:
      - Nowadays we have cygwin and mingw, it is useful that
        the chosen numbers match with cygwin/mingw as
        much as possible.
      So, I looked at it, and came to the following patch.
      
      I don't have VC++ 2010, please check if this patch
      works there! (sorting not done yet, but will do....)
      Any remarks welcome!
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  7. Ticket change [490c5a63a9] (rid 100002) by nijtmans on 2010-06-23 21:32:42:

    1. icomment:
      
      
      File Added - 378152: win.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  8. Ticket change [8160c197a8] (rid 117020) by glawlor on 2010-06-24 13:16:27:

    1. icomment:
      Tried the new patch - got some collisions in tclPosixStr.c now:
      
      \tcl\win\..\generic\tclPosixStr.c(242) : error C2196: case value '117' already used
      \tcl\win\..\generic\tclPosixStr.c(341) : error C2196: case value '132' already used
      \tcl\win\..\generic\tclPosixStr.c(404) : error C2196: case value '110' already used
      \tcl\win\..\generic\tclPosixStr.c(407) : error C2196: case value '124' already used
      \tcl\win\..\generic\tclPosixStr.c(431) : error C2196: case value '129' already used
      \tcl\win\..\generic\tclPosixStr.c(690) : error C2196: case value '117' already used
      \tcl\win\..\generic\tclPosixStr.c(789) : error C2196: case value '132' already used
      \tcl\win\..\generic\tclPosixStr.c(852) : error C2196: case value '110' already used
      \tcl\win\..\generic\tclPosixStr.c(855) : error C2196: case value '124' already used
      \tcl\win\..\generic\tclPosixStr.c(879) : error C2196: case value '129' already used
      NMAKE : fatal error U1077: 
      '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' : return code '0x2'
      Stop.
      
      Here's a snippet of the posix defs from VC++2010 errno.h:
      
      /* POSIX SUPPLEMENT */
      #define EADDRINUSE      100
      #define EADDRNOTAVAIL   101
      #define EAFNOSUPPORT    102
      #define EALREADY        103
      #define EBADMSG         104
      #define ECANCELED       105
      #define ECONNABORTED    106
      #define ECONNREFUSED    107
      #define ECONNRESET      108
      #define EDESTADDRREQ    109
      #define EHOSTUNREACH    110
      #define EIDRM           111
      #define EINPROGRESS     112
      #define EISCONN         113
      #define ELOOP           114
      #define EMSGSIZE        115
      #define ENETDOWN        116
      #define ENETRESET       117
      #define ENETUNREACH     118
      #define ENOBUFS         119
      #define ENODATA         120
      #define ENOLINK         121
      #define ENOMSG          122
      #define ENOPROTOOPT     123
      #define ENOSR           124
      #define ENOSTR          125
      #define ENOTCONN        126
      #define ENOTRECOVERABLE 127
      #define ENOTSOCK        128
      #define ENOTSUP         129
      #define EOPNOTSUPP      130
      #define EOTHER          131
      #define EOVERFLOW       132
      #define EOWNERDEAD      133
      #define EPROTO          134
      #define EPROTONOSUPPORT 135
      #define EPROTOTYPE      136
      #define ETIME           137
      #define ETIMEDOUT       138
      #define ETXTBSY         139
      #define EWOULDBLOCK     140
      
      
    2. login: "glawlor"
    3. mimetype: "text/plain"
    4. username: "glawlor"
  9. Ticket change [40cbadd40d] (rid 116073) by dkf on 2010-06-24 16:01:09:

    1. icomment:
      Since we're talking int values, why not just add a million or something? We truly don't need them to be contiguous (nor do we need them to fit in in a char).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Ticket change [efca199410] (rid 109061) by nijtmans on 2010-06-24 19:35:35:

    1. icomment:
      
      
      File Deleted - 378152: 
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  11. Ticket change [799d47825a] (rid 90157) by nijtmans on 2010-06-24 19:37:20:

    1. icomment:
      
      
      File Added - 378260: win.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  12. Add attachment "win.patch" [c07dd8fb4d] (rid 102414) by nijtmans on 2010-06-24 19:37:20.

  13. Ticket change [e464a060d8] (rid 87939) by nijtmans on 2010-06-24 19:40:07:

    1. icomment:
      .... or simply use the WSA equivalent.  New patch attached.
      
      Question to glawlor: Do the definitions of ENOTEMPTY,
      EREMOTE and EPFNOSUPPORT - which I got
      from cygwin - comflict with anything problematic,
      or should I better use the WSA equivalent there too?
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  14. Ticket change [9906840f52] (rid 110709) by nijtmans on 2010-06-24 19:40:11:

    1. resolution changed to: "Accepted"
  15. Ticket change [79a2723e91] (rid 90164) by glawlor on 2010-06-24 21:15:59:

    1. icomment:
      The new patch is good for vc+2010. There's nothing problematic with the definitions now that I can see . 
      
      Thanks!
      
      
    2. login: "glawlor"
    3. mimetype: "text/plain"
    4. username: "glawlor"
  16. Ticket change [051269c712] (rid 88989) by nijtmans on 2010-06-24 21:27:10:

    1. icomment:
      Great, thanks for testing!
      
      For Tcl 8.5, change of errno values is not
      something expected in a patch release.
      Therefore, I resolved the conflict there
      in a different way. I would appreciate
      it, if you could test the top of the
      core-8.5 branch as well.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  17. Ticket change [6861decc37] (rid 103055) by glawlor on 2010-06-27 12:59:22:

    1. icomment:
      I've just tested core-8-5-branch and it's fine too with your patch to tclPosixStr.c
      
      Thanks
      
      
    2. login: "glawlor"
    3. mimetype: "text/plain"
    4. username: "glawlor"
  18. Ticket change [74da57d88b] (rid 105287) by nijtmans on 2010-06-28 15:50:43:

    1. closedate changed to: "2010-06-28T08:50:43"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Thanks to you, glawlor, for bringing this to my attention!
      Now backported to Tcl 8.4 as well.
      
      While on it, discovered various typing mistakes in the message,
      and a bug in the last line:
          return strerror(errno);
      should have been:
          return strerror(err);
      Fixed that as well.
      
      In trunk, added messages for ECANCELED,
      ENOTRECOVERABLE, EOTHER and EOWNERDEAD,
      which were still missing.
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"