|
From: Mo D. <md...@cy...> - 2000-08-09 07:00:50
|
On Tue, 8 Aug 2000, Mo DeJong wrote:
> On Mon, 7 Aug 2000, Jeffrey Hobbs wrote:
>
> > The code in the core-8-3-1-branch (readying for 8.3.2) should be
> > considered final. Eric and I will be putting the code through
> > its drills on Tuesday, with the hope that we'll have a Wednesday
> > release of Tcl/Tk 8.3.2.
> >
> > A few files related to release work (tcl.wse.in and such) may be
> > edited, as will 'changes' for the release notes, but aside from
> > that I expect everything is ready to go.
> >
> > If anyone spots any serious problems with the current state of
> > core-8-3-1-branch (for tcl or tk), raise the red flag before
> > Wednesday morning.
>
>
> Well, this really is down to the wire, but...
>
> There is a problem with the tclConfig.sh file generated by
> Tcl 8.3.2.
>
> (from tclConfig.sh)
>
> # -l flag to pass to the linker to pick up the Tcl stub library
> TCL_STUB_LIB_FLAG='-ltclstub8.3${TCL_DBGX}'
>
> (from tkConfig.sh)
> TK_STUB_LIB_FLAG='-ltkstub8.3g'
>
> This means that if you compile with debug symbols enabled,
> an extension that tries to link to Tcl's stub libs will
> generate an error like so:
>
> gcc -shared -o libtkgs.so tkgs.o tkgsColor.o tkgsDrawable.o tkgsDriver.o
> tkgsFont.o tkgsInit.o tkgsObj.o tkgsUnixInit.o drivers/ps/libtkgs_ps.a
> drivers/canvas/libtkgs_canvas.a drivers/xlib/libtkgs_xlib.a
> -L/home/mo/project/build/tcl_83 -ltclstub8.3
> -L/home/mo/project/build/tk_83 -ltkstub8.3g
> /usr/bin/ld: cannot find -ltclstub8.3
> collect2: ld returned 1 exit status
Looks like I was a bit too quick with that patch.
This one should really fix the problem.
Index: configure.in
===================================================================
RCS file: /home/cvs/external/tcl/unix/configure.in,v
retrieving revision 1.57.2.1
diff -u -r1.57.2.1 configure.in
--- configure.in 2000/07/27 01:39:22 1.57.2.1
+++ configure.in 2000/08/09 06:57:10
@@ -527,12 +527,12 @@
MAKE_STUB_LIB="ar cr \${STUB_LIB_FILE} \${STUB_LIB_OBJS}"
-TCL_STUB_LIB_FILE=${STUB_LIB_FILE}
+eval TCL_STUB_LIB_FILE=\"${STUB_LIB_FILE}\"
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}\${TCL_DBGX}"
+ eval TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}${TCL_DBGX}"
else
- TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
+ 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}"
Mo DeJong
Red Hat Inc
--
The TclCore mailing list is sponsored by Ajuba Solutions
To unsubscribe: email tcl...@aj... with the
word UNSUBSCRIBE as the subject.
|