Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6b89865dcc01c87448441a31be7e70c461107fcc65108e834603ce49589b3ea3
Ticket: ad08bca6b16d069fb303d20f7feebd0952eff38d
Building sqlite3 for tcl8 redefines typedef
User & Date: anonymous on 2026-04-13 01:47:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    tcl.h does this:
    
    #if TCL_MAJOR_VERSION < 9
    # ifndef Tcl_Size
        typedef int Tcl_Size;
    # endif
    ...
    
    tclsqlite3.c does this:
    
    #if TCL_MAJOR_VERSION==9
    # define CONST const
    #elif !defined(Tcl_Size)
      typedef int Tcl_Size;
    #endif
    
    Since Tcl_Size is never defined as a macro, the #ifndef guards don't help, and pre-C11 compilers error like so:
    
    /opt/bblocal/var/buildworker/base/build/vendor/tcl/pkgs/sqlite3.51.0/generic/tclsqlite3.c:56:15: error: redefinition of typedef 'Tcl_Size' is invalid in C [-Wtypedef-redefinition]
      typedef int Tcl_Size;
                  ^
    In file included from /opt/bblocal/var/buildworker/base/build/vendor/tcl/pkgs/sqlite3.51.0/generic/tclsqlite3.c:47:
    /opt/bblocal/var/buildworker/base/build/vendor/tcl/generic/tcl.h:326:17: note: previous definition is here
        typedef int Tcl_Size;
                    ^
    
  5. foundin changed to: "9.0.3"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "81. Bundled Packages"
  14. title changed to: "Building sqlite3 for tcl8 redefines typedef"
  15. type changed to: "Bug"