Forum OpenACS Development: xotcl request monitor and libthread 2.6.3 does not seem to work

I am trying out the xotcl request monitor.

It seems it doesn't work with libthread 2.6.3.
The libthread module loads successfully but it still fails when "thread::mutex" is called.

I tried libthread 2.6.1 instead and it worked fine.

Can someone confirm if libthread 2.6.3 has worked for them ?

thanks !

There is a "bug" with libthread 2.6.3. Zoran forgot to switch a flag back to its default value and as a result commands are created under the namespace Thread::* instead of thread::*. You might want to ping him about this (I was under the impression he was going to prepare another tarball but it must have escaped his attention).
I've pinged Zoran and he is going to upload a new tarball over the weekend and pump the version number to 2.6.4. Meanwhile, the CVS is in the correct state. If you do a checkout and recompile all is fine. It is was/just a typo in the tclThread.h file.
Thanks !!!
Neophytos explained the situation already correctly. Out of curiosity, do you have any reason for not using using 2.6.1 as suggested in my install notes? Btw, i have moved these to http://www.openacs.org/xowiki/pages/en/xotcl-request-monitor
to improve visablilty.

PS: dave, do you know, why the first includelet for the request monitor in the mentioned page returns an error? Is there an installation on oacs.org needed for this to work?

No particular reason. It is the latest version available and I tried it 😊
Zoran says: "I have updated the package to 2.6.4 release. This should fix the issues you have reported."
I have a question. How can I configure thread (whatever version) in a way that I can install the file into /lib/thread/libthread.so

Note the difference, that it is omitting the version numbers.

Reason is easy. The moment I update the version in AOLserver I have to change my config.tcl file, as it relies on the filename being correct (e.g. /lib/thread2.6.4/libthread2.6.4.so) for loading the package. And I want to have a general statement trying to load whatever libthread package there is in OpenACS config.tcl

Collapse
9: libthread on Mac OS X (response to 1)
Posted by Malte Sussdorff on
How do I include the .dylib file into OpenACS on "os x" in the param section. Is there a way to build it in ".so" style?
Collapse
10: Re: libthread on Mac OS X (response to 9)
Posted by Gustaf Neumann on
Hi Malte,

I am sure, you know the Mac OS X specific definition:

  ns_section "ns/server/${server}/modules"
    ...
    ns_param libthread  ${homedir}/lib/libthread2.6.1.dylib
    ...
A OS independent definition would be
  ns_section "ns/server/${server}/modules"
    ...
    ns_param libthread  ${homedir}/lib/libthread2.6.1[info sharedlibextension]
    ...
Does this answer your question?
Collapse
Posted by Malte Sussdorff on
Yes, this answers the question and I swear, I tried it before and it did not work. But apparently I made a mistake. Is there a reason not to use 2.6.4 in libthread?
Collapse
Posted by Gustaf Neumann on
I tend to be conservative on the tricky parts of the system. However, have upgraded just now to use 2.6.4 and it is apparently ok.

Saw your patch:
http://cvs.openacs.org/cvs/openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl?r1=1.22&r2=1.23&sortby=date

i have just now updated bgdelivery-procs in cvs head to check for the aolserver patch to avoid surprises with that patch.

Collapse
Posted by César Clavería on
Hello Gustaf,

I have some problems with bgdelivery, I get this error in my log:

Notice: Loading xotcl-core/tcl/bgdelivery-procs.tcl
Notice: AOLserver is not patched for bgdelivery, NOT loading bgdelivery

but I don't know which patches should I applied to AOLserver in order to bgdelivery to load.

Collapse
Posted by Gustaf Neumann on
César,

see https://openacs.org/xowiki/Boost_your_application_performance_to_serve_large_files!

Collapse
Posted by Eduardo Santos on
I'm sorry, I know this is a dummy question, but I have to apply the patch before install right? Once the Makefile is generated, is there a way to fix it?
Collapse
Posted by Gustaf Neumann on
the patch is does not change the makefile. patch the aolserver and type "make" and "make install" as usual. In case of doubts, have a look at Malte's build file, it contains the patch.