[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Last Piece of the Puzzle



Hi,

I've been trying to get mash to compile for a couple of weeks now. With
Marcia's help (thanks!), I think I'm almost there. However there's one last
piece that seems to elude me. That piece is the TK aspect.

In the main mash Makefile, there's a line that says:

TKXLIBS=         -L/usr/X11R6/lib -lXext -lX11 ...

Originally it was: 

TKXLIBS=         -L/usr/X11R6/lib -lXext -lX11 -L/n/vid5/emase/tk8.0.5/unix
-ltk8.0

Several things puzzle me about this particular line. The first is the "TKX"
variable name. This looks like it's asking for a TK extension (dunno why.)

The second thing that puzzles me is that tk 8.0.5 doesn't have a libtk8.0.a
file! Tcl 8.0.5 has it, but not tk. This makes me wonder if version 8.0.5
an oddball release or did the mash configure script misdetect something?

Just out of curiosity I tried this line:

TKXLIBS=         -L/usr/X11R6/lib -lXext -lX11 -L/usr/lib -ltkx8.0.4

Because in /usr/lib there exists a libtkx8.0.4.a but I get missing Tk*
function when make gets to the final link & load.

A small sample of the output:
/n/vid5/emase/mash-1/mash-tkinit.cc:158: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:158: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:160: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:160: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:162: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:162: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:164: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:164: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:166: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:166: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:168: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:168: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:170: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:170: undefined reference to
`Tk_DefineBitmap
'
/n/vid5/emase/mash-1/mash-tkinit.cc:172: undefined reference to `Tk_GetUid'
/n/vid5/emase/mash-1/mash-tkinit.cc:172: undefined reference to
`Tk_DefineBitmap
'
mash-tkinit.o: In function `Mash_TkInit':
/n/vid5/emase/mash-1/mash-tkinit.cc:197: undefined reference to
`Tk_MainWindow'
/n/vid5/emase/mash-1/mash-tkinit.cc:213: undefined reference to
`Tk_CreatePhotoI
mageFormat'
mash-tkinit.o: In function `Mash_AppInit':
/n/vid5/emase/mash-1/mash-tkinit.cc:268: undefined reference to `Tk_Init'
/n/vid5/emase/tcl8.0.5/unix/libtcl8.0.a(tclLoadDl.o): In function
`TclLoadFile':
tclLoadDl.o(.text+0x22): undefined reference to `dlopen'
tclLoadDl.o(.text+0x32): undefined reference to `dlerror'
tclLoadDl.o(.text+0x5e): undefined reference to `dlsym'
tclLoadDl.o(.text+0x9d): undefined reference to `dlsym'
tclLoadDl.o(.text+0xb8): undefined reference to `dlsym'
tclLoadDl.o(.text+0xf7): undefined reference to `dlsym'
						--Mason