RE: PROBLEM MAKING TKINED AND SCOTTY

mark newnham at HZBNO05A MAN - GBGMT000 (mark.newnham@grandmet.co.uk)
Thu, 02 May 1996 12:58:46 EDT

I think Juergen is on the right track here with this problem. Tkined/Scotty
should compile out of the box with slackware 1.2.13. I think there are 2
different versions of the tcl/tk libraries for this system, one is for ELF and
the other for a.out. I think you have the wrong one. Unless you have
specifically rebuilt your system for ELF you should use the a.out libraries
(even though it says it is an ELF kernel).

Mark Newnham
Haagen-Dazs
Paris

----------------------------------------------------------------------------

Hi!

mike thatcher <thatcher@rahul.net> wrote:

> After compiling scotty, the link fails with the following

> cc -o scotty scotty.o libscotty.a /usr/lib/libtk4.0.a -L/usr/X11R6/lib
> -lX11 /usr/lib/libtcl7.4.a -lieee -lm
> tclExtension.o(.text+0x10): undefined reference to `dlopen'
> tclExtension.o(.text+0x46): undefined reference to `dlsym'
> tclExtension.o(.text+0x4d): undefined reference to `dlerror'
> tclExtension.o(.text+0x7e): undefined reference to `dlclose'

Adding -ldl to the link step should help. However, the strange thing
is that Tcl 7.4 does not have a module named tclExtension.o. So you
have a strange Tcl/Tk version.

> I just finished building tkined 1.3.4 on linux 1.2.13. When I
> attempt to run it I get the error:

> can't read "argv": no such variable

The argv variable is documented in the tclsh/wish man pages and
initialized in the Tcl/Tk library. Just fix your Tcl/Tk setup.
It is broken.

Juergen

---- End of mail text