>> The problem seems to be: DllMain() calls certain functions >> before the normal entry point main() is called, which initializes >> tcl etc. The Windows man page [1] says: > Interesting. And of course DllMain() only exists on Windows. But, > why do we need DllMain() at all? I assume we DO need it of course, I > just don't understand the design differences between Naviserver's > pthread and winthread support. Both Posix and Windows use > Nsthreads_LibInit(), but DllMain() seems to be an extra layer not > present for Posix. The porpose of DllMain() seems to be mostly for handling tls. To answer why this was done this way requires a windows guru or a longer time of investigation. >> The reason, naviserver uses 2x long in Ns_Time is probably due to >> Tcl, using: > AFAICT, using long is just wrong, and Tcl and Naviserver both should > have been using time_t for many years now. we can't change tcl, it is important that tcl and naviserver have the same understanding of time, unless we have a really good reason for changing this. >> Probably, i should get a windows installation running, but >> the setup costs are quite high in terms of time and lack >> on windows-knowlege on my side. > Yeah. Maybe the Docker stuff Stephen showed us would make it easier? I've revived an old installation of win7 based on VirtualBox and Visual Studio 11, used the version of naviserver from bitbucket, compiled tcl, switched the line for the win-makefile, compiled nsd using nmake, and to my big surprise, "nsd,exe -c" worked!
Well, it complained about a missing init.tcl, probably my installation needs more tweaks, and i am sure, many more problems will show up. -g PS: btw, i've fixed the shift problem this moring. ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel