Hi,

I was wondering of you would be able to help us get past this issue. 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.
Any idea what's going on?

$ 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
8.6
$ apt-cache policy tcl8.5
tcl8.5:
  Installed: 8.5.19-2+b1
  Candidate: 8.5.19-2+b1
$ apt-cache policy tcllib
tcllib:
  Installed: 1.18-dfsg-3
  Candidate: 1.18-dfsg-3
$ 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 {
puts trying
}
$ sudo cp test.tcl /usr/local/ns/tcl/
$ sudo /usr/local/ns/bin/nsd -u nsd -t /usr/local/ns/conf/nsd-config.tcl


[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: OpenSSL 1.1.0j
20 Nov 2018 initialized
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain: enable
progress statistics for uploads >= 1048576 bytes
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain:
NaviServer/4.99.17 (bb78064b1137 default tip) starting
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain: security
info: uid=1004, euid=1004, gid=1004, egid=1004
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain: Tcl
version: 8.5.19
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain: max
files: soft limit 1048576, hard limit 1048576
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Warning: nsmain: rl_cur
(1048576) > FD_SETSIZE (1024), select() calls should not be used
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: pool default:
queueLength 0 low water 0 high water 0
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice:
nsd/init.tcl[default]: booting virtual server:  Tcl system encoding: "utf-8"
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: modload: loading
module nscp from file nscp
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: binder: started
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nscp[default]:
listening on [0.0.0.0]:4080
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nscp[default]:
added user: ""
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: modload: loading
module nslog from file nslog
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nslog: opened
'/usr/local/ns/logs/access.log'
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: modload: loading
module nscgi from file nscgi
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nscgi: GET
/cgi-bin -> /usr/local/ns/cgi-bin
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nscgi: POST
/cgi-bin -> /usr/local/ns/cgi-bin
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: modload: loading
module nssock from file nssock
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nssock:0: enable
0 spooler thread(s)
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nssock:0: enable
1 writer thread(s) for downloads >= 1048576 bytes, bufsize=8192 bytes, HTML
streaming 0
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: Using ns_cache
implemented as a Tcl proc
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: adp[default]:
mapped {GET HEAD POST} /*.adp
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: tcl[default]:
enabletclpages for {GET HEAD POST} requests
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Warning: ns_md, ns_hmac,
ns_hotp and ns_totp are not available
trying
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: update
interpreter to epoch 1, trace deallocate, time 0.002691 secs
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: update
interpreter to epoch 1, trace none, time 0.002875 secs
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Error: unknown namespace
in import pattern "::tcl::control::try"
unknown namespace in import pattern "::tcl::control::try"
    while executing
"namespace import -force ::tcl::control::try"
    (in namespace eval "::" script line 2)
    invoked from within
"namespace eval :: {
namespace import -force ::tcl::control::try
namespace eval ::tcl::chan {::nstrace::_create_or_config_ensemble ::chan
{-map {blocke..."
(context: update interpreter)
[25/Jan/2019:12:42:08][10914.7fcadbfff700][-driver:nssock:0-] Notice:
starting
[25/Jan/2019:12:42:08][10914.7fcadbfff700][-driver:nssock:0-] Notice:
nssock:0: listening on 0.0.0.0:8080
[25/Jan/2019:12:42:08][10914.7fcadbfff700][-driver:nssock:0-] Notice:
driver: accepting connections
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain:
NaviServer/4.99.17 (bb78064b1137 default tip) running
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][-main-] Notice: nsmain: security
info: uid=1004, euid=1004, gid=1004, egid=1004
[25/Jan/2019:12:42:08][10914.7fcae37fe700][-sched-] Notice: sched: starting
[25/Jan/2019:12:42:08][10914.7fcae3fff700][-socks-] Notice: socks: starting
[25/Jan/2019:12:42:08][10914.7fcaeb9eb700][binder] Notice: binder: stopped
[25/Jan/2019:12:42:08][10914.7fcae957c700][-command-] Notice: update
interpreter to epoch 1, trace none, time 0.003851 secs
[25/Jan/2019:12:42:08][10914.7fcae957c700][-command-] Error: unknown
namespace in import pattern "::tcl::control::try"
unknown namespace in import pattern "::tcl::control::try"
    while executing
"namespace import -force ::tcl::control::try"
    (in namespace eval "::" script line 2)
    invoked from within
"namespace eval :: {
namespace import -force ::tcl::control::try
namespace eval ::tcl::chan {::nstrace::_create_or_config_ensemble ::chan
{-map {blocke..."
(context: update interpreter)
% [25/Jan/2019:12:42:08][10914.7fcadb7fe700][-writer0-] Notice: writer0:
accepting connections
[25/Jan/2019:12:42:08][10914.7fcae0df6700][-conn:default:0:0-] Notice:
update interpreter to epoch 1, trace none, time 0.015119 secs
[25/Jan/2019:12:42:08][10914.7fcae0df6700][-conn:default:0:0-] Error:
unknown namespace in import pattern "::tcl::control::try"
unknown namespace in import pattern "::tcl::control::try"
    while executing
...




-- 
David
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to