This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
cvs sid looks for wrong tcl
- To: sid at sources dot redhat dot com
- Subject: cvs sid looks for wrong tcl
- From: Per Bothner <per at bothner dot com>
- Date: Tue, 2 Oct 2001 13:20:55 -0700
- Cc: Per Bothner <per at bothner dot com>
I have no interest in sid, but when you check out the integrated src
tree, it gets built by default. Or at least a build is attempted.
So that is why I was disturbed to find that sid doesn't build because
it expects tcl 8.0, but the source tree contains tcl 8.3. What is
really disturbing is that no-one has caught and fixed this by now,
since from the tcl/ChangeLog it looks like it hasn't been changed
for a couple of weeks. Does no-body build the entire tree before
making a potentially global change like this? Perhaps everyone
who did try to build it happened to have a version of tcl8.0 in
their library patch?
Below is a simple patch. Of course it is not the correct fix,
which would be to remove the hard-wired-in tcl version number.
My suggestion would be to change tcl to add a symlink for
libtcl.a that points to libtcl8.3.a, and then have sid just look
for -ltcl.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/sid/component/tcl/configure.in,v
retrieving revision 1.2
diff -u -r1.2 configure.in
--- configure.in 2001/08/04 11:32:17 1.2
+++ configure.in 2001/10/02 20:07:04
@@ -40,7 +40,7 @@
AC_MSG_CHECKING(tcl in build tree)
if test -d ../../../tcl; then
with_tcl_include="-I$srcdir/../../../tcl/generic"
- with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}0"
+ with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}3"
fi
AC_MSG_RESULT($with_tcl_lib)
fi
@@ -50,7 +50,7 @@
AC_MSG_CHECKING(tk in build tree)
if test -d ../../../tk; then
with_tk_include="-I$srcdir/../../../tk/generic -I$srcdir/../../../tk/xlib"
- with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}0"
+ with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}3"
fi
AC_MSG_RESULT($with_tk_lib)
fi
@@ -100,11 +100,11 @@
LIBS="$with_tcl_lib $with_tk_lib $with_blt_lib $LIBS"
if test -z "$with_tcl_lib"; then
- AC_CHECK_LIB(tcl8${tcl_libdot}0, Tcl_Init,[],[
+ AC_CHECK_LIB(tcl8${tcl_libdot}3, Tcl_Init,[],[
AC_CHECK_LIB(tcl, Tcl_Init)])
fi
if test -z "$with_tk_lib"; then
- AC_CHECK_LIB(tk8${tcl_libdot}0, Tk_Init,[],[
+ AC_CHECK_LIB(tk8${tcl_libdot}3, Tk_Init,[],[
AC_CHECK_LIB(tk, Tk_Init)])
fi
dnl if test -z "$with_blt_lib"; then