| Ticket UUID: | 749088 | |||
| Title: | configure should check version of tcl | |||
| Type: | Bug | Version: | obsolete: 8.5a0 | |
| Submitter: | mmokrejs | Created on: | 2003-06-04 18:44:17 | |
| Subsystem: | 84. Unix Build | Assigned To: | dgp | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2003-10-06 22:28:52 | |
| Resolution: | Fixed | Closed By: | dgp | |
| Closed on: | 2003-10-06 15:28:52 | |||
| Description: |
Please read https://sourceforge.net/tracker/?func=detail&atid=112997&aid=748977&group_id=12997 Based on that, please make sure configure exits properly when user does not have installed required version of tcl. For example, I find legitimate using latest tk from cvs and latest release of tcl. But, that seems not at least in case of tktest dumping core. | |||
| User Comments: |
dgp added on 2003-10-06 22:28:52:
Logged In: YES user_id=80530 patch committed for 8.4.5+ mmokrejs added on 2003-07-23 01:00:11: Logged In: YES user_id=696559 OK, tk8.4.3 with patch applied refuses to compile against tcl8.3. Please apply. Thanks! dgp added on 2003-07-17 03:38:10: File Added - 56004: 749088.patch Logged In: YES user_id=80530 please review/test this patch (for Tk 8.4). dgp added on 2003-07-16 22:08:10: Logged In: YES user_id=80530 Mo, Tk currently requires that TK_VERSION and TCL_VERSION are the same, or it will refuse to compile. Given that, Tk's configure should verify that the tclConfig.sh it finds (either by default, or via --with-tcl) is one from a suitable TCL_VERSION. mmokrejs added on 2003-07-16 15:55:55: Logged In: YES user_id=696559 Yes, please fix configure.in and tcl.m4 so that it is sure that whichever version of tcl was found(for example in ../tcl too), that it is the required version. It happened to me that I had tk from cvs(seemed to be 8.5 already) and built against tcl-8.4.3. And that caused tktest to crash. Such a case could be avoided by proper checks in configure and if you think also tcl.m4 or whatever more. Thanks. mdejong added on 2003-07-16 08:29:36: Logged In: YES user_id=90858 I don't see how this is a bug. It sounds like you did not use the --with-tcl argument, so you end up with whatever the default found by the configure script is. I think looking for ../tcl is the right default for the CVS version. If you could take your suggestion and code it up as a patch to the configure.in and tcl.m4 files, I would be happy to take another look at it. mmokrejs added on 2003-06-05 18:52:06: Logged In: YES
user_id=696559
I see. Configure saw preferentially ../tcl (the cvs
checkout) rather then the INSTALLED version 8.4.3! I had to
rename ../tk to ../cvs-tk. Since then, configure finds
../tcl8.4.3. Why am I forced to have sourcetree of tcl handy
to compile tk instead having it installed?
To my proposal: when tk/unix.configure finds older version
of tcl, it happily sets Makefile to use it. However, user
get while compiling this:
cc -c -O2 -arch ev56 -O -I/mnt/cvs-tk/unix
-I/mnt/cvs-tk/unix/../generic -I/mnt/cvs-tk/unix/../bitmaps
-I/mnt/tcl8.4.3/generic -DHAVE_TZSET -std1
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_WIDE_INT_IS_LONG=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1
-DTCL_NO_DEPRECATED -DUSE_TCL_STUBS
-DTK_LIBRARY=\"/software/@sys/usr/lib/tk8.5\" \
/mnt/cvs-tk/unix/tkUnixInit.c
cc: Error: /mnt/cvs-tk/unix/../generic/tk.h, line 72: #error
Tk 8.5 must be compiled with tcl.h from Tcl 8.5 (errormessage)
# error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
--------^
make: *** [tkUnixInit.o] Error 1
I'd be glad if I could be able to compile tcl cvs checkout
on my platform(see one of my bugs). Thanks.
andreas_kupries added on 2003-06-05 03:34:53: Logged In: YES user_id=75003 Martin, to make a part more clear Don is skipping about, and possibly tripping you: The CVS HEAD of Tcl and Tk is already 8.5 development. In other words taking the CVS head of Tk as you did gives you 8.5, and not 8.4 as you seem to believe as I read your comment. dgp added on 2003-06-05 03:28:08: Logged In: YES user_id=80530 Did you provide a --with-tcl=**** argument to Tk's configure to select a particular Tcl to compile and link against? If not, and if you have Tcl 8.5 sources on your machine, it's likely Tk 8.5 will find and use the headers from that Tcl 8.5 source distribution. Whatever headers you compile against, you should link against the same version of the library. As you say, you took a correct Makefile that was consistently configured for using Tcl 8.5, then edited it into something that would compile for 8.5, but link to 8.4. Pilot error. This is an invalid report then, but I'll leave it open in case Mo has any suggestions if there might be a way to make configure safer/more clever. mmokrejs added on 2003-06-05 03:16:59: Logged In: YES user_id=696559 I don't think I compiled against another version. I have installed tcl8.4.3. I checked out tk from cvs, ran configure. Ran make. During linking no -ltcl*8.5 are found. I edited the generated Makefile to point to -ltcl*8.4 instead. My feeling is that I link against same version of tcl picked up by configure. ^H^H^H^H^H^H^H^H configure just blindly inserts "8.5" string instead of detecting installed version of tcl(which is 8.4.3). dgp added on 2003-06-05 03:06:10: Logged In: YES user_id=80530 can you clarify exactly what you did that failed? It appeared that you compiled against one version of tcl.h, then linked against a different version of libtcl. Is that true? | |||
Attachments:
- 749088.patch [download] added by dgp on 2003-07-17 03:38:10. [details]
