Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:54 • Ticket [218722ffff] Incorrect quoting in (tcl|tk)Config.sh status still Clos... artifact: fe3090cf26 user: dgp
2000-10-26
08:27 • Closed ticket [218722ffff]. artifact: d6a157a0c9 user: welch
01:04 • New ticket [218722ffff]. artifact: bca50c09e5 user: nobody

Incorrect quoting in (tcl|tk)Config.sh

Closed / Fixed218722ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:34
OriginalBugID: 1851 Bug
Version: 8.0.4
SubmitDate: '1999-04-16'
LastModified: '1999-12-03'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Solaris
OSVersion: primarily 2.6 (also, 2.4 and 2.5.1)
Machine: Other
FixedDate: '1999-12-03'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


Name:
Tet

Extensions:
BLT-2.4g, expect-5.28, TclX-8.0.4, wrap-0.2

ReproducibleScript:
Try to install Sanjay Ghemawat's ical-2.2. The configure script fails to
    find installed Tcl and Tk libraries, despite getting information from
    the tclConfig.sh and tkConfig.sh files.

    ical can be found at
    http://www.research.digital.com/SRC/personal/Sanjay_Ghemawat/ical/home.ht
    ml

ObservedBehavior:
In tclConfig.sh and tkConfig.sh, single quotes are used throughout. This
    means that variables are not expanded. For ical, this means the
    configure script is looking for (in my case)
    /local/TCL8/5.x/lib/libtcl8.0${TCL_DBGX}.a rather than simply
    /local/TCL8/5.x/lib/libtcl8.0.a.

    Changing the single quotes to double quotes fixes the problem.

DesiredBehavior:
I expect to see TCL_LIB_FILE set to the correct filename by tclConfig.sh

Patch:
*** /local/TCL8src/tcl8.0.4-plus/unix/tclConfig.sh      Wed Mar 31 17:21:18 1999
--- /local/TCL8/5.x/lib/tclConfig.sh    Wed Apr 14 18:50:50 1999
***************
*** 44,50 ****
  TCL_SHARED_BUILD=0

  # The name of the Tcl library (may be either a .a file or a shared library):
! TCL_LIB_FILE='libtcl8.0${TCL_DBGX}.a'

  # Additional libraries to use when linking Tcl.
  TCL_LIBS='-ldl  -lsocket -lnsl -lm'
--- 44,50 ----
  TCL_SHARED_BUILD=0

  # The name of the Tcl library (may be either a .a file or a shared library):
! TCL_LIB_FILE="libtcl8.0${TCL_DBGX}.a"

  # Additional libraries to use when linking Tcl.
  TCL_LIBS='-ldl  -lsocket -lnsl -lm'
***************
*** 89,95 ****
  # run-time dynamic linker where to look for shared libraries such as
  # libtcl.so.  Used when linking applications.  Only works if there
  # is a variable "LIB_RUNTIME_DIR" defined in the Makefile.
! TCL_LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'

  # Additional object files linked with Tcl to provide compatibility
  # with standard facilities from ANSI C or POSIX.
--- 89,95 ----
  # run-time dynamic linker where to look for shared libraries such as
  # libtcl.so.  Used when linking applications.  Only works if there
  # is a variable "LIB_RUNTIME_DIR" defined in the Makefile.
! TCL_LD_SEARCH_FLAGS="-Wl,-R,${LIB_RUNTIME_DIR}"

  # Additional object files linked with Tcl to provide compatibility
  # with standard facilities from ANSI C or POSIX.
***************
*** 99,113 ****
  TCL_RANLIB='ranlib'

  # -l flag to pass to the linker to pick up the Tcl library
! TCL_LIB_FLAG='-ltcl8.0${TCL_DBGX}'

  # String to pass to linker to pick up the Tcl library from its
  # build directory.
! TCL_BUILD_LIB_SPEC='-L/local/TCL8src/tcl8.0.4-plus/unix -ltcl8.0${TCL_DBGX}'

  # String to pass to linker to pick up the Tcl library from its
  # installed directory.
! TCL_LIB_SPEC='-L/local/TCL8/5.x/lib -ltcl8.0${TCL_DBGX}'

  # Indicates whether a version numbers should be used in -l switches
  # ("ok" means it's safe to use switches like -ltcl7.5;  "nodots" means
***************
*** 120,132 ****
  # extension, and anything else needed).  May depend on the variables
  # VERSION and SHLIB_SUFFIX.  On most UNIX systems this is
  # ${VERSION}${SHLIB_SUFFIX}.
! TCL_SHARED_LIB_SUFFIX='${VERSION}${DBGX}.so'

  # String that can be evaluated to generate the part of an unshared library
  # name that comes after the "libxxx" (includes version number, if any,
  # extension, and anything else needed).  May depend on the variable
  # VERSION.  On most UNIX systems this is ${VERSION}.a.
! TCL_UNSHARED_LIB_SUFFIX='${VERSION}${DBGX}.a'

  # Location of the top-level source directory from which Tcl was built.
  # This is the directory that contains a README file as well as
--- 120,132 ----
  # extension, and anything else needed).  May depend on the variables
  # VERSION and SHLIB_SUFFIX.  On most UNIX systems this is
  # ${VERSION}${SHLIB_SUFFIX}.
! TCL_SHARED_LIB_SUFFIX="${VERSION}${DBGX}.so"

  # String that can be evaluated to generate the part of an unshared library
  # name that comes after the "libxxx" (includes version number, if any,
  # extension, and anything else needed).  May depend on the variable
  # VERSION.  On most UNIX systems this is ${VERSION}.a.
! TCL_UNSHARED_LIB_SUFFIX="${VERSION}${DBGX}.a"

  # Location of the top-level source directory from which Tcl was built.
  # This is the directory that contains a README file as well as
*** /local/TCL8src/tk8.0.4/unix/tkConfig.sh     Thu Mar 25 11:35:14 1999
--- /local/TCL8/5.x/lib/tkConfig.sh     Wed Apr 14 17:57:45 1999
***************
*** 29,35 ****
  TK_DBGX=

  # The name of the Tk library (may be either a .a file or a shared library):
! TK_LIB_FILE='libtk8.0${TK_DBGX}.a'

  # Additional libraries to use when linking Tk.
  TK_LIBS='-L/usr/openwin/lib -lX11 -ldl  -lsocket -lnsl -lm'

--- 29,35 ----
  TK_DBGX=

  # The name of the Tk library (may be either a .a file or a shared library):
! TK_LIB_FILE="libtk8.0${TK_DBGX}.a"

  # Additional libraries to use when linking Tk.
  TK_LIBS='-L/usr/openwin/lib -lX11 -ldl  -lsocket -lnsl -lm'
***************
*** 49,63 ****
  TK_XLIBSW='-L/usr/openwin/lib -lX11'

  # -l flag to pass to the linker to pick up the Tcl library
! TK_LIB_FLAG='-ltk8.0${TK_DBGX}'

  # String to pass to linker to pick up the Tk library from its
  # build directory.
! TK_BUILD_LIB_SPEC='-L/local/TCL8src/tk8.0.4-standard/unix -ltk8.0${TK_DBGX}'

  # String to pass to linker to pick up the Tk library from its
  # installed directory.
! TK_LIB_SPEC='-L/local/TCL8/5.x/lib -ltk8.0${TK_DBGX}'

  # Location of the top-level source directory from which Tk was built.
  # This is the directory that contains a README file as well as
--- 49,63 ----
  TK_XLIBSW='-L/usr/openwin/lib -lX11'

  # -l flag to pass to the linker to pick up the Tcl library
! TK_LIB_FLAG="-ltk8.0${TK_DBGX}"

  # String to pass to linker to pick up the Tk library from its
  # build directory.
! TK_BUILD_LIB_SPEC="-L/local/TCL8src/tk8.0.4-standard/unix -ltk8.0${TK_DBGX}"

  # String to pass to linker to pick up the Tk library from its
  # installed directory.
! TK_LIB_SPEC="-L/local/TCL8/5.x/lib -ltk8.0${TK_DBGX}"

  # Location of the top-level source directory from which Tk was built.
  # This is the directory that contains a README file as well as

PatchFiles:
tclConfig.sh
    tkConfig.sh



The quoting has since been changed. 
-- 12/03/1999 hobbs
welch Closed ticket [218722ffff]. [History diff]2000-10-26 08:27:13
dgp Ticket [218722ffff]: 3 changes [History diff]2001-04-05 06:54:25
Log in (anonymous is fine) to add a comment.