Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Whenever you find that you are on the side of the majority, it is time to reform. -- Mark Twain


comp / comp.lang.tcl / Re: Packages won't run on Tcl/Tk 9.0

SubjectAuthor
* Packages won't run on Tcl/Tk 9.0Luc
`* Re: Packages won't run on Tcl/Tk 9.0Ashok
 `* Re: Packages won't run on Tcl/Tk 9.0Luc
  `* Re: Packages won't run on Tcl/Tk 9.0Ashok
   `* Re: Packages won't run on Tcl/Tk 9.0Luc
    +- Re: Packages won't run on Tcl/Tk 9.0Christian Gollwitzer
    `- Re: Packages won't run on Tcl/Tk 9.0Ashok

1
Subject: Packages won't run on Tcl/Tk 9.0
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 28 Sep 2024 05:49 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Packages won't run on Tcl/Tk 9.0
Date: Sat, 28 Sep 2024 02:49:15 -0300
Organization: A noiseless patient Spider
Lines: 85
Message-ID: <20240928024915.1ff60ac9@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 Sep 2024 07:49:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="951b57bd3217c3227a7dd288da05b9a8";
logging-data="1199920"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NPOeE4x2cGTqvKehVHu/9X2SfkoX5dhM="
Cancel-Lock: sha1:0B3L3nLfFvTZmrmYTN+bYi/Aaic=
View all headers

I successfully compiled Tcl and Tk 8.6.15 and 9.0.

No problem whatsoever with 8.6.15 so far.

Tcl/Tk 9.0 runs a couple of simpler applications but chokes on a
more complex one:

--------------------
cannot find symbol "tkdnd_Init": /opt/tcltk9/lib/tkdnd2.6/libtkdnd2.6.so:
undefined symbol: _tkdnd_Init while executing
"load $dir/$PKG_LIB_FILE $PACKAGE_NAME"
(procedure "tkdnd::initialise" line 92)
invoked from within
"tkdnd::initialise {/opt/tcltk9/lib/tkdnd2.6} libtkdnd2.6.so tkdnd"
("package ifneeded tkdnd 2.6" script)
invoked from within
"package require tkdnd"
(file "v.tcl" line 4)
Compilation failed.
--------------------

Yes, my version of tkdnd is quite old. I'm not even using it yet.
I haven't written the code. But it is package required for the sake
of the future.

So I fetched a newer version. Tck/Tk 9.0 doesn't like it either:

--------------------
interpreter uses an incompatible stubs mechanism
while executing
"load $dir/$PKG_LIB_FILE [string totitle $PACKAGE_NAME 0 0]"
(procedure "tkdnd::initialise" line 94)
invoked from within
"tkdnd::initialise {/opt/tcltk9/lib/tkdnd2.9.4} libtkdnd2.9.4.so tkdnd"
("package ifneeded tkdnd 2.9.4" script)
invoked from within
"package require tkdnd"
(file "v.tcl" line 4)
Compilation failed.
--------------------

What is going on now? Well, I commented out the tkdnd line and found
that I have a similar problem with snack:

--------------------
interpreter uses an incompatible stubs mechanism
while executing
"load /usr/lib/tcltk/snack2.2/libsound.so"
("package ifneeded sound 2.2" script)
invoked from within
"package require sound"
(file "v.tcl" line 6)
Compilation failed.
--------------------

Is it too old too? Comment it out:

--------------------
interpreter uses an incompatible stubs mechanism
while executing
"load [file join $::vfs::self libvfs1.4.2.so]"
(file "/usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/vfs.tcl" line 24)
invoked from within
"source /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/vfs.tcl"
("package ifneeded vfs 1.4.2" script)
invoked from within
"package require vfs"
(file "v.tcl" line 8)
Compilation failed.
--------------------

Removing references to vfs, I run into a variable that is no longer
recognized. OK, I will investigate that one on my own.

What about the packages? Why do they fail?
Note: I am running all this on Debian 9.

I wonder if this is related:
https://core.tcl-lang.org/tk/info/437d5d47664539497a827310263ad691e85f6ca829eb0cf77ad97edf55220b70

--
Luc
>>

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Ashok
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 28 Sep 2024 17:46 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apnmbx-public@yahoo.com (Ashok)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Sat, 28 Sep 2024 23:16:57 +0530
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <vd9feh$1bifp$1@dont-email.me>
References: <20240928024915.1ff60ac9@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 Sep 2024 19:46:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="83a72c2108449a3ee1a12c420ae2dfc0";
logging-data="1427961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/etuBvvvTfuQavNnahhEpB"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JEBm8nRpq9wfrz4XrlG7kisN4bc=
Content-Language: en-US
In-Reply-To: <20240928024915.1ff60ac9@lud1.home>
View all headers

Sounds like Tcl 9 / Tcl 8 builds mixed up. My guess is the Tcl 9 build
is picking up either Tcl 8 headers or stubs from somewhere or those
packages have not been updated for Tcl 9. Extensions that use the
standard TEA system for builds (and have been updated for Tcl 9) should
have a tcl9 prefix in the shared library name. Your output does not
reflect that which is suspicious unless those extensions do not use TEA.

Where did you get the tclvfs from?

Can you post your configure line?

/Ashok

On 9/28/2024 11:19 AM, Luc wrote:
> I successfully compiled Tcl and Tk 8.6.15 and 9.0.
>
> No problem whatsoever with 8.6.15 so far.
>
> Tcl/Tk 9.0 runs a couple of simpler applications but chokes on a
> more complex one:
>
> --------------------
> cannot find symbol "tkdnd_Init": /opt/tcltk9/lib/tkdnd2.6/libtkdnd2.6.so:
> undefined symbol: _tkdnd_Init while executing
> "load $dir/$PKG_LIB_FILE $PACKAGE_NAME"
> (procedure "tkdnd::initialise" line 92)
> invoked from within
> "tkdnd::initialise {/opt/tcltk9/lib/tkdnd2.6} libtkdnd2.6.so tkdnd"
> ("package ifneeded tkdnd 2.6" script)
> invoked from within
> "package require tkdnd"
> (file "v.tcl" line 4)
> Compilation failed.
> --------------------
>
> Yes, my version of tkdnd is quite old. I'm not even using it yet.
> I haven't written the code. But it is package required for the sake
> of the future.
>
> So I fetched a newer version. Tck/Tk 9.0 doesn't like it either:
>
> --------------------
> interpreter uses an incompatible stubs mechanism
> while executing
> "load $dir/$PKG_LIB_FILE [string totitle $PACKAGE_NAME 0 0]"
> (procedure "tkdnd::initialise" line 94)
> invoked from within
> "tkdnd::initialise {/opt/tcltk9/lib/tkdnd2.9.4} libtkdnd2.9.4.so tkdnd"
> ("package ifneeded tkdnd 2.9.4" script)
> invoked from within
> "package require tkdnd"
> (file "v.tcl" line 4)
> Compilation failed.
> --------------------
>
> What is going on now? Well, I commented out the tkdnd line and found
> that I have a similar problem with snack:
>
> --------------------
> interpreter uses an incompatible stubs mechanism
> while executing
> "load /usr/lib/tcltk/snack2.2/libsound.so"
> ("package ifneeded sound 2.2" script)
> invoked from within
> "package require sound"
> (file "v.tcl" line 6)
> Compilation failed.
> --------------------
>
> Is it too old too? Comment it out:
>
> --------------------
> interpreter uses an incompatible stubs mechanism
> while executing
> "load [file join $::vfs::self libvfs1.4.2.so]"
> (file "/usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/vfs.tcl" line 24)
> invoked from within
> "source /usr/lib/tcltk/x86_64-linux-gnu/vfs1.4.2/vfs.tcl"
> ("package ifneeded vfs 1.4.2" script)
> invoked from within
> "package require vfs"
> (file "v.tcl" line 8)
> Compilation failed.
> --------------------
>
> Removing references to vfs, I run into a variable that is no longer
> recognized. OK, I will investigate that one on my own.
>
> What about the packages? Why do they fail?
> Note: I am running all this on Debian 9.
>
> I wonder if this is related:
> https://core.tcl-lang.org/tk/info/437d5d47664539497a827310263ad691e85f6ca829eb0cf77ad97edf55220b70
>
>

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 28 Sep 2024 20:51 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Sat, 28 Sep 2024 17:51:39 -0300
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20240928175139.0e4ca98f@lud1.home>
References: <20240928024915.1ff60ac9@lud1.home>
<vd9feh$1bifp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 28 Sep 2024 22:51:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="951b57bd3217c3227a7dd288da05b9a8";
logging-data="1480263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QyttkDpAZuzZTvX1pjxfbUqs3G+xxokk="
Cancel-Lock: sha1:cHHztelc1IRpnPThXqL9CNpS7/A=
View all headers

On Sat, 28 Sep 2024 23:16:57 +0530, Ashok wrote:

>Sounds like Tcl 9 / Tcl 8 builds mixed up. My guess is the Tcl 9 build
>is picking up either Tcl 8 headers or stubs from somewhere or those
>packages have not been updated for Tcl 9. Extensions that use the
>standard TEA system for builds (and have been updated for Tcl 9) should
>have a tcl9 prefix in the shared library name. Your output does not
>reflect that which is suspicious unless those extensions do not use TEA.
>
>Where did you get the tclvfs from?
>
>Can you post your configure line?
>
>/Ashok

Now I see that I didn't add tclvfs to the 9.0 installation directory
so it's trying to use the tclvfs of my "official" 8.6.6 installation.

Where is this "configure line"?

--
Luc
>>

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Ashok
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 09:59 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apnmbx-public@yahoo.com (Ashok)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Sun, 29 Sep 2024 15:29:50 +0530
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <vdb8en$1n497$1@dont-email.me>
References: <20240928024915.1ff60ac9@lud1.home> <vd9feh$1bifp$1@dont-email.me>
<20240928175139.0e4ca98f@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Sep 2024 11:59:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d4f1d8d4cc1b6fc8c2489f439e0ba115";
logging-data="1806631"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tyMdWH2RRWQaupzGodcBJ"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BUFuguU16RpS1BDddMzt+4jN8rQ=
Content-Language: en-US
In-Reply-To: <20240928175139.0e4ca98f@lud1.home>
View all headers

The configure line is what you ran to generate the makefiles. That
assumes those extensions are built using autotools as is standard for
Tcl extensions using TEA.

Otherwise, post the steps (command line) you used to build those
extensions. It appears you are getting 8.x and 9.x headers crossed up.

On 9/29/2024 2:21 AM, Luc wrote:
> On Sat, 28 Sep 2024 23:16:57 +0530, Ashok wrote:
>
>> Sounds like Tcl 9 / Tcl 8 builds mixed up. My guess is the Tcl 9 build
>> is picking up either Tcl 8 headers or stubs from somewhere or those
>> packages have not been updated for Tcl 9. Extensions that use the
>> standard TEA system for builds (and have been updated for Tcl 9) should
>> have a tcl9 prefix in the shared library name. Your output does not
>> reflect that which is suspicious unless those extensions do not use TEA.
>>
>> Where did you get the tclvfs from?
>>
>> Can you post your configure line?
>>
>> /Ashok
>
>
> Now I see that I didn't add tclvfs to the 9.0 installation directory
> so it's trying to use the tclvfs of my "official" 8.6.6 installation.
>
> Where is this "configure line"?
>

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 13:05 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Sun, 29 Sep 2024 10:05:34 -0300
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <20240929100534.25996089@lud1.home>
References: <20240928024915.1ff60ac9@lud1.home>
<vd9feh$1bifp$1@dont-email.me>
<20240928175139.0e4ca98f@lud1.home>
<vdb8en$1n497$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Sep 2024 15:05:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a993be8ecddfe96ea6be6a8a851cb88f";
logging-data="1857282"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P6ien3D5r1Q+GSBirczm0d8cWpuN8Vgw="
Cancel-Lock: sha1:6PU4wtAoziGEMSJX0SMdo3bC3FQ=
View all headers

On Sun, 29 Sep 2024 15:29:50 +0530, Ashok wrote:

>The configure line is what you ran to generate the makefiles. That
>assumes those extensions are built using autotools as is standard for
>Tcl extensions using TEA.
>
>Otherwise, post the steps (command line) you used to build those
>extensions. It appears you are getting 8.x and 9.x headers crossed up.

Ah OK.

Tcl:
$ ./configure --disable-symbols --enable-shared --enable-64bit --prefix /opt/tcltk9
Tk:
$ ./configure --disable-symbols --enable-shared --enable-64bit --enable-xft --prefix /opt/tcltk9 --with-tcl=/home/build/tcl9/unix

Please note that I didn't build any of the packages. They are pre-built binaries
that I downloaded.

--
Luc
>>

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Christian Gollwitzer
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 29 Sep 2024 20:10 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Sun, 29 Sep 2024 22:10:47 +0200
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <vdcc87$1sa7n$1@dont-email.me>
References: <20240928024915.1ff60ac9@lud1.home> <vd9feh$1bifp$1@dont-email.me>
<20240928175139.0e4ca98f@lud1.home> <vdb8en$1n497$1@dont-email.me>
<20240929100534.25996089@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Sep 2024 22:10:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4aa81f44affd1cb833e1f4f41238a2f0";
logging-data="1976567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18izGTzYY3oZJbI2SbMi0pZJCemoXh4r+A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:a/98wos0vHaHgDNrY/hO6UkqU98=
In-Reply-To: <20240929100534.25996089@lud1.home>
View all headers

Am 29.09.24 um 15:05 schrieb Luc:
> Please note that I didn't build any of the packages. They are pre-built binaries
> that I downloaded.
>

This doesn't work. Unless the packages have been recompiled for Tcl 9,
you can't load them.

Christian

Subject: Re: Packages won't run on Tcl/Tk 9.0
From: Ashok
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 30 Sep 2024 06:48 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apnmbx-public@yahoo.com (Ashok)
Newsgroups: comp.lang.tcl
Subject: Re: Packages won't run on Tcl/Tk 9.0
Date: Mon, 30 Sep 2024 12:18:05 +0530
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vddhj7$24sqg$1@dont-email.me>
References: <20240928024915.1ff60ac9@lud1.home> <vd9feh$1bifp$1@dont-email.me>
<20240928175139.0e4ca98f@lud1.home> <vdb8en$1n497$1@dont-email.me>
<20240929100534.25996089@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Sep 2024 08:48:07 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="03d5e2828911bde06ad6befca2c7cff0";
logging-data="2257744"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QdJPQpppNI0J9ng9HsHum"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:F4Ubto8yPSmKE4KTLi77iastnxg=
Content-Language: en-US
In-Reply-To: <20240929100534.25996089@lud1.home>
View all headers

On 9/29/2024 6:35 PM, Luc wrote:
> On Sun, 29 Sep 2024 15:29:50 +0530, Ashok wrote:
>
>> The configure line is what you ran to generate the makefiles. That
>> assumes those extensions are built using autotools as is standard for
>> Tcl extensions using TEA.
>>
>> Otherwise, post the steps (command line) you used to build those
>> extensions. It appears you are getting 8.x and 9.x headers crossed up.
>
> Ah OK.
>
> Tcl:
> $ ./configure --disable-symbols --enable-shared --enable-64bit --prefix /opt/tcltk9
> Tk:
> $ ./configure --disable-symbols --enable-shared --enable-64bit --enable-xft --prefix /opt/tcltk9 --with-tcl=/home/build/tcl9/unix
>
>
> Please note that I didn't build any of the packages. They are pre-built binaries
> that I downloaded.
>

I was asking about the configure for the packages. As Christian said,
extensions built for 8.x will not work with 9.0

1

rocksolid light 0.9.8
clearnet tor