Artifacts Associated With Ticket 1905560
Ticket change [10b19a47a3] (rid 95002) by kennykb on 2008-03-02 03:52:26:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Using MSVC2005, running 'configure --enable-symbols', 'make', and 'make test', I get: cat.c ../win/cat.c(26) : error C2220: warning treated as error - no 'object' file generated ../win/cat.c(26) : warning C4996: 'read': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details. C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\io.h(329) : see declaration of 'read' ../win/cat.c(30) : warning C4996: 'write': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details. C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\io.h(334) : see declaration of 'write' ../win/cat.c(33) : warning C4996: 'write': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details. C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\io.h(334) : see declaration of 'write' make: *** [cat32.obj] Error 2 If I edit the generated Makefile manually and include -D_CRT_NONSTDC_NO_DEPRECATE, the problem goes away. This definition is safe for all versions of MSVC, not just 2k5. - foundin initialized to: "obsolete: 8.5.2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kennykb"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "--enable-symbols 'make test' fails on MSVC2005"
- type initialized to: "Bug"
Ticket change [840d3bf1e3] (rid 259678) by serhiy.storchaka on 2026-10-21 09:06:36:
- icomment:
Fixed in 8.5.3 by [8d5cc700eb]: win/tcl.m4 defines _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE for MSVC (still so in 8.6 and 9.x), and win/cat.c now uses _read/_write. Closing.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [f39b8b2796] (rid 259980) by serhiy.storchaka on 2026-10-22 17:19:29:
- closedate changed to: "2461334.879585625"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"