Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-19
04:24 • Ticket [218294ffff] tclConfig.sh lines not fully evaluated status still Clos... artifact: 252cb164b4 user: dgp
2000-10-26
08:18 • Closed ticket [218294ffff]. artifact: aba6a543be user: welch
00:55 • New ticket [218294ffff]. artifact: 6be369c7f3 user: nobody

tclConfig.sh lines not fully evaluated

Closed / Invalid218294ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:49
OriginalBugID: 3516 Bug
Version: 8.2.2
SubmitDate: '1999-11-08'
LastModified: '1999-12-03'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: Solaris 7 (SunOS 5.7)
Machine: SPARC Ultra 5
FixedDate: '2000-10-25'
ClosedDate: '1999-12-03'


Name:
Steve Fulmer

Extensions:
Tix 4.1.0.006

Comments:
Run "autoconf" to regenerate configure script after applying patch.

ReproducibleScript:
from tcl8.2.2/unix: ./configure --enable-threads --enable-shared --enable-symbols --prefix=<dir>

ObservedBehavior:
Several lines in the generated tclConfig.sh are not fully evaluated.  This is not consistent with the tkConfig.sh generated on the same platform, and causes problems for other libraries (Tix, in my case), when they reference these lines.  It seems in places that the configure script for Tk has the necessary extra "eval" statements.

The lines on my platform that are unevaluated are:
TCL_LIB_FILE='libtcl8.2${TCL_DBGX}.so'
TCL_LIB_FLAG='-ltcl8.2${TCL_DBGX}'
TCL_BUILD_LIB_SPEC='-L/home/fulmer/research/upgrade/NOV03/PCP/lib/tcl/unix -ltcl8.2${TCL_DBGX}'
TCL_LIB_SPEC='-L/home/fulmer/research/upgrade/NOV03/PCP/SunOS5.7/sun4u/lib -ltcl8.2${TCL_DBGX}'
TCL_SHARED_LIB_SUFFIX='${VERSION}${DBGX}.so'
TCL_UNSHARED_LIB_SUFFIX='${VERSION}${DBGX}.a'
TCL_STUB_LIB_FILE='libtclstub8.2${TCL_DBGX}.a'
TCL_STUB_LIB_FLAG='-ltclstub8.2${TCL_DBGX}'
TCL_BUILD_STUB_LIB_SPEC='-L/home/fulmer/research/upgrade/NOV03/PCP/lib/tcl/unix -ltclstub8.2${TCL_DBGX}'
TCL_STUB_LIB_SPEC='-L/home/fulmer/research/upgrade/NOV03/PCP/SunOS5.7/sun4u/lib -ltclstub8.2${TCL_DBGX}'
TCL_BUILD_STUB_LIB_PATH='/home/fulmer/research/upgrade/NOV03/PCP/lib/tcl/unix/libtclstub8.2${TCL_DBGX}.a'
TCL_STUB_LIB_PATH='/home/fulmer/research/upgrade/NOV03/PCP/SunOS5.7/sun4u/lib/libtclstub8.2${TCL_DBGX}.a'

DesiredBehavior:
tclConfig.sh entries fully evaluated where appropriate

Patch:
fulmer> diff -c configure.in.orig configure.in   
*** configure.in.orig   Mon Nov  8 16:18:44 1999
--- configure.in        Mon Nov  8 16:29:16 1999
***************
*** 471,478 ****
  #     building libtcl as a shared library instead of a static library.
  #--------------------------------------------------------------------

! TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
! TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}

  SC_ENABLE_SHARED

--- 471,478 ----
  #     building libtcl as a shared library instead of a static library.
  #--------------------------------------------------------------------

! eval eval "TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}"
! eval eval "TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}"

  SC_ENABLE_SHARED

***************
*** 518,526 ****

  if test "$SHARED_BUILD" = "0" -o $TCL_NEEDS_EXP_FILE = 0; then
      if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
!         TCL_LIB_FLAG="-ltcl${TCL_VERSION}\${TCL_DBGX}"
      else
!         TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
      fi
      TCL_BUILD_LIB_SPEC="-L`pwd` ${TCL_LIB_FLAG}"
      TCL_LIB_SPEC="-L${exec_prefix}/lib ${TCL_LIB_FLAG}"
--- 518,526 ----

  if test "$SHARED_BUILD" = "0" -o $TCL_NEEDS_EXP_FILE = 0; then
      if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
!         eval TCL_LIB_FLAG="-ltcl${TCL_VERSION}\${TCL_DBGX}"
      else
!         eval TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
      fi
      TCL_BUILD_LIB_SPEC="-L`pwd` ${TCL_LIB_FLAG}"
      TCL_LIB_SPEC="-L${exec_prefix}/lib ${TCL_LIB_FLAG}"
***************
*** 568,576 ****
  TCL_STUB_LIB_FILE=${STUB_LIB_FILE}

  if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
!     TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}\${TCL_DBGX}"
  else
!     TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
  fi

  TCL_BUILD_STUB_LIB_SPEC="-L`pwd` ${TCL_STUB_LIB_FLAG}"
--- 568,576 ----
  TCL_STUB_LIB_FILE=${STUB_LIB_FILE}

  if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
!     eval TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}\${TCL_DBGX}"
  else
!     eval TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
  fi

  TCL_BUILD_STUB_LIB_SPEC="-L`pwd` ${TCL_STUB_LIB_FLAG}"

PatchFiles:
./tcl8.2.2/unix/configure.in



This is the desired behavior as the necessary substitutions
will be made later when they are used by things like Tk or
other extensions. 
-- 12/03/1999 hobbs
welch Closed ticket [218294ffff]. [History diff]2000-10-26 08:18:59
dgp Ticket [218294ffff]: 4 changes [History diff]2001-04-19 04:24:41
Log in (anonymous is fine) to add a comment.