Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Clothes make the man. Naked people have little or no influence on society. -- Mark Twain


comp / comp.lang.tcl / Re: tcltls v1.7.23 and Tcl 9

SubjectAuthor
* tcltls v1.7.23 and Tcl 9Alan Grunwald
+* Re: tcltls v1.7.23 and Tcl 9Alan Grunwald
|`* Re: tcltls v1.7.23 and Tcl 9Paul Obermeier
| `* Re: tcltls v1.7.23 and Tcl 9Paul Obermeier
|  `- Re: tcltls v1.7.23 and Tcl 9Alan Grunwald
`- Re: tcltls v1.7.23 and Tcl 9Emiliano

1
Subject: tcltls v1.7.23 and Tcl 9
From: Alan Grunwald
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 12:33 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam.nurdglaw@gmail.com (Alan Grunwald)
Newsgroups: comp.lang.tcl
Subject: tcltls v1.7.23 and Tcl 9
Date: Sun, 29 Sep 2024 13:33:45 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vdbhhg$1og55$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Sep 2024 14:34:57 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9a0a66d711960cae8982cd25fb366d87";
logging-data="1851557"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9nMH+K6rs+4tDdKhVsfmiYLJXSdO6olA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7O4ZS7GNWWsv4vJaNDfz0QAhEns=
Content-Language: en-US
View all headers

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?

Subject: Re: tcltls v1.7.23 and Tcl 9
From: Alan Grunwald
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 13:24 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam.nurdglaw@gmail.com (Alan Grunwald)
Newsgroups: comp.lang.tcl
Subject: Re: tcltls v1.7.23 and Tcl 9
Date: Sun, 29 Sep 2024 14:24:04 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <vdbkf8$1opca$1@dont-email.me>
References: <vdbhhg$1og55$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Sep 2024 15:24:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5b71ffa0c102547d7108ccb32425cdac";
logging-data="1861002"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XqaD9nZns6AIPp/oF6HEfQxBpyIfqEsY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YRGtyuO6gUWaduX1p1NyRCbILTw=
Content-Language: en-US
In-Reply-To: <vdbhhg$1og55$1@dont-email.me>
View all headers

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.

Subject: Re: tcltls v1.7.23 and Tcl 9
From: Paul Obermeier
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 16:19 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: tcltls v1.7.23 and Tcl 9
Date: Sun, 29 Sep 2024 18:19:59 +0200
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <vdbuo2$1q9sh$1@dont-email.me>
References: <vdbhhg$1og55$1@dont-email.me> <vdbkf8$1opca$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Sep 2024 18:20:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c0929e141c7f55303d2f7f5b8a92851c";
logging-data="1910673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sDdqSIbX2Cv2QIZ6WJhbzHGN7CXTh6Xs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+ESIfIFr3gOyCNbqwrbUBa3r02M=
In-Reply-To: <vdbkf8$1opca$1@dont-email.me>
View all headers

Am 29.09.2024 um 15:24 schrieb Alan Grunwald:
> 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.

As long as I was testing with Tcl9 beta versions, the "8.4" in Tcl_InitStubs or Tk_InitStubs worked.
Since using official Tcl9 this does not work anymore, so I switched to use "8.4-" as is done with "package require" calls.

I forgot to update the preview page with the changed packages.
Will do today or tomorrow.

Paul

Subject: Re: tcltls v1.7.23 and Tcl 9
From: Paul Obermeier
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 17:29 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: obermeier@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: tcltls v1.7.23 and Tcl 9
Date: Sun, 29 Sep 2024 19:29:24 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <vdc2q7$1qvbs$1@dont-email.me>
References: <vdbhhg$1og55$1@dont-email.me> <vdbkf8$1opca$1@dont-email.me>
<vdbuo2$1q9sh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Sep 2024 19:29:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c0929e141c7f55303d2f7f5b8a92851c";
logging-data="1932668"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wwX9DiIO/50mzfDNRxQHfkuzK4vcsKsU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:S3y7Jn0CG0ET0ohReIYfhuMFk5g=
In-Reply-To: <vdbuo2$1q9sh$1@dont-email.me>
View all headers

Am 29.09.2024 um 18:19 schrieb Paul Obermeier:
> Am 29.09.2024 um 15:24 schrieb Alan Grunwald:
>> 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.
>
> As long as I was testing with Tcl9 beta versions, the "8.4" in Tcl_InitStubs or Tk_InitStubs worked.
> Since using official Tcl9 this does not work anymore, so I switched to use "8.4-" as is done with "package require" calls.
>
> I forgot to update the preview page with the changed packages.
> Will do today or tomorrow.
>
> Paul

Updated relevant packages at the BAWT preview page.
Note, that version 1.7.23 is based upon 1.7.22, which is 4 years old.
You might also check the current trunk of tcltls at https://core.tcl-lang.org/tcltls

Paul

Subject: Re: tcltls v1.7.23 and Tcl 9
From: Alan Grunwald
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 20:47 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam.nurdglaw@gmail.com (Alan Grunwald)
Newsgroups: comp.lang.tcl
Subject: Re: tcltls v1.7.23 and Tcl 9
Date: Sun, 29 Sep 2024 21:47:05 +0100
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <vdcedt$1sj7o$1@dont-email.me>
References: <vdbhhg$1og55$1@dont-email.me> <vdbkf8$1opca$1@dont-email.me>
<vdbuo2$1q9sh$1@dont-email.me> <vdc2q7$1qvbs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Sep 2024 22:47:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5b71ffa0c102547d7108ccb32425cdac";
logging-data="1985784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8ChmUnz92YIReW80si1wRxaSROKUimkE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CiwVqNkIdRM07S7IMioS8bU60po=
Content-Language: en-US
In-Reply-To: <vdc2q7$1qvbs$1@dont-email.me>
View all headers

On 29/09/2024 18:29, Paul Obermeier wrote:
> Am 29.09.2024 um 18:19 schrieb Paul Obermeier:
>> Am 29.09.2024 um 15:24 schrieb Alan Grunwald:
>>> 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.
>>
>> As long as I was testing with Tcl9 beta versions, the "8.4" in
>> Tcl_InitStubs or Tk_InitStubs worked.
>> Since using official Tcl9 this does not work anymore, so I switched to
>> use "8.4-" as is done with "package require" calls.
>>
>> I forgot to update the preview page with the changed packages.
>> Will do today or tomorrow.
>>
>> Paul
>
> Updated relevant packages at the BAWT preview page.
> Note, that version 1.7.23 is based upon 1.7.22, which is 4 years old.
> You might also check the current trunk of tcltls at
> https://core.tcl-lang.org/tcltls
>
> Paul

Thanks Paul. The package seems to work ok with the change I made above,
your suggestion sounds tidier but on the basis of leaving well alone,
I'll stick with what I've got at present.

Subject: Re: tcltls v1.7.23 and Tcl 9
From: Emiliano
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 30 Sep 2024 12:49 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: emil.g@example.invalid (Emiliano)
Newsgroups: comp.lang.tcl
Subject: Re: tcltls v1.7.23 and Tcl 9
Date: Mon, 30 Sep 2024 09:49:09 -0300
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <20240930094909.606148adf4b8de86a6e011f0@example.invalid>
References: <vdbhhg$1og55$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Sep 2024 14:49:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="367e5c4dca5d678707cae4ea3cdc1c87";
logging-data="2366280"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XVqaOQkahxBjKFluMBmYYpZQriGpn6dU="
Cancel-Lock: sha1:ykf76bE6yseeEcu7s8vVW33uvhc=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
View all headers

On Sun, 29 Sep 2024 13:33:45 +0100
Alan Grunwald <nospam.nurdglaw@gmail.com> 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?

The work is being done in the tls-1.8 branch. If you don't want to mess
with fossil, you can download a snapshot from

https://core.tcl-lang.org/tcltls/download?r=tls-1.8

Note that it needs a version of OpenSSL newer than 1.X

--
Emiliano

1

rocksolid light 0.9.8
clearnet tor