Skip to content
Tcl Source Code History Of Ticket a77029cdea236d81
Login

History Of Ticket a77029cdea236d81

Artifacts Associated With Ticket a77029cdea236d81

  1. Ticket change [b6cb2d369b] (rid 237826) by oehhar on 2025-02-25 11:01:31:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      I have a binary extension which is build for 9.0.1 and 8.6.
      [https://sourceforge.net/projects/zint/], see backend_tcl\win subfolder
      
      The pckIndex.tcl file is build identical for both cases, with the difference, that the TCL 9 build does not put the "t" suffix to the DLL.
      
      <verbatim>
      if {[package vsatisfies [package provide Tcl] 9.0-]} { 
      package ifneeded zint 2.15.0 [list load [file join $dir tcl9zint2150.dll]] 
      } else { 
      package ifneeded zint 2.15.0 [list load [file join $dir zint2150.dll]] 
      } 
      </verbatim>
      
      The "t" is missing after "zint2150".
      
      If I install in the same folder, I get an universal package (TCl 8.6 and 9), but this glitch does not allow to use the 8.6 version.
      
      The makefile.vc is as follows:
      <verbatim>
      # The name of the package
      PROJECT = zint
      PROJECT_REQUIRES_TK = 1
      
      # Generic source is in root build folder (1 up)
      GENERICDIR = ..
      # Access the generic backend files
      BACKEND_DIR = $(ROOT)\..\backend
      
      !include "rules-ext.vc"
      
      # Define the object files and resource file that make up the extension.
      # Note the resource file does not makes sense if doing a static library build
      # hence it is under that condition. TMP_DIR is the output directory
      # defined by rules for object files.
      PRJ_OBJS = \
      	$(TMP_DIR)\zint.obj \
      	$(TMP_DIR)\2of5.obj \
      	$(TMP_DIR)\2of5inter.obj \
      	$(TMP_DIR)\2of5inter_based.obj \
      	$(TMP_DIR)\auspost.obj \
      	$(TMP_DIR)\aztec.obj \
      	$(TMP_DIR)\bc412.obj \
      	$(TMP_DIR)\bmp.obj \
      	$(TMP_DIR)\channel.obj \
      	$(TMP_DIR)\codabar.obj \
      	$(TMP_DIR)\codablock.obj \
      	$(TMP_DIR)\code11.obj \
      	$(TMP_DIR)\code128.obj \
      	$(TMP_DIR)\code128_based.obj \
      	$(TMP_DIR)\code16k.obj \
      	$(TMP_DIR)\code1.obj \
      	$(TMP_DIR)\code49.obj \
      	$(TMP_DIR)\code.obj \
      	$(TMP_DIR)\common.obj \
      	$(TMP_DIR)\composite.obj \
      	$(TMP_DIR)\dllversion.obj \
      	$(TMP_DIR)\dmatrix.obj \
      	$(TMP_DIR)\dotcode.obj \
      	$(TMP_DIR)\dxfilmedge.obj \
      	$(TMP_DIR)\eci.obj \
      	$(TMP_DIR)\emf.obj \
      	$(TMP_DIR)\filemem.obj \
      	$(TMP_DIR)\general_field.obj \
      	$(TMP_DIR)\gif.obj \
      	$(TMP_DIR)\gridmtx.obj \
      	$(TMP_DIR)\gs1.obj \
      	$(TMP_DIR)\hanxin.obj \
      	$(TMP_DIR)\imail.obj \
      	$(TMP_DIR)\large.obj \
      	$(TMP_DIR)\library.obj \
      	$(TMP_DIR)\mailmark.obj \
      	$(TMP_DIR)\maxicode.obj \
      	$(TMP_DIR)\medical.obj \
      	$(TMP_DIR)\output.obj \
      	$(TMP_DIR)\pcx.obj \
      	$(TMP_DIR)\pdf417.obj \
      	$(TMP_DIR)\plessey.obj \
      	$(TMP_DIR)\png.obj \
      	$(TMP_DIR)\postal.obj \
      	$(TMP_DIR)\ps.obj \
      	$(TMP_DIR)\qr.obj \
      	$(TMP_DIR)\raster.obj \
      	$(TMP_DIR)\reedsol.obj \
      	$(TMP_DIR)\rss.obj \
      	$(TMP_DIR)\svg.obj \
      	$(TMP_DIR)\telepen.obj \
      	$(TMP_DIR)\tif.obj \
      	$(TMP_DIR)\ultra.obj \
      	$(TMP_DIR)\upcean.obj \
      	$(TMP_DIR)\vector.obj
      
      # Define any additional compiler flags that might be required for the project
      PRJ_DEFINES = -D_CRT_SECURE_NO_DEPRECATE
      PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_NO_PNG=1
      # PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_VERSION=PACKAGE_VERSION
      PRJ_DEFINES = $(PRJ_DEFINES) -I$(TMP_DIR)
      PRJ_DEFINES = $(PRJ_DEFINES) -I$(BACKEND_DIR)
      
      
      
      
      # Define the standard targets
      !include "$(_RULESDIR)\targets.vc"
      
      # We must define a pkgindex target that will create a pkgIndex.tcl
      # file in the $(OUT_DIR) directory. We can just redirect to the
      # default-pkgindex target for our sample extension.
      pkgindex: default-pkgindex
      
      $(ROOT)\manifest.uuid:
         copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
         git rev-parse HEAD >>$(ROOT)\manifest.uuid
      
      $(TMP_DIR)\zintUuid.h:	$(ROOT)\manifest.uuid
      	copy $(WIN_DIR)\zintUuid.h.in+$(ROOT)\manifest.uuid $(TMP_DIR)\zintUuid.h
      
      
      # The default install target only installs binaries and scripts so add
      # an additional target for our documentation. Note this *adds* a target
      # since no commands are listed after it. The original targets for
      # install (from targets.vc) will remain.
      # install: default-install-docs-n
      
      # Explicit dependency rules
      $(GENERICDIR)\zint.c : $(TMP_DIR)\zintUuid.h
      
      {$(BACKEND_DIR)}.c{$(TMP_DIR)}.obj::
              $(cc32) $(pkgcflags) -Fo$(TMP_DIR)\ @<<
      $<
      <<
      </verbatim>
      
      The build instructions are as follows:
      
      
      <verbatim>
      # In MS-VC9 32 bit prompt:
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl8.6 TKDIR=C:\myprograms\tcl8.6
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl8.6 TKDIR=C:\myprograms\tcl8.6 INSTALLDIR=..\..\..\zintinstall install
      # In VS2022 32 bit prompt:
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl9.0 TKDIR=C:\myprograms\tcl9.0
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl9.0 TKDIR=C:\myprograms\tcl9.0 INSTALLDIR=..\..\..\zintinstall install
      </verbatim>
      
      I would also love to have one command line switch for TCLDIR and TKDIR, as they are mostly the same.
      
      Thanks for all,
      Harald
      
    5. foundin initialized to: "9.0.1"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to:
      MS-VS build system: pckIndex.tcl when building for 9 misses "t" for TCL 8.6 part
      
    16. type initialized to: "Bug"
  2. Ticket change [a155df8352] (rid 237827) by oehhar on 2025-02-25 12:20:08:

    1. comment changed to:
      I have a binary extension which is build for 9.0.1 and 8.6.
      [https://sourceforge.net/projects/zint/], see backend_tcl\win subfolder
      
      The pckIndex.tcl file is build identical for both cases, with the difference, that the TCL 9 build does not put the "t" suffix to the DLL.
      
      <verbatim>
      if {[package vsatisfies [package provide Tcl] 9.0-]} { 
      package ifneeded zint 2.15.0 [list load [file join $dir tcl9zint2150.dll]] 
      } else { 
      package ifneeded zint 2.15.0 [list load [file join $dir zint2150.dll]] 
      } 
      </verbatim>
      
      The "t" is missing after "zint2150".
      
      If I install in the same folder, I get an universal package (TCl 8.6 and 9), but this glitch does not allow to use the 8.6 version.
      
      The makefile.vc is as follows:
      <verbatim>
      # The name of the package
      PROJECT = zint
      PROJECT_REQUIRES_TK = 1
      
      # Generic source is in root build folder (1 up)
      GENERICDIR = ..
      # Access the generic backend files
      BACKEND_DIR = $(ROOT)\..\backend
      
      !include "rules-ext.vc"
      
      # Define the object files and resource file that make up the extension.
      # Note the resource file does not makes sense if doing a static library build
      # hence it is under that condition. TMP_DIR is the output directory
      # defined by rules for object files.
      PRJ_OBJS = \
      	$(TMP_DIR)\zint.obj \
      	$(TMP_DIR)\2of5.obj \
      	$(TMP_DIR)\2of5inter.obj \
      	$(TMP_DIR)\2of5inter_based.obj \
      	$(TMP_DIR)\auspost.obj \
      	$(TMP_DIR)\aztec.obj \
      	$(TMP_DIR)\bc412.obj \
      	$(TMP_DIR)\bmp.obj \
      	$(TMP_DIR)\channel.obj \
      	$(TMP_DIR)\codabar.obj \
      	$(TMP_DIR)\codablock.obj \
      	$(TMP_DIR)\code11.obj \
      	$(TMP_DIR)\code128.obj \
      	$(TMP_DIR)\code128_based.obj \
      	$(TMP_DIR)\code16k.obj \
      	$(TMP_DIR)\code1.obj \
      	$(TMP_DIR)\code49.obj \
      	$(TMP_DIR)\code.obj \
      	$(TMP_DIR)\common.obj \
      	$(TMP_DIR)\composite.obj \
      	$(TMP_DIR)\dllversion.obj \
      	$(TMP_DIR)\dmatrix.obj \
      	$(TMP_DIR)\dotcode.obj \
      	$(TMP_DIR)\dxfilmedge.obj \
      	$(TMP_DIR)\eci.obj \
      	$(TMP_DIR)\emf.obj \
      	$(TMP_DIR)\filemem.obj \
      	$(TMP_DIR)\general_field.obj \
      	$(TMP_DIR)\gif.obj \
      	$(TMP_DIR)\gridmtx.obj \
      	$(TMP_DIR)\gs1.obj \
      	$(TMP_DIR)\hanxin.obj \
      	$(TMP_DIR)\imail.obj \
      	$(TMP_DIR)\large.obj \
      	$(TMP_DIR)\library.obj \
      	$(TMP_DIR)\mailmark.obj \
      	$(TMP_DIR)\maxicode.obj \
      	$(TMP_DIR)\medical.obj \
      	$(TMP_DIR)\output.obj \
      	$(TMP_DIR)\pcx.obj \
      	$(TMP_DIR)\pdf417.obj \
      	$(TMP_DIR)\plessey.obj \
      	$(TMP_DIR)\png.obj \
      	$(TMP_DIR)\postal.obj \
      	$(TMP_DIR)\ps.obj \
      	$(TMP_DIR)\qr.obj \
      	$(TMP_DIR)\raster.obj \
      	$(TMP_DIR)\reedsol.obj \
      	$(TMP_DIR)\rss.obj \
      	$(TMP_DIR)\svg.obj \
      	$(TMP_DIR)\telepen.obj \
      	$(TMP_DIR)\tif.obj \
      	$(TMP_DIR)\ultra.obj \
      	$(TMP_DIR)\upcean.obj \
      	$(TMP_DIR)\vector.obj
      
      # Define any additional compiler flags that might be required for the project
      PRJ_DEFINES = -D_CRT_SECURE_NO_DEPRECATE
      PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_NO_PNG=1
      # PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_VERSION=PACKAGE_VERSION
      PRJ_DEFINES = $(PRJ_DEFINES) -I$(TMP_DIR)
      PRJ_DEFINES = $(PRJ_DEFINES) -I$(BACKEND_DIR)
      
      
      
      
      # Define the standard targets
      !include "$(_RULESDIR)\targets.vc"
      
      # We must define a pkgindex target that will create a pkgIndex.tcl
      # file in the $(OUT_DIR) directory. We can just redirect to the
      # default-pkgindex target for our sample extension.
      pkgindex: default-pkgindex
      
      $(ROOT)\manifest.uuid:
         copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
         git rev-parse HEAD >>$(ROOT)\manifest.uuid
      
      $(TMP_DIR)\zintUuid.h:	$(ROOT)\manifest.uuid
      	copy $(WIN_DIR)\zintUuid.h.in+$(ROOT)\manifest.uuid $(TMP_DIR)\zintUuid.h
      
      
      # The default install target only installs binaries and scripts so add
      # an additional target for our documentation. Note this *adds* a target
      # since no commands are listed after it. The original targets for
      # install (from targets.vc) will remain.
      # install: default-install-docs-n
      
      # Explicit dependency rules
      $(GENERICDIR)\zint.c : $(TMP_DIR)\zintUuid.h
      
      {$(BACKEND_DIR)}.c{$(TMP_DIR)}.obj::
              $(cc32) $(pkgcflags) -Fo$(TMP_DIR)\ @<<
      $<
      <<
      </verbatim>
      
      The build instructions are as follows:
      
      
      <verbatim>
      # In MS-VC9 32 bit prompt:
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl8.6 TKDIR=C:\myprograms\tcl8.6
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl8.6 TKDIR=C:\myprograms\tcl8.6 INSTALLDIR=..\..\..\zintinstall install
      # In VS2022 32 bit prompt:
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl9.0 TKDIR=C:\myprograms\tcl9.0
      nmake -f makefile.vc TCLDIR=C:\myprograms\tcl9.0 TKDIR=C:\myprograms\tcl9.0 INSTALLDIR=..\..\..\zintinstall install
      </verbatim>
      
      I would also love to have one command line switch for TCLDIR and TKDIR, as they are mostly the same.
      
      In a more general scope, I am not so happy with an entry in pckIndex.tcl, without a DLL. This is generally the case after the build and install on one target version. This leads to the following miss-behaviour:
      
         *   If I build 86 in one folder and 90 in another folder and put both folders in the auto_path of 8.6 and 9.0, I may get a "dll not found" error, as both folders promise to have both DLLs, what is not the case.
         *   In consequence, I can not overlap the auto_path of both versions for binary extensions. I basically need 3 folders, 8.6, 9.0 and both.
      
      Thanks for all,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
  3. Ticket change [23a13a248f] (rid 237983) by jan.nijtmans on 2025-02-26 19:41:57:

    1. icomment:
      If you follow the exact same procedure, but then with the sampleextension, does it have the same problem? If so, it's a TEA problem, if not it's a problem in the zint makefile.vc.
      
      Are you using a rules.vc any later than [https://core.tcl-lang.org/tcl/info/76d1886f29422a04|this] commit?
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [8a9c9d681f] (rid 237984) by jan.nijtmans on 2025-02-26 20:04:54:

    1. icomment: "I think I see what the problem is. Stay tuned!"
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [118b964070] (rid 237998) by jan.nijtmans on 2025-02-26 20:39:29:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Harald, can you try [14db8eaae08b25ac|this] change?
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  6. Ticket change [4b4839b281] (rid 238006) by oehhar on 2025-02-27 08:45:00:

    1. icomment:
      This fixes the issue by *assuming* that the TCL 8.6-build will be thread-enabled. I have never seen a non-thread enabled windows build, so this is fine.
      
      Nevertheless, for the long run, I would prefer, that a TCL9 build creates a pckIndex.tcl file like this:
      
      <verbatim>
      if {[package vsatisfies [package provide Tcl] 9.0-]} { 
      package ifneeded zint 2.15.0 [list load [file join $dir tcl9zint2150.dll]] 
      }
      </verbatim>
      
      and a TCL 8.6 build would create a pckIndex.tcl file like this:
      
      <verbatim>
      if {[package vsatisfies [package provide Tcl] 8.6]} { 
      package ifneeded zint 2.15.0 [list load [file join $dir zint2150t.dll]] 
      }
      </verbatim>
      
      and if they are installed in the same folder, the pckIndex.tcl files are merged.
      E.g. the install process of pckIndex.tcl should append the file instead replace it.
      
      That would solve all issues at once.
      
      Thanks for all,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  7. Ticket change [756b332d14] (rid 238007) by jan.nijtmans on 2025-02-27 09:05:45:

    1. closedate changed to: "2460733.87899544"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"