Tk Source Code

View Ticket
Login
Ticket UUID: 220404
Title: 3 small bug fixes (Tk8.0.3, UNIX)
Type: Bug Version: obsolete: 8.0.3
Submitter: welch Created on: 2000-10-31 23:21:20
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-04-25 23:45:41
Resolution: Fixed Closed By: dgp
    Closed on: 2001-04-25 16:45:41
Description:
OriginalBugID: 908 Bug
Version: 8.0.3
SubmitDate: '1998-12-04'
LastModified: '1999-02-03'
Severity: MED
Status: Released
Submitter: welch
ChangedBy: stanton
OS: Other
OSVersion: Linux Redhat 4.2 (Intel)
Machine: NA
FixedDate: '1999-02-03'
FixedInVersion: 8.0.5


Name:
Jan Nijtmans

ObservedBehavior:
1) typo on line 25: "tkl_ok" should be "tk_ok". Because this is the first
time the "tk_ok" variable is used it doesn't have any adverse affect.
But that doesn't change the fact that it clearly is a typo.

2)  LIB_RUNTIME_DIR is set incorrectly for Tk if Tcl and Tk are installed
     in different directories. The "/lib" part is missing.

3) long-standing bug: TK_LD_SEARCH_FLAGS is set incorrectly if  SHLIB_LD_LIBS='${LIBS}', and shared linking is performed through
the C compiler. Systems affected are Linux, MP-RAS and NEXTSTEP,
but also with gcc on many more systems. Currently SHLIB_LD_LIBS
is empty for most sytem, but this is the real reason why shared linking
fails  when SHLIB_LD_LIBS is set to '${LIBS}' (as it should be).

Patch:
*** unix/configure.in.origThu Nov 12 08:49:14 1998
--- unix/configure.inThu Nov 12 08:51:30 1998
***************
*** 21,27 ****

  AC_PROG_RANLIB
  AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available],
!     [tk_ok=$enableval], [tkl_ok=no])
  if test "$tk_ok" = "yes"; then
      AC_PROG_CC
  else
--- 21,27 ----

  AC_PROG_RANLIB
  AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available],
!     [tk_ok=$enableval], [tk_ok=no])
  if test "$tk_ok" = "yes"; then
      AC_PROG_CC
  else
***************
*** 92,98 ****
  # search path to reflect this.

  if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
!     LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}"
  fi

  #--------------------------------------------------------------------
--- 92,98 ----
  # search path to reflect this.

  if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
!     LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib"
  fi

  #--------------------------------------------------------------------
***************
*** 249,255 ****
  # variable LIB_RUNTIME_DIR.

  eval "TK_CC_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
! TK_LD_SEARCH_FLAGS=`echo ${TK_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`

  #--------------------------------------------------------------------
  #Check for the existence of various libraries.  The order here
--- 249,262 ----
  # variable LIB_RUNTIME_DIR.

  eval "TK_CC_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
! case $SHLIB_LD in
!     *ld*)
! TK_LD_SEARCH_FLAGS=`echo ${TK_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`
! ;;
!     *)
! TK_LD_SEARCH_FLAGS="${TK_CC_SEARCH_FLAGS}"
! ;;
! esac

  #--------------------------------------------------------------------
  #Check for the existence of various libraries.  The order here

PatchFiles:
configure.in



2) and 3) are already solved in the plus-patches for a long time. These
fixes are required to turn Tk into a dynamical loadable package tclsh.
Because 8.0.4 is especially aimed at bug solving, it would be
valuable to fix at least these 3 small bugs in the core now.