Skip to content
Tcl Source Code History Of Ticket f8608fc4209e5949
Login

History Of Ticket f8608fc4209e5949

Artifacts Associated With Ticket f8608fc4209e5949

  1. Ticket change [365be82e69] (rid 194701) by bll on 2021-06-09 16:15:00:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      bll-g7:bll$ ./linux/64/tcl/bin/tclsh
      application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
          /home/bll/t/localB/lib/tcl8.7 {} /home/bll/s/ballroomdj/linux/64/tcl/lib/tcl8.7 /home/bll/s/ballroomdj/linux/64/lib/tcl8.7 /home/bll/s/ballroomdj/linux/64/tcl/library /home/bll/s/ballroomdj/linux/64/library /home/bll/s/ballroomdj/linux/64/tcl8.7/library /home/bll/s/ballroomdj/linux/64/tcl8.7a5/library /home/bll/s/ballroomdj/linux/tcl8.7a5/library
      
      
      
      This probably means that Tcl wasn't installed properly.
      
      % exit
      
      bll-g7:bll$ unzip -v linux/64/tcl/lib/libtcl8.7.so | grep init.tcl
         23498  Defl:N     7645  68% 2021-06-07 08:40 a8bd027e  tcl_library/init.tcl
      bll-g7:bll$
      
    5. foundin initialized to: "8.7a5rc0"
    6. is_private initialized to: "0"
    7. login: "bll"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "bll"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to: "8.7 : linux : unable to locate init.tcl"
    15. type initialized to: "Bug"
  2. Ticket change [0c8c5edaaf] (rid 194706) by bll on 2021-06-09 17:35:57:

    1. icomment:
      I should mention that this installation is relocated.
      
    2. login: "bll"
    3. mimetype: "text/plain"
  3. Ticket change [8d5d8d1466] (rid 194707) by jan.nijtmans on 2021-06-09 19:07:39:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      I'm not sure something can be done here, since it's not designed to be easily relocatable. But I'll give it a try.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  4. Ticket change [8cc68f6e4f] (rid 194709) by bll on 2021-06-09 19:19:06:

    1. icomment:
      Is Tcl able to determine where the shared library is located?
      
      If relocation is not possible, I will need to know how to start Tcl such
      that it can find the shared library.  TCLLIBPATH?
      
    2. login: "bll"
    3. mimetype: "text/plain"
  5. Ticket change [025ed855bc] (rid 194721) by bll on 2021-06-10 13:29:35:

    1. icomment:
      I wrote a binary editor to fix the paths and adjusted some things in the
      build so that this will be possible.
      
      I really dislike hard-coded paths.
      
    2. login: "bll"
    3. mimetype: "text/plain"
  6. Ticket change [228e849c97] (rid 194722) by bll on 2021-06-10 13:45:52:

    1. icomment:
      But I can't use a binary editor written in tcl, as the relocated tcl
      can't run.  Sigh.
      
    2. login: "bll"
    3. mimetype: "text/plain"
  7. Ticket change [4a35fa2988] (rid 194723) by jan.nijtmans on 2021-06-10 13:50:59:

    1. icomment:
      The code trying to locate the shared library where init.tcl is going to be found is here:
      
      [https://core.tcl-lang.org/tcl/file?udc=1&ln=3911-3913&ci=tip&name=generic%2FtclZipfs.c]
      
      You can see there is only one place being searched (on UNIX):
          CFG_RUNTIME_LIBDIR "/" CFG_RUNTIME_DLLFILE
      
      This won't work if the shared library is not in CFG_RUNTIME_LIBDIR. This could be elaborated more, e.g. by looping over all paths in env(LD_LIBRARY_PATH).
      
      For now, make sure that CFG_RUNTIME_LIBDIR during build is the actual directory where the shared library will be installed eventually.
      
      I changed this issue into an RFE, since - actually - it's not a bug. I agree that the current search is rather limited, so it should be extended.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. type changed to: "RFE"
  8. Ticket change [ff030c641b] (rid 194724) by jan.nijtmans on 2021-06-10 14:11:26:

    1. icomment:
      Even better: on Linux there is the function dladdr() which can locate the absolute path of the shared library .... That's much better than a hardcoded CFG_RUNTIME_LIBDIR!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  9. Ticket change [700da03e70] (rid 194728) by jan.nijtmans on 2021-06-10 15:01:32:

    1. icomment:
      Highly experimental solution [e31d05180160785a|here]
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  10. Ticket change [ee937606ce] (rid 194729) by bll on 2021-06-10 15:10:07:

    1. icomment:
      I got my work-arounds and binary edits all working.
      My package can be installed anywhere again.
      
      I think the use of dladdr() would be great, it would allow 
      better relocatability again.
      
      An [info tclzipfs] to display the path to the tcl zipfs would be nice.
      
      A command line option or environment variable 
      to set the location of the file containing the tcl zipfs
      would be nice.  This would allow separation of the executable
      and the tcl zipfs file if wanted.
      
      re-titled the RFE.
      
    2. login: "bll"
    3. mimetype: "text/plain"
    4. title changed to: "RFE: linux : dynamic location of the tcl zipfs"
  11. Ticket change [8c11240b16] (rid 194869) by jan.nijtmans on 2021-06-18 19:51:15:

    1. closedate changed to: "2459384.3272674"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Fixed in core-8-branch"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  12. Ticket change [dc872067b9] (rid 194875) by fvogel on 2021-06-19 10:14:36:

    1. closer changed to: "nobody"
    2. icomment:
      Reopening. The fix prevents the build on Windows with MSVC or gcc:
      
      [https://github.com/tcltk/tcl/runs/2863899941?check_suite_focus=true].
      
      [https://github.com/tcltk/tcl/runs/2863900391?check_suite_focus=true]
      
      Confirmed on my setup (with MSVC) too.
      
    3. login: "fvogel"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  13. Ticket change [19c1a6a162] (rid 194905) by jan.nijtmans on 2021-06-19 23:24:53:

    1. closedate changed to: "2459385.47562458"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Windows build fixed now. Thanks!"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  14. Ticket change [bfefe22043] (rid 194918) by fvogel on 2021-06-20 07:33:40:

    1. closedate changed to: "2459385.81505384"
    2. closer changed to: "fvogel"
    3. icomment: "Confirmed, thanks !"
    4. login: "fvogel"
    5. mimetype: "text/plain"