Re: tcltls v1.7.23 and Tcl 9

Liste des GroupesRevenir à cl tcl 
Sujet : Re: tcltls v1.7.23 and Tcl 9
De : nospam.nurdglaw (at) *nospam* gmail.com (Alan Grunwald)
Groupes : comp.lang.tcl
Date : 29. Sep 2024, 14:24:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdbkf8$1opca$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 29/09/2024 13:33, Alan Grunwald wrote:
I have encountered a problem with the above extension under tcl9.0.0
 After downloading https://www.tcl3d.org/bawt/download/Preview/Tcl9/tcltls-1.7.23.7z, as advertised on the "Porting extensions to Tcl 9" page on the wiki, configuring using the line
 ./configure --prefix=/opt/tcl9.0.0 --with-tcl=/opt/tcl9.0.0/lib
 building and installing, I cannot load the extension:
      % package require tls
     version conflict for package "tcl": have 9.0.0, need 8.4
 The same error also occurs if I do
      % load /opt/tcl9.0.0/lib/tcltls1.7.23/tcltls.so Tls
 so I assume a problem in the .so file. I've had a quick look through the sources, but I have no confidence that I can find the appropriate change.
 Please can someone help?
Maybe I should have more confidence...
I changed line 1809 of tls.c from
     Tcl_InitStubs(interp, "Tcl", "8.4", 0)
to
     Tcl_InitStubs(interp, "Tcl", "8.4", 0) || Tcl_InitStubs(interp, "Tcl", "9", 0)
and the package now loads ok. Once I've ploughed through several more porting issues in my own code, I'll have an idea of whether the modified tls works.

Date Sujet#  Auteur
29 Sep 24 * tcltls v1.7.23 and Tcl 96Alan Grunwald
29 Sep 24 +* Re: tcltls v1.7.23 and Tcl 94Alan Grunwald
29 Sep 24 i`* Re: tcltls v1.7.23 and Tcl 93Paul Obermeier
29 Sep 24 i `* Re: tcltls v1.7.23 and Tcl 92Paul Obermeier
29 Sep 24 i  `- Re: tcltls v1.7.23 and Tcl 91Alan Grunwald
30 Sep 24 `- Re: tcltls v1.7.23 and Tcl 91Emiliano

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal