Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4f087c86b279ba5768afc065582c69d0d0065c53
Ticket: 1699183fffffffffffffffffffffffffffffffff
Build with symbols fails on Win32 in tclCompCmds.c
User & Date: twylite on 2007-04-12 12:24:08
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    A Win32 build under MS Visual C 6 fails when using OPTS="symbols".  
    
    The problem is in tclCompCmds.c (line 1443) and was introduced to CVS on 2007/04/11.
    
    nmake /f makefile.vc OPTS="symbols,threads"
    ...
    cl -nologo -c  -QI0f -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -Fp.\Debug\tcl_ThreadedDynamic\ -W3 -Z7 -WX  -GZ -MDd -I"..\win" -I"..\generic" -I"..\libtommath"  -DTCL_PIPE_DLL=\"tclpip85g.dll\" -DTCL_TOMMATH  -DMP_PREC=4 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DTCL_THREADS=1 -DTCL_CFG_DEBUG -DBUILD_tcl -Fo.\Debug\tcl_ThreadedDynamic\ @C:\DOCUME~1\TREVOR~1.PRI\LOCALS~1\Temp\nma02380.
    tclCompCmds.c
    ..\generic\tclCompCmds.c(1443) : error C2220: warning treated as error - no object file generated
    ..\generic\tclCompCmds.c(1443) : warning C4090: 'function' : different 'const' qualifiers
    ..\generic\tclCompCmds.c(1443) : warning C4022: 'memset' : pointer mismatch for actual parameter 1
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    
    This only appears in the symbols build because of the -WX flag (not present in Release build) which turns warnings into errors.
    
    Suggested fix: cast varvList to a (void*):
    
        memset((void*)varvList, 0, numLists * sizeof(const char **));
    
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "twylite"
  10. subsystem changed to: "None"
  11. title changed to: "Build with symbols fails on Win32 in tclCompCmds.c"
  12. type changed to: "Bug"