Forum OpenACS Q&A: XOTcl extension not loaded

Collapse
Posted by Deds Castillo on
Hi. I need help with loading up xotcl.

I have an installation which has xotcl-core and xowiki installed. It loads xotcl 1.6.1 and in the logs it loads up properly.

[25/Sep/2008:21:53:20][24323.1][-main-] Notice: XOTcl version 1.6.1 loaded

All procs for xotcl-core and xowiki also loads up properly but towards the end when it tries to register the proc filters I see:

[25/Sep/2008:21:53:42][24323.1][-main-] Notice: XOTcl extension not loaded; will not copy objects (errror; method export only for ::xotcl::Object and ::xotcl::Class implemented, not for ::xotcl::nonposArgs).

I already checked dynamic libraries and the .so is able to find them. I also tried 1.6.0 and it's the same thing.

Any ideas?

Collapse
Posted by Deds Castillo on
We've solved the problem to an older xotcl.tcl file in the aolserver modules/tcl directory with a hardcoded serializer version. Replacing that with the newer one did the trick.
Collapse
Posted by Gustaf Neumann on
remember, when you compile xotcl, do at the end an "make install-aol", not just an "make install". The first one installs xotcl.tcl as well, so you don't have to care about it manually (see e.g. http://www.openacs.org/xowiki/xotcl-core)

best regards
-gustaf neumann

Collapse
Posted by Deds Castillo on
Thanks Gustaf. In this particular case we were trying to make two versions work so they're installed on different paths as we're not sure if 1.6.1 will work on an older xowiki. Turns out it did barf on the older one since it uses the same xotcl.tcl but I just removed the package require on the -procs* since it's loaded already in xotcl.tcl

For different versions, will it work if the xotcl.tcl is moved to the tcl directory of the openacs instance and removed from aolserver?

Collapse
Posted by Gustaf Neumann on
XOTcl 1.6.1 (with its xotcl.tcl and the serializer etc) is supposed to work with older versions of xowiki and xotcl-core. As you are mentioning "package require" (not sure from where you have deleted it): There is only one thing, i remember: About two years ago, i added the following change to xotcl-core: http://cvs.openacs.org/cvs/openacs-4/packages/xotcl-core/tcl/00-serializer-procs.tcl?r1=1.1&r2=1.2

There was for a short time the need to use a different serializer for openacs than it is in the XOTcl distribution. If you have a version of xowiki older than two years, you should be able to use this patch for compatibility.

Best regards
-gustaf neumann