Hi Alan, On 2010-01-28 21:21, Alan W. Irwin wrote: > On 2010-01-28 14:23+0100 Arjen Markus wrote: > >> Hi Alan, >> >> no, I did not - PLplot builds fine., but you may be correct >> about it not being enough - I will look further (no time right >> now, I am afraid) >
The tests run fine (well, there is a failure with the comparison, I will have to have a look at that) and the Tcl examples are quite what you would expect. The secret is that we use our own Tcl shell for running the tests: pltcl. > Hi Arjen: > > I decided to have a look at this because like Andrew and you I have several > versions of tcl available (in my case tcl8.3 and tcl8.4 for Debian Lenny). > > As root I used update-alternatives --config tclsh > > to select tclsh8.3. > > However, it turns out I cannot even generate the tcl bindings source code > with tclsh8.3! Here is the relevant trailing part of the output of "make > VERBOSE=1". Oh, that is due to the use of "eq" for comparing strings. It was indeed introduced in Tcl 8.4 for the very common situation that you need a comparison between strings that are definitely not a representation of some number. That is easy to fix. > > Arjen, it sounds like you are pretty busy at the moment, but will you put > this issue on your ToDo list for PLplot? If you can confirm this issue in > your pltclgen.tcl script with tclsh8.3, then I think it is important that > you fix it. Geoffrey has made the point a number of times that the > so-called > "enterprise" versions of Linux have really old versions of software > packages > in them. Thus, I think it is likely that some of our potential Tcl users > will still be using Tcl8.3 and will quietly ignore PLplot because of the > above issue. I had some urgent business to attend to yesterday, but that was resolved much faster than I thought. I can spare some time now :). > > Meanwhile, the above issue keeps my from participating in tests about > whether tclsh can have an inconsistent version with the libraries (say > tclsh8.4 versus Tcl8.5 libraries). I have grepped through our build system > for where tclsh is invoked, and it is almost entirely used to generate > stuff > (such as the code for the tcl bindings as above) rather than to run > examples. Thus, my current guess is for teclsh8.4 (or higher) and some > incompatible Tcl library version, "make test_noninteractive" and "make > "test_interactive" would work fine. > Confirmed. > I did find one instance of a test recommended in > examples/tcl/README.tcldemos that uses tclsh. My guess is incompatible > versions of tclsh and the Tcl libraries would wreak havoc on that > particular > test. However, to check that you will have to run that particular test > from > the command line because I haven't yet (although I hope to do so in future) > included it in the test_noninteractive and/or test_interactive targets. > The initialisation routine checks for Tcl 8.1 - anything earlier is not supported. We do not use any new Tcl functions, as far as I am aware, so most probably all will work fine (due to the stubs mechanism). But that is something we need to find out. I will try this. Regards, Arjen ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel