| 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
|