| Ticket UUID: | 89960459068004cb4e0f0ccf50f985bf650e3671 | |||
| Title: | tcllib 1.21 compilation fails on Windows and MSVC | |||
| Type: | Bug | Version: | 1.21 | |
| Submitter: | isleong | Created on: | 2023-08-24 20:13:02 | |
| Subsystem: | (unused) | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-11-21 09:18:22 | |
| Resolution: | Duplicate | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-21 09:18:22 | |||
| Description: |
When compiling tcllib 1.21 (latest release) on Windows, the error below occurs. Seems MSVC (using VS 2019) regards the newly added following functions as redefined which it does not like. Files left in C:/build/work/tcllib/.critcl FAILURES 1 FAILED: ./modules/sha1/sha256c.tcl FAILED FAILED Tue Aug 22 21:12:18 -0000 2023 - C:/build/work/tcllib/modules/sha1/sha256c.tcl FAILED FAILED cl FAILED -nologo FAILED -c FAILED -DTCL_BYTE_ORDER=1234 FAILED -DBUILD_sha256c FAILED -DUSE_THREAD_ALLOC=1 FAILED -D_REENTRANT=1 FAILED -D_THREAD_SAFE=1 FAILED -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 FAILED -DHAVE_READDIR_R=1 FAILED -DTCL_THREADS=1 FAILED -DUSE_TCL_STUBS FAILED -IC:/build/work/tcllib/.critcl/tcl8.4 FAILED -IC:/build/work/tcllib/.critcl FAILED -IC:/build/work/tcllib/modules/sha1 FAILED -FoC:/build/work/tcllib/.critcl/v3118_00000000000000000000000000000142_pic.obj FAILED C:/build/work/tcllib/.critcl/v3118_00000000000000000000000000000142.c FAILED -W3 FAILED -O2 FAILED -MD FAILED -GS FAILED -fp:strict FAILED -DNDEBUG FAILED FAILED v3118_00000000000000000000000000000142.c FAILED C:/build/work/tcllib/.critcl\sha256c/sha256cDecls.h(40): error C2375: 'SHA256Init': redefinition; different linkage FAILED c:\build\work\tcllib\.critcl\sha256c\sha256.h(78): note: see declaration of 'SHA256Init' FAILED C:/build/work/tcllib/.critcl\sha256c/sha256cDecls.h(42): error C2375: 'SHA256Update': redefinition; different linkage FAILED c:\build\work\tcllib\.critcl\sha256c\sha256.h(79): note: see declaration of 'SHA256Update' FAILED C:/build/work/tcllib/.critcl\sha256c/sha256cDecls.h(45): error C2375: 'SHA256Final': redefinition; different linkage FAILED c:\build\work\tcllib\.critcl\sha256c\sha256.h(80): note: see declaration of 'SHA256Final' FAILED FAILED ERROR while compiling code in C:/build/work/tcllib/modules/sha1/sha256c.tcl: FAILED child process exited abnormally FAILED | |||
| User Comments: |
serhiy.storchaka added on 2026-11-21 09:18:22:
Duplicate of [935ac3b65b]: the same C2375 errors. Fixed on trunk by [d69b5f3fd3] (merged in [cc4d362b78]); not in a release yet. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki