Linux, TK4.0, TCL7.4 and TKIned

Justin Randall (jrandall@credrouter.limited.net)
Fri, 17 Nov 1995 23:09:05 -0500

I am running Linux 1.3.41. I have the latest and greatest TK and TCL =
libs installed. Tested them out with some of the wish demo applications. =
Every one of them worked fine. I grabbed a binary distribution of tkined =
from Sunsite. When I ran it, I got a segmentation fault. So, I grabbed =
the tkined sources (1.3.4) and ran configure. Configure found all of my =
goodies. There is no blt lib on my system, so it said it would try =
without it. I double checked the Makefile to be sure that there were no =
obvious problems with the compile parameters. It looked OK to me, so I =
ran make.

The sources started compiling, I started to get excited, then when the =
object files were being linked, I get a few screenfulls of errors about =
undefined references in barchart.o and stripchart.o. The undefinded =
reference errors detail only TK calls. Here is one page of the output =
error:

barchart.o(.text+0x5f1): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x66a): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x67d): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x695): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x6ae): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x6c6): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x6df): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x6f7): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x710): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x728): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x741): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x759): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x772): undefined reference to `Tk_FreeGC'
barchart.o(.text+0x8a1): undefined reference to =
`Tk_CanvasDrawableCoords'
barchart.o(.text+0x8bf): undefined reference to =
`Tk_CanvasDrawableCoords'
barchart.o(.text+0xa0c): undefined reference to `Tk_GetUid'
barchart.o(.text+0xa18): undefined reference to `Tk_CanvasTkwin'
barchart.o(.text+0xa27): undefined reference to `Tk_GetColor'
barchart.o(.text+0xf0c): undefined reference to =
`Tk_CanvasDrawableCoords'
barchart.o(.text+0xf2d): undefined reference to =
`Tk_CanvasDrawableCoords'
barchart.o(.text+0x101b): undefined reference to `Tk_CanvasGetCoord'
barchart.o(.text+0x11ec): undefined reference to `Tk_CanvasPsY'
barchart.o(.text+0x1203): undefined reference to `Tk_CanvasPsY'
barchart.o(.text+0x128c): undefined reference to `Tk_CanvasPsColor'
barchart.o(.text+0x140a): undefined reference to `Tk_GetUid'
barchart.o(.text+0x1414): undefined reference to `Tk_CanvasTkwin'
barchart.o(.text+0x1421): undefined reference to `Tk_GetColor'
barchart.o(.text+0x1431): undefined reference to `Tk_CanvasPsColor'
barchart.o(.text+0x1442): undefined reference to `Tk_FreeColor'
barchart.o(.text+0x147e): undefined reference to `Tk_CanvasPsColor'
barchart.o(.text+0x14db): undefined reference to `Tk_CanvasPsColor'
barchart.o(.text+0x1576): undefined reference to `Tk_CanvasPsY'
barchart.o(.text+0x162a): undefined reference to `Tk_CanvasPsColor'
barchart.o(.text+0x169d): undefined reference to `Tk_CanvasPsColor'
barchart.o(.data+0x128): undefined reference to `tk_CanvasTagsOption'

I assumed that somehow the linker was not finding the libtk file. I =
double checked the Makefile, found that it does in fact point to the =
correct file and the correct version of the file (libtk4.0.a).

Tkined looks like the ultimate network monitoring application, and I am =
very excited about getting it up and running, but I am not so optimistic =
that I will be able to solve the problem myself, though it seems obvious =
that I have a problem linking the libtk.

I very much need some help discovering the problem. I will keep plugging =
away. Please write soon!