Thanks Gustaf,

That got me past the immediate problem - but I'm now seeing some further
issues which I can't fully explain.

1. Tcl8.5 only - After clock scan : invalid command name
"::tcl::clock::scan"
2. Tcl8.5 & Tcl8.6 After ::try .. on error : can't read "magicCodes": no
such variable

The errors only seem to happen after the commands are executed on startup
within ns/tcl


$ uname -a
Linux stretch 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
GNU/Linux
$ cat /etc/debian_version
9.6
$ apt-cache policy tcl8.5
tcl8.5:
  Installed: 8.5.19-2+b1
  Candidate: 8.5.19-2+b1
$ hg clone https://bitbucket.org/naviserver/naviserver
$ cd naviserver
$ ./autogen.sh --disable-ipv6 --with-tcl=/usr/lib/tcl8.5 --enable-rpath
--enable-threads --enable-symbols
$ make
$ sudo make install
$ cat ~/test.tcl

package require try
::try {
    ns_log Notice "[clock scan "+365 days"]"
} on error [list message options] {
    ns_log Notice "$message"
    ns_log Notice "$options"
}

## Copy test.tcl into tcl dir

$ sudo cp test.tcl /usr/local/ns/tcl/
$ sudo /usr/local/ns/bin/nsd -u nsd -t /usr/local/ns/conf/nsd-config.tcl -c

## Not working

% ::try { puts trying } on error [list message options] { puts error }
can't read "magicCodes": no such variable
% clock scan "+365 days"
invalid command name "::tcl::clock::scan"

## Remove test.tcl from tcl dir

$ sudo rm /usr/local/ns/tcl/test.tcl

## Working

% package require try
1
% ::try { puts trying } on error [list message options] { puts error }
trying
% clock scan "+365 days"
1580169600





On Fri, 25 Jan 2019 at 18:42, Gustaf Neumann <neum...@wu.ac.at> wrote:

> On 25.01.19 13:44, David Osborne wrote:
>
> When attempting to use the tip version of NaviServer, whenever we use the
> tcllib's ::try command (which we need because we're running Tcl8.5) we get
> an error: "unknown namespace in import pattern "::tcl::control::try"
>
> I've tried to simplify the testcase as much as I can to the following
> under Debian Stretch. The error also occurs under Debian Jessie.
>
> Dear David,
>
> you might try the following change
>
>
> https://bitbucket.org/naviserver/naviserver/commits/0cac39752fbb1026061df8b0a63212584c5f190d
>
> thanks for the good test specification and case!
>
> -g
>
> _______________________________________________
> naviserver-devel mailing list
> naviserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
>


-- 
David Osborne
Qcode Software Limited
http://www.qcode.co.uk
T: +44 (0)1463 896484
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to