[From nobody Tue Jul 28 11:27:05 2026
Received: (at submit) by bugs.debian.org; 13 Jan 2024 08:05:20 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-115.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
 SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
 USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
 autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 51; hammy, 150; neutral, 152; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;rafael@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:48256)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=stravinsky.debian.org, EMAIL=hostmaster@stravinsky.debian.org (verified)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;rafael@debian.org&gt;) id 1rOZ16-00A0SB-7S
 for submit@bugs.debian.org; Sat, 13 Jan 2024 08:05:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=uZnUk1xJYU+5g90ga98IsIfoO+Z7kkCInFeH1Eojgps=; b=vPk4c8rlUneUu4GS/t6sZH/mGU
 1g5Qf02BefU6vEiwsZ8jcMQ0aO835+n9qNAdVv0OR58/1xNz0lcpmDTT5/vV7oN8IWfxph3rCj5rT
 rrH67mwGuk1G++bgb+7cE7FVpUg7noH944DmGeFXWcLDM65I28nZlfiA8aIHQ/nV+671f2QceQ6OA
 i6qKxKLNdEDV/lBas9JzUbUy1oZ0vyV9tWfWRfSKNZ8JKdw222gSaxZv/upcU1JxnpdndI7GsJLG6
 PibJAhFGArqlQicpNDtighSwp3Wf+CoL5DjFeT81nLO9FPhomqHE4IUED7adAP0v6UtBIRFJ9UpGh
 7dOD8exg==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;rafael@debian.org&gt;)
 id 1rOZ14-008YD5-0Z; Sat, 13 Jan 2024 08:05:18 +0000
Received: from rafael by laboissiere.net with local (Exim 4.96)
 (envelope-from &lt;rafael@laboissiere.net&gt;) id 1rOZ12-00EhrU-2I;
 Sat, 13 Jan 2024 09:05:16 +0100
Date: Sat, 13 Jan 2024 09:05:16 +0100
From: Rafael =?utf-8?Q?Laboissi=C3=A8re?= &lt;rafael@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: tcl-itcl4-dev: incr Tcl programs do not compile with tcl8.7-dev
Message-ID: &lt;ZaJEPNpbpFvBI8oR@laboissiere.net&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;i5Iq4o4e8baHxa3g&quot;
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Reportbug-Version: 12.0.0
Organization: Debian GNU/Linux
X-JED-Position: 46,7
Content-Language: en-us
X-Debian-User: rafael
Delivered-To: submit@bugs.debian.org


--i5Iq4o4e8baHxa3g
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Package: tcl-itcl4-dev
Version: 4.2.3-1
Severity: important
Tags: upstream patch

With the versions of tcl-itcl4-dev (4.2.3-1) and tcl8.7-dev 
(8.7.0~a5+dfsg-3) currently in experimental, this simple example does 
not work:

    $ echo &quot;#include &lt;itcl/itcl.h&gt;&quot; &gt; test.c
    $ gcc -c test.c -I/usr/include/tcl
    In file included from test.c:1:
    /usr/include/itcl/itcl.h:144:5: error: unknown type name 'Tcl_Size'
      144 |     Tcl_Size len;                  /* number of values on stack */
          |     ^~~~~~~~
    /usr/include/itcl/itcl.h:145:5: error: unknown type name 'Tcl_Size'
      145 |     Tcl_Size max;                  /* maximum size of stack */
          |     ^~~~~~~~
    /usr/include/itcl/itcl.h:164:5: error: unknown type name 'Tcl_Size'
      164 |     Tcl_Size num;                  /* number of elements */
          |     ^~~~~~~~

It does work in unstable.

Currently, in experimental, tcl-dev depends on tcl8.7-dev. If this 
packages migrate into unstable, then tcl-itcl4-dev will be broken in a 
serious way. Hence, I am am hereby setting the severity level to 
important.

The patch attached to this bug report seems to fix the problem.

Best,

Rafael

-- System Information: 
Debian Release: 12.0 
  APT prefers testing 
  APT policy: (650, 'testing'), (600, 'unstable') 
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tcl-itcl4-dev depends on: 
pn  tcl-dev    &lt;none&gt; 
pn  tcl-itcl4  &lt;none&gt;

tcl-itcl4-dev recommends no packages.

Versions of packages tcl-itcl4-dev suggests: 
pn  tcl-itcl4-doc  &lt;none&gt;

--i5Iq4o4e8baHxa3g
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=&quot;itcl4_4.2.3-1_4.2.3-1.1.debdiff&quot;
Content-Transfer-Encoding: 8bit

diff -Nru itcl4-4.2.3/debian/changelog itcl4-4.2.3/debian/changelog
--- itcl4-4.2.3/debian/changelog	2022-11-27 08:34:33.000000000 -0300
+++ itcl4-4.2.3/debian/changelog	2024-01-13 04:53:27.000000000 -0300
@@ -1,3 +1,10 @@
+itcl4 (4.2.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * d/p/tcl-size-define.patch: New patch
+
+ -- Rafael Laboissière &lt;rafael@debian.org&gt;  Sat, 13 Jan 2024 04:53:27 -0300
+
 itcl4 (4.2.3-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru itcl4-4.2.3/debian/patches/series itcl4-4.2.3/debian/patches/series
--- itcl4-4.2.3/debian/patches/series	2022-11-27 08:34:33.000000000 -0300
+++ itcl4-4.2.3/debian/patches/series	2024-01-13 04:53:27.000000000 -0300
@@ -1 +1 @@
-# nothing here
+tcl-size-define.patch
diff -Nru itcl4-4.2.3/debian/patches/tcl-size-define.patch itcl4-4.2.3/debian/patches/tcl-size-define.patch
--- itcl4-4.2.3/debian/patches/tcl-size-define.patch	1969-12-31 21:00:00.000000000 -0300
+++ itcl4-4.2.3/debian/patches/tcl-size-define.patch	2024-01-13 04:41:42.000000000 -0300
@@ -0,0 +1,16 @@
+Description: Allow compilation with Tcl 8.7
+Author: Rafael Laboissière &lt;rafaeln@debian.org&gt;
+Forwarded: no
+Last-Update: 2024-01-13
+
+--- itcl4-4.2.3.orig/generic/itcl.h
++++ itcl4-4.2.3/generic/itcl.h
+@@ -132,7 +132,7 @@ ITCL_EXTERN int Itcl_SafeInit(Tcl_Interp
+ #define ITCL_PRIVATE          3
+ #define ITCL_DEFAULT_PROTECT  4
+ 
+-#if (TCL_MAJOR_VERSION == 8) &amp;&amp; (TCL_MINOR_VERSION &lt; 7) &amp;&amp; !defined(Tcl_Size)
++#if (TCL_MAJOR_VERSION == 8) &amp;&amp; (TCL_MINOR_VERSION &lt; 8) &amp;&amp; !defined(Tcl_Size)
+ #    define Tcl_Size int
+ #endif
+ 

--i5Iq4o4e8baHxa3g--
]