|
2010-06-28
| ||
| 15:50 | • Closed ticket [3019634fff]: errno.h and tclWinPort.h have conflicting defintiion... artifact: 74da57d88b user: nijtmans | |
|
2010-06-27
| ||
| 12:59 | • Ticket [3019634fff]: 4 changes artifact: 6861decc37 user: glawlor | |
|
2010-06-24
| ||
| 21:27 | • Ticket [3019634fff]: 4 changes artifact: 051269c712 user: nijtmans | |
| 21:15 | • Ticket [3019634fff]: 4 changes artifact: 79a2723e91 user: glawlor | |
| 19:40 | • Ticket [3019634fff]: 1 change artifact: 9906840f52 user: nijtmans | |
| 19:40 | • Ticket [3019634fff]: 4 changes artifact: e464a060d8 user: nijtmans | |
| 19:37 | • Ticket [3019634fff]: 4 changes artifact: 799d47825a user: nijtmans | |
| 19:37 | • Add attachment win.patch to ticket [3019634fff] artifact: c07dd8fb4d user: nijtmans | |
| 19:35 | • Ticket [3019634fff] errno.h and tclWinPort.h have conflicting defintiions. s... artifact: efca199410 user: nijtmans | |
| 16:01 | • Ticket [3019634fff]: 4 changes artifact: 40cbadd40d user: dkf | |
| 13:16 | • Ticket [3019634fff]: 4 changes artifact: 8160c197a8 user: glawlor | |
|
2010-06-23
| ||
| 21:32 | • Ticket [3019634fff]: 4 changes artifact: 490c5a63a9 user: nijtmans | |
| 21:32 | • Ticket [3019634fff]: 4 changes artifact: 104f7a6c0c user: nijtmans | |
| 16:33 | • Ticket [3019634fff]: 4 changes artifact: 573192f785 user: dkf | |
| 16:32 | • Ticket [3019634fff]: 3 changes artifact: f5e09af3f5 user: dkf | |
|
2010-06-22
| ||
| 21:08 | • Ticket [3019634fff]: 4 changes artifact: e5e8f77a39 user: glawlor | |
| 21:08 | • Add attachment tclWinPort.h.patch to ticket [3019634fffffffff|3019634ff... artifact: ffc1a33471 user: glawlor | |
| 14:08 | • New ticket [3019634fff] errno.h and tclWinPort.h have conflicting defintiions.</... artifact: 9f55b0e8e2 user: glawlor | |
errno.h and tclWinPort.h have conflicting defintiions.
Closed / Fixed3019634fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-06-22 14:08:14
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
glawlorplain2010-06-22 21:08:14
File Added - 378044: tclWinPort.h.patch
dkf Ticket [3019634fff]: 3 changes
[History diff]2010-06-23 16:32:57
dkfplain2010-06-23 16:33:40
This ought to be sorted.
nijtmansplain2010-06-23 21:32:08
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!
nijtmansplain2010-06-23 21:32:42
File Added - 378152: win.patch
glawlorplain2010-06-24 13:16:27
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
dkfplain2010-06-24 16:01:09
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).
nijtmansplain2010-06-24 19:35:35
File Deleted - 378152:
nijtmansplain2010-06-24 19:37:20
File Added - 378260: win.patch
nijtmansplain2010-06-24 19:40:07
.... 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?
nijtmans Ticket [3019634fff]: 1 change
[History diff]2010-06-24 19:40:11
glawlorplain2010-06-24 21:15:59
The new patch is good for vc+2010. There's nothing problematic with the definitions now that I can see . Thanks!
nijtmansplain2010-06-24 21:27:10
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.
glawlorplain2010-06-27 12:59:22
I've just tested core-8-5-branch and it's fine too with your patch to tclPosixStr.c Thanks
nijtmansplain2010-06-28 15:50:43
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.
Log in (anonymous is fine) to add a comment.
Attachments:
- win.patch [download] added by nijtmans on 2010-06-24 19:37:20. [details]
- tclWinPort.h.patch [download] added by glawlor on 2010-06-22 21:08:14. [details]