Forum OpenACS Development: Naviserver and libthread

Collapse
Posted by Dave Bauer on
I installed Naviserver from qcode's Debian repository.

Install was easy, also installed Tcl8.5 from Debian.

I have tclthread 2.6.7 from Debian as well.

When I start Naviserver I get this message

[07/Jul/2014:20:31:56][13432.7fd5f103f700][-main-] Notice: modload: loading /usr/lib/tcltk/thread2.6.7/libthread2.6.7.so
[07/Jul/2014:20:31:56][13432.7fd5f103f700][-main-] Error: modload: /usr/lib/tcltk/thread2.6.7/libthread2.6.7.so: Ns_ModuleInit: symbol not found
[07/Jul/2014:20:31:56][13432.7fd5f103f700][-main-] Fatal: modload: failed to load module '/usr/lib/tcltk/thread2.6.7/libthread2.6.7.so'

Which i don't understand since I would think libthread is a normal Tcl package. Should this work?

Collapse
Posted by Gustaf Neumann on
Hi Dave,

libthread can be built with and without aolserver/naviserver support. With this support, some cmd names are called differently and the library can be called / initialized as a aolserver/naviserver module. The exactly same happens in AolServer and NaviServer.

Guess you picked a version without that support. When you build a new version, i would recommend to use tclibthread 2.7.0, which has a few memory leaks less. I guess it is the easiest to use the install-script from [1].

all the best
-gustaf neumann

[1] https://openacs.org/xowiki/naviserver-openacs