Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tcl8.2b1: tclConfig.sh.in and tcl.h bugs

Closed / Fixed218879ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:06
OriginalBugID: 2511 Bug
Version: 8.2b1
SubmitDate: '1999-08-10'
LastModified: '1999-09-20'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-SuSE
OSVersion: 6.1
Machine: Other
FixedDate: '1999-09-20'
ClosedDate: '2000-10-25'


Name:
Charles Thayer

Extensions:
lots :-)

CustomShell:
Simple fixes for big problems

Comments:
The problem with tcl.h is that the version numbers are just WRONG.
    They are as follows:
    
    #define TCL_MAJOR_VERSION   8
    #define TCL_MINOR_VERSION   1
    #define TCL_RELEASE_LEVEL   TCL_BETA_RELEASE
    #define TCL_RELEASE_SERIAL  1
    
    #define TCL_VERSION         "8.2"
    #define TCL_PATCH_LEVEL     "8.2b1"
    
    Clearly, the minor version needs updating.
    
    Second, the tclConfig.sh has single ticks around variables which
    need further shell expansion.  So the result is that variables
    in tclConfig.sh say silly are getting set to 'libtcl8.2${TCL_DBGX}.so'.
    Note that the "${TCL_DBGX}" is not getting properly expanded.
    
    I suggest running the following:
    
    perl -pi- -e "s/\'/\\\"/g" tclConfig.sh.in
    autoconf

ReproducibleScript:
configure is generating a bad tclConfig.sh,
    and tcl.h has some bad settings (defines).

ObservedBehavior:
Mostly noticeable that other packages have trouble with this
    newest version (such as ical, blt, etc.)

DesiredBehavior:
When I configure other tcl dependant packages (which
    use autoconf to run tclConfig.sh), they are failing
    to get some necessary settings.

Patch:
# recommend the following be run
# perl -pi- -e "s/\'/\\\"/g" tclConfig.sh.in

# Use the following to fix tcl.h if you run tcl8.2b1

*** tcl.h.old   Fri Jul  2 02:04:26 1999
--- tcl.h.new   Thu Aug  5 14:56:26 1999
***************
*** 54,60 ****
   */
  
  #define TCL_MAJOR_VERSION   8
! #define TCL_MINOR_VERSION   1
  #define TCL_RELEASE_LEVEL   TCL_BETA_RELEASE
  #define TCL_RELEASE_SERIAL  1
  
--- 54,60 ----
   */
  
  #define TCL_MAJOR_VERSION   8
! #define TCL_MINOR_VERSION   2
  #define TCL_RELEASE_LEVEL   TCL_BETA_RELEASE
  #define TCL_RELEASE_SERIAL  1

PatchFiles:
tclConfig.sh.in
    tcl.h



These have since been updated (but still something that unfortunately
sneaks through too often). 
-- 09/20/1999 hobbs
welch Closed ticket [218879ffff]. [History diff]2000-10-26 08:31:13
welch Ticket [218879ffff]: 4 changes [History diff]2000-10-26 08:31:14
dgp Ticket [218879ffff]: 3 changes [History diff]2001-04-18 22:29:37
Log in (anonymous is fine) to add a comment.