Re: mod_websh DLL on Windows and other questions

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: mod_websh DLL on Windows and other questions

by Ronnie Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On another note, I would like to make precompiled binaries, for Windows  
> and possibly Linux, available from my Woof (woof.sourceforge.net) site.  
> Would you have any objections to that? Primary purpose is to allow users  
> to install easily without needing a compiler and tools, at least on  
> Windows. FYI, Woof is a Rails-like framework that is server-independent.  
> For Apache the preferred interface is mod_websh for performance reasons  
> although it supports CGI and SCGI modes as well. Let me know if you're  
> ok with my redistributing binaries.

I'm totally OK with that. (I actually plan to provide some on the
offical web site as well, if I ever get to release 3.6.0, but that
certainly shouldn't prevent you from doing so...

Small note: I usually test Websh on Window, Linux and Solaris for
Tcl8.4, 8.5 and 8.6 with Apache 1.3, 2.0 and 2.2

- Websh with Tcl8.6 does not work yet on Linux and Solaris: the apache
  module crashes (standalone test suite works)
- Apache 1.3.41 does not perfectly work on Windows:
  [web::config server_root] does not work on my machines
- Apache 2.2.11 sometimes crashes on Windows (nmake apachetest
  regularly crashes with Tcl8.5 and Tcl8.6)

Maybe some tests on your environment might either help track the bugs
or at least confirm the problems... So I wouldn't mind if you could run
make test as well as make apachetest on your system(s) and let me know
the outcome.

Regards
Ronnie
--
Ronnie Brunner | ronnie.brunner@...
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...


Parent Message unknown Re: Building mod_websh DLL on Windows

by Ronnie Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

> Just saw your posting of the new websh on c.l.t and tried building on  
> XP. Though the build went fine, I had the following questions -
>
> - websh links against both tcl86.lib and tclstub86.lib. Since the  
> compile does not seem to define USE_TCL_STUBS except for interpool.obj,  
> why is tclstub86.lib needed? Also why is only a single file built  
> against the stubs? Somehow this seems inconsistent. AFAIK, you should  
> link against one or the other, not both but perhaps I'm wrong about this.

It could actually be that it is not too consistent, but it definitly
needs to compile against both: basically libwebsh.so (or websh.dll)
are compiled against the stub library, as it is loaded into either a
tclsh or websh or mod_websh, where a tcl library is already
loaded. mod_websh.so however must link directly to tcl.lib, as there
is no Tcl anywhere else in the application. So mod_websh.so must
properly know how to load Tcl.

> - possibly more important, TCL_THREADS is not defined for the build as  
> far as I can tell. As a result the tcl.h macros get resolved as not  
> requiring locking (all the mutex calls become no-ops). Is that not going  
> to be a problem? I'm asking because I got bitten by this early on  
> working on my TWAPI extension causing occasional crashes that I tracked  
> down to this issue.

Mhh. That's true. My impression was that if we need threads, we just
need to link against a threaded Tcl. I just added  /DTCL_THREADS=1 to
the Makefile, but it doesn't seem to make a difference at least
concerning the reported instability of the test suite. (That doesn't
impley that it shouldn't be tehre, though ;-)

Unfortunately, I'm really bad with Windows debugging. If you have a
chance to look into this that would be wonderful. (nmake apachetest
for me just sometimes does not run through w/o error with Tcl85 or
Tcl86 on Apache2 and Apache 2.2) It helps if I sleep between calls to
the server and give it more time to start and shutdown, but I'm not
sure if that's actually the cause of the problem or if it's just a
latent timing problem that arises more often when requesting
earlier...)

Ronnie
--
Ronnie Brunner | ronnie.brunner@...
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...