| Ticket UUID: | 895899 | |||
| Title: | Search order for the tclConfig.sh | |||
| Type: | Bug | Version: | obsolete: 8.4.5 | |
| Submitter: | miketm | Created on: | 2004-02-12 17:29:45 | |
| Subsystem: | 84. Unix Build | Assigned To: | rmax | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-03-25 10:22:25 | |
| Resolution: | Invalid | Closed By: | sf-robot | |
| Closed on: | 2006-03-25 03:22:25 | |||
| Description: |
I'm having troubles when installing Tcl/Tk on Solaris into non-standard location. configure/build of the Tcl went fine but configure for the Tk fails whith "Use --with-tcl= option ...". The problem is that I have an old version installed in /usr/local. Last time I checked (8.3.*) Tk's configure used to check --prefix location first. It is not really a bug, but the old behaviour was much more convenient IMHO. | |||
| User Comments: |
sf-robot added on 2006-03-25 10:22:25:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). dgp added on 2006-03-11 04:08:03: Logged In: YES user_id=80530 the useful feedback on this one came to an end, I guess. dgp added on 2004-02-22 01:34:54: Logged In: YES
user_id=80530
When --prefix= is the only option
used, the ${exec_prefix} should
be the same as ${prefix} and
${libdir} should be the same as
${prefix}/lib
So, I'm back to my earlier questions.
"Can you tell us more about where
the right tclConfig.sh file is that
Tk's configure should find, where the
wrong one is that it found instead, then we
can look into why it's choosing the wrong
one?"
Thanks for your help making Tk more
robust.
miketm added on 2004-02-21 06:30:49: Logged In: YES user_id=596169 I've used only --prefix=... dgp added on 2004-02-21 06:19:07: Logged In: YES
user_id=80530
Are you in a configuration
where ${prefix} and ${exec_prefix}
have different values?
miketm added on 2004-02-21 06:16:26: Logged In: YES
user_id=596169
Small correction:
I've used ${prefix}/lib not ${exec_prefix}/lib.
dgp added on 2004-02-21 03:24:36: Logged In: YES
user_id=80530
sorry to belabor this, but I do not
understand why Mikhail is having
trouble.
If using the value ${exec_prefix}/lib
makes Mikhail happy, and if the
default value of ${libdir} is ${exec_prefix}/lib ,
then why isn't Mikhail happy by default?
rmax added on 2004-02-19 15:06:01: Logged In: YES
user_id=124643
This whole search path is a cludge. I think it shouldn't do
this wild guessing, that Tcl might be installed at
/usr/local/lib, /usr/contrib/lib, or /usr/lib. Instead it
should just look into ${libdir} which defaults to
${exec_prefix}/lib when no --libdir option is given to
configure. So if Tk (or any other extension) is being
configured with a different prefix or libdir than Tcl, would
mean that one has to use --with-tcl to avoid undesired Tcl
versions to be found by accident.
dgp added on 2004-02-19 05:30:18: Logged In: YES
user_id=80530
rmax, Mihhail is complaining
about the effect of your
2002-06-25 change to unix/tcl.m4,
forcing extensions to look under
${libdir} for tclConfig.sh instead
of the former location ${exec_prefix}/lib
Is there any reason not to add
${exec_prefix}/lib back to the
search path? Does it matter
whether it gets added before or
after ${libdir} ?
miketm added on 2004-02-19 05:18:55: Logged In: YES user_id=596169 It works both ways for me dgp added on 2004-02-19 04:58:03: Logged In: YES
user_id=80530
I see.
Did you need to change
${libdir} to ${prefix}/lib, or
would it have good enough to
add ${prefix}/lib to the search
patch, perhaps after ${libdir} ?
miketm added on 2004-02-19 02:45:51: Logged In: YES
user_id=596169
Changing ${libdir} to ${prefix}/lib on line 66 in the file
unix/tcl.m4 (and autoconf after this) solved this problem.
dgp added on 2004-02-18 08:26:01: Logged In: YES user_id=80530 I does look like Tk 8.4.5 is using the same search path as Tk 8.5a0. How does this bug report relate to Tk Bug 608698? Also, note that the error message from Tk's configure that includes "Use --with-tcl= option..." is an error indicating that the Tk you are trying to build is of a different version than the tclConfig.sh file that was found. That's a good error to be told about. It means Tk's configure found the wrong tclConfig.sh file. Can you tell us more about where the right tclConfig.sh file is that Tk's configure should find, where the wrong one is that it found instead, then we can look into why it's choosing the wrong one? dkf added on 2004-02-18 06:04:52: Logged In: YES user_id=79902 That's the CVS HEAD. 8.5a1 is supposed to be tagged sometime this month though, so you could wait for that if you prefer. miketm added on 2004-02-17 03:03:52: Logged In: YES user_id=596169 Where to get Tcl 8.5a0? There is no such CVS tag or archive on SF. dgp added on 2004-02-17 02:34:49: Logged In: YES user_id=80530 Is Tcl 8.5a0 any better? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki