From: Alan W. I. <ir...@be...> - 2004-07-15 19:25:42
|
On 2004-07-15 11:27-0700 Alan W. Irwin wrote: > On 2004-07-15 15:33+0100 Andrew Ross wrote: > >> On Wed, Jul 14, 2004 at 04:14:56PM -0700, Alan Irwin wrote: >>> >>> The tcl problem is now fixed for the separate build tree case. Thanks >>> to >>> Rafael for helping me with the changes to the pltclgen perl script. >> >> I still can't get tcl to build with a clean checkout. The problem >> appears to be the mktclIndex command. The variable mkindex is set with a >> path name relative to the build directory. Unfortunately we change to >> the source directory before executing the command so the path is no >> longer necessarily correct. In fact we want the output in the build >> directory not the source directory I presume. Anyone with some tcl >> knowledge able to look at this? > > Thanks for pointing out the problem, Andrew. Indeed, I must not have had a > clean start when doing my previous tests. Actually after a clean start, it > is the install rather than the build where the error occurs for me. Just to > make sure we are looking at the same problem, Andrew, could you confirm > "make" works fine, but "make install" has the following error: > > /usr/bin/install -c -m 644 '../../../plplot/examples/tk/tclIndex' > '/usr/local/plplot/share/plplot5.3.1.cvs/examples/tk/tclIndex' > /usr/bin/install: cannot stat `../../../plplot/examples/tk/tclIndex': No such > file or directory > make[3]: *** [install-nodist_examples_tkDATA] Error 1 > make[3]: Leaving directory > `/home/software/plplot_cvs/HEAD/buildtree/examples/tk' > > bindings/tk/Makefile.am simply refers to tclIndex (i.e., the file that is > created in the build tree by the $(top_srcdir)/scripts/mktclIndex command) > so I don't know why the "../../../plplot/examples/tk/" string is prepended > in the resulting Makefile. bindings/tcl/Makefile.am also refers to tclIndex, > and in that case "../../../plplot/examples/tk/" is _not_ prepended. I > assume there is some subtle automake distinction being made here which I > don't understand, but it turns out the proposed fix below makes this moot. Oops. I was looking in the wrong directory. There is some problem in examples/tk/Makefile.am which I will look at. ^^^^^^^^ > > A potentially more serious problem is that $(top_srcdir)/scripts/mktclIndex > executes the tcl command auto_mkindex, and if you look that up in the man > page it only is meant to scan one directory for files. However, in this > case we have two directories: the source directory has a ton of *.tcl files, > while the build directory has pkgIndex.tcl. mktclIndex can easily be > changed to point to the source directory, but then it will miss out on > indexing the load_pkg_Pltk proc in pkgIndex.tcl. > > (Note that for the equivalent tcl directory, this problem does not occur. > The build tree has all the *.tcl files that need to be indexed.) > > I conclude the proper fix here for the tk subdirectory is to run mktclIndex > in the installed tree once all tcl files have been collected from the source > and build tree. I will try and make that work in the next hour or so. Note this serious problem still exists (nothing from the bindings/tk _source_ tree is indexed), and I will work on it. I didn't see the results of this problem before because I didn't try running the installed interactive tk examples. > > Note, there may be additional make check issues here. For example, if "make > check" demands a tclIndex file be built in either the source or build tree > (or both) we can do that as well. But we can figure that out once the "make > install" part is working properly. > > Alan > __________________________ > Alan W. Irwin > email: ir...@be... > phone: 250-727-2902 > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the PLplot scientific plotting software > package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the > Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |