Skip to content
Tcl Source Code History Of Ticket 17ffc49790
Login

History Of Ticket 17ffc49790

Artifacts Associated With Ticket 17ffc49790

  1. Ticket change [3f295cb817] (rid 245956) by griffin on 2025-09-25 21:02:03:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      Building Tcl 9.0.2 release, complete with pkg complement, fails to build packages when using: 
          "configure --srdir=<path> ..."
      
      The configure srcdir value is not propagated to the pkgs components.
      
      To reproduce:
        tar xzf tcl9.0.2-src.tar.gz
        mkdir empty
        cd empty
      
        ../tcl9.0.2/unix/configuration --srcdir=../tcl9.0.2 --prefix=../foobar
      
        make install
      .
      . (long transcript)
      .
      checking whether byte ordering is bigendian... no
      configure: error: could not find source file 'itcl2TclOO.c'
      make: *** [Makefile:2048: configure-packages] Error 1
      
    5. is_private initialized to: "0"
    6. login: "griffin"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "21780c4e03cc5884af69addd6efc1b71c50d9818"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "griffin"
    13. subsystem initialized to: "53. Configuration and Build Tools"
    14. type initialized to: "Bug"
  2. Add attachment "sdmakelog.tgz" [6f80a813f2] (rid 245958) by griffin on 2025-09-25 21:03:11.

  3. Ticket change [3365abc7db] (rid 245965) by jan.nijtmans on 2025-09-26 12:14:36:

    1. icomment:
      I think srcdir should always be an absolute path. That should be documented somewhere (if it isn't yet)
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [bb4e633c4e] (rid 246066) by griffin on 2025-09-27 01:24:16:

    1. icomment:
      Good point Jan, but I don't believe that is the problem.
      
      The problem appears to be in Tcl. The Makefile target configure-packages has a literal relative path:
      
      ... configure ... --with-tcl=../..  ...
      
      When replaced with an absolute path, the problem is resolved.
      This code is in the Makefile.in file, so nothing passed in to configure is going to change it.
      
      It would be good if someone more familiar with this area could fashion a fix, or supply considerations for fashioning a fix.
      
       can I add [file normalize ../..] here?  :)
      
    2. login: "griffin"
    3. mimetype: "text/plain"
  5. Ticket change [409cdb5f43] (rid 246067) by apnadkarni on 2025-09-27 02:15:06:

    1. icomment:
      Just to note, there is a comment just above as to why absolute paths are not used.
      
      ```
      # If PKG_DIR is changed to a different relative depth to the build dir, need
      # to adapt the ../.. relative paths below and at the top of configure.ac (we
      # cannot use absolute paths due to issues in nested configure when path to
      # build dir contains spaces).
      ```
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  6. Ticket change [4dfd0bebcf] (rid 246911) by griffin on 2025-10-09 20:31:00:

    1. icomment:
      In this scenario, the source directory is not the same as the build directory. That is the purpose of --srcdir.
      
      I believe --srcdir= needs to be an absolute path.
      It's not clear to me what --with-tcl needs to be.
      One problem is that --srcdir is not passed down to the pkgs' configure. The pkgs need this too.
      
      Isn't --with-tcl redundant or conflicting with --src-dir?
      
    2. login: "griffin"
    3. mimetype: "text/plain"
    4. title changed to:
      Building Tcl 9.0.2 release fails when using "configure --srcdir=<path> ..."
      
  7. Ticket change [62eed7018c] (rid 259386) by serhiy.storchaka on 2026-10-20 11:56:31:

    1. foundin changed to: "9.1.0"
    2. icomment:
      Reproduced with an out-of-tree build of the current main with Thread and Itcl in pkgs/: <tt>.../unix/configure --srcdir=.../unix</tt>, then <tt>make</tt> fails in configure-packages with "cannot find sources () in .../unix". The relative <tt>--with-tcl=../..</tt> is not the problem: Tcl passes its own <tt>--srcdir</tt> on to each package's configure (in <tt>PKG_CFG_ARGS</tt>), so the package looks for its sources in Tcl's unix directory. The packages do not need it, since their configure scripts are run by absolute path.
      
      Proposed fix in branch [/timeline?r=configure-pkgs-no-srcdir|configure-pkgs-no-srcdir]: do not pass <tt>--srcdir</tt> to the packages, in unix/configure.ac and also in win/configure.ac, which had the same problem (there the package configure failed silently). With it, out-of-tree builds with a relative or absolute <tt>--srcdir</tt>, or without it, build Thread and Itcl, and <tt>make install</tt> installs them; also checked with a MinGW cross build.
      
      Note that <tt>--srcdir</tt> must point to the unix (or win) directory, not to the top of the source tree as in the original report.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  8. Ticket change [dec09a84d0] (rid 260690) by jan.nijtmans on 2026-10-27 14:44:39:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461341.1143441205"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed in [9ac77da0c6|trunk], core-9-0-branch and core-8-6-branch
      
      Many thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"