Tk Source Code

View Ticket
Login
Ticket UUID: 1587363
Title: configure script doesn't find Tcl8.5 sources
Type: Bug Version: obsolete: 8.5a5
Submitter: eriklns Created on: 2006-10-30 17:24:10
Subsystem: 84. Unix Build Assigned To: dgp
Priority: 3 Low Severity:
Status: Closed Last Modified: 2008-01-03 23:17:44
Resolution: Out of Date Closed By: dgp
    Closed on: 2008-01-03 16:17:44
Description:
A plain ./configure fails to find the Tcl8.5 sources. 

When fed with an extra:
 --with-tcl=/usr/local/src/tcl8.5a5/unix
the build continues without problems.



> pwd
/usr/local/src/tk8.5a5/unix
> ./configure
checking for Tcl configuration... found
/usr/local/src/tcl8.4.14/unix/tclConfig.sh
checking for existence of
/usr/local/src/tcl8.4.14/unix/tclConfig.sh... loading
checking for tclsh... /usr/bin/tclshg
checking for tclsh in Tcl build directory...
/usr/local/src/tcl8.4.14/unix/tclsh
configure: error:
/usr/local/src/tcl8.4.14/unix/tclConfig.sh is for Tcl 8.4.
Tk 8.5a5 needs Tcl 8.5.
Use --with-tcl= option to indicate location of
tclConfig.sh file for Tcl 8.5.
> uname -a
Linux somehost 2.4.21-303-athlon #1 Tue Dec 6 12:24:00
UTC 2005 i686 athlon i386 GNU/Linux
>
User Comments: dgp added on 2008-01-03 23:17:44:
Logged In: YES 
user_id=80530
Originator: NO


Now that Tcl 8.5.0 is out,
this should no longer be an issue.

dgp added on 2006-10-31 12:59:06:
Logged In: YES 
user_id=80530

A contributed patch to
SC_PATH_TCLCONFIG to address
this would be worth a look.

The thing to avoid is anything
that would require ongoing maintenance.

eriklns added on 2006-10-31 04:48:38:
Logged In: YES 
user_id=113903

Of course, I meant:

"However, I can't remember this
behaviour when configuring Tk8.5a3, ..."

eriklns added on 2006-10-31 04:42:33:
Logged In: YES 
user_id=113903

I suppose one can live with the minor inconvenience (I can),
if this behaviour is on purpose and consistent across
alpha/beta releases, or even a kind of policy regarding
alpha/beta releases. However, I can't remember this
behaviour when configuring Tcl8.5a3, which is why it
surprised me (i.e. not some kind of policy). Otherwise, I
would not even have mentioned it.

dgp added on 2006-10-31 01:10:49:
Logged In: YES 
user_id=80530

SC_PATH_TCLCONFIG is written
to favor stable releases over
alpha/beta releases.  This is
a minor inconvenince for alpha/beta
testers, but generally a good idea,
I think.

Besides --with-tcl= you can also
symlink the directory "tcl" to the
source distro directory you want
the Tk build to prefer.