[Pkg-netsim-devel] Bug#725079: ns2: FTBFS with upcoming changes in Tcl/Tk

Sergei Golovan sgolovan at nes.ru
Tue Oct 1 08:49:34 UTC 2013

Package: ns2
Version: 2.35+dfsg-1
Severity: normal
Tags: patch

Dear Maintainer,

We plan the following changes to Tcl/Tk in Debian which affect your ns2
1. Adding multiarch capabilities (in particular, moving libraries into
2. Upgrading default Tcl/Tk version to 8.6.

The new packages are already in experimental, so you can play with them.

Due to the first change ns2 configure script can't find Tcl/Tk anymore, and
since it's custom (doesn't use tclConfig.sh script with all the paths recorded
during Tcl build) I can't suggest anything except patching. Moreover, I doubt
these patches can be sent upstream (as they use DEB_HOST_MULTIARCH variable).

The second change revealed two problems. Firstly, deprecated (and hidden in
8.6) Tcl_Interp result field is used in the code. Secondly, in 8.6 the return
type of Tcl_GetHashKey has been changed from char* to void* which causes
error when compiling. Here comes another patch with a quick hack suitable for
old projects (definition of USE_INTERP_RESULT) and with converting the return
value to (void*). The latter is legitimate because the keys in Tcl_GetHashKey
calls are always null-terminated strings.

I've attached the patch which helps ns2 to build with Tcl/Tk from

-- System Information:
Debian Release: 7.1
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns2.nmu.diff
Type: text/x-diff
Size: 4072 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-netsim-devel/attachments/20131001/a98826a4/attachment.diff>

More information about the Pkg-netsim-devel mailing list