JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  July 2004

STARDEV July 2004

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: ccdpack/tclsys

From:

Mark Taylor <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Tue, 27 Jul 2004 13:17:44 +0100

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (99 lines)

On Mon, 26 Jul 2004, Tim Jenness wrote:

> On Mon, 26 Jul 2004, Mark Taylor wrote:
>
> > I've just re-reached the stage of being able to build CCDPACK (why do
> > I feel like I'm wading through treacle?) hopefully with or without
> > itcl.  In order to do this I've had to, amongst other things, back
> > out of the changes to configure.ac and Makefile.am that Brad made
> > 17 July to use the STAR_PATH_TCLTK macro.
>
> Hopefully not all the changes. You'll see that I switched to linking
> against the actual startcl libraries rather than the .o files. Couldn't
> understand why they exist when startcl goes to the effort of making
> libraries for exactly this purpose.

I can't understand either, but it does make the difference between
working and not working, at least for me.  With the Makefile.am
that explicitly names the startcl .o files in libdir:

   STARTCL_OBJ = $(libdir)/tkGwm.o $(libdir)/tkGwmCanv.o \
                 $(libdir)/tkGwmPrint.o $(libdir)/tclAdam.o

ccdwish builds and runs correctly.  With the Makefile.am that
replaces this by

   STARTCL_OBJ = -L$(libdir)/startcl -ltclAdam -ltkGwm

ccdwish builds, but running it just writes "Abort" and exits with an
error status (I think but am not sure it's a SIGABRT from somewhere).
I presume that startcl takes the unusual step of installing
the .o files into lib/ for a reason, and it may be connected with this,
though as I say don't have much idea what's really going on here.

> > I haven't investigated exactly what doesn't work right when
> > STAR_PATH_TCLTK is being used, except that it's probably down to
> > the idiosyncratic way that CCDPACK assembles the script files it
> > needs - if I was rewriting it from scratch it would probably do things
> > in a more standard way, but I'm not.
> >
> > Although STAR_PATH_TCLTK seems like it ought to be the way forward,
> > as I've mentioned before, CCDPACK has rather stringent requirements
> > on the TCL/TK setup it uses (this time not for historical reasons,
> > it requires some semi-private TCL include files), so in practice
> > I'm not sure it's worth getting it to look for a non-starlink
> > version of it, since it probably wouldn't work anyway.
> > For this reason I'd argue that the apparently retrograde step
> > of removing STAR_PATH_TCLTK again is a reasonable thing to do.
> >
>
> So ccdpack uses private tcl include files as well as private itcl include
> files??? :-)

yes it does: http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0407&L=stardev&T=0&F=&S=&P=14601

> Also, just out of curiosity, can you explain why all of the tcl/tk support
> tcl scripts are copied from the installed location to the build location?
> It seems that what's really happening is that ccdpack is creating an
> entirely new tcl/tk binary with an entire set of support libraries;
> presumably so that the directory can be moved around? Surely the support
> scripts will still be picked up from the standard location after the new
> binary is built?

Yes it's to be sure that it knows it can find all the support files
that it needs at run time.  This means that it has no run-time
dependency on any external installation of tcl/tck/itcl.
I'd argue this is still a useful feature, but it dates from when
the CCDPACK *source* distribution held its own prebuilt wish binaries
for each of the supported target systems so it didn't even have
a build-time dependency on Tcl/Tk/iTcl.

> Since the standard tcl/tk now install these into share/tcl8.3/ and not
> lib/tcl8.2 that might account for one difficulty in the ccdpack build
> system.

Very likely.

> > Sorry to play ping pong, and I'm certainly not trying to discourage
> > people apart from me from tinkering with CCDPACK, but unless
> > I get an objection by tomorrow I will restore the CCDPACK
> > configure.ac and Makefile.am to their pre-STAR_PATH_TCLTK state.
> >
>
> As I said, can you leave in some of the tidy up we did?
> And also not have the hard-wired version number of TCL in the Makefile.am?

For the reasons above: I'm afraid mostly not.  I've committed the working,
but untidy, versions.  If you want to rejig it to use the libraries
rather than object files or whatever else then please do, as long as
it stays working afterwards (make sure ccdwish runs).  Since we're
already some way over the amount of time we were supposed to spend
on this, I am reluctant to wade back into it for aesthetic reasons.
Sorry about that.

Mark

--
Mark Taylor    Starlink Programmer     Physics,  Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager