*BSD News Article 82007


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!news-peer.gsl.net!news.gsl.net!news.sprintlink.net!news-peer.sprintlink.net!server1.nw.ixe.net!server1.adam.ixe.net!wirehub!sun4nl!Inter.NL.net!sci.kun.nl!usenet
From: Jan Nijtmans <nijtmans@nici.kun.nl>
Newsgroups: comp.lang.tcl,comp.unix.bsd.freebsd.misc
Subject: Re: loading libtk41/42 fails
Date: Fri, 01 Nov 1996 12:24:53 +0100
Organization: NICI (Nijmegen Institute of Cognition and Informatics)
Lines: 43
Message-ID: <3279DE04.4F95@nici.kun.nl>
References: <559420$oaf@news.zipnet.net>
NNTP-Posting-Host: ergolab4.psych.kun.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
To: mi@aldan.ziplink.net
Xref: euryale.cc.adfa.oz.au comp.lang.tcl:50670 comp.unix.bsd.freebsd.misc:30364

Mikhail Teterin wrote:
> tclsh7.6
> % load libtk4.2.so
> couldn't load file "libtk4.2.so": 19886:tclsh7.6: rld: Fatal Error: unresolvable symbol in /usr/local/lib/libtk4.2.so: XResizeWindow
......
> As you see, this is not smth particular to 7.5/4.2 . And I do have a FreeBSD
> box where this is working. What should I fix?

Many things. The fixes to make this work are all in Itcl2.1
(which is based on Tcl7.5p1/Tk4.1p1) or the plus-patches:

	http://www.cogsci.kun.nl/tkpvm/pluspatch.html

Don't worry; It's not your fault.... :-). Probably the option
"-lX11" is just missing when linking the shared library. A
quick fix is the patch below (re-configure Tcl and Tk, then
re-link libtk). Still the event handling will
not be as expected, but at least Tk should load correctly.

	Jan Nijtmans
	NICI (Nijmegen Institute of Cognition and Information)
	email: nijtmans@nici.kun.nl
	url:   http://www.cogsci.kun.nl/~nijtmans

*** unix/configure.orig	Wed Oct 16 18:24:34 1996
--- unix/configure	Fri Nov  1 10:50:28 1996
***************
*** 3253,3259 ****
      IRIX-5.*|IRIX-6.*)
  	SHLIB_CFLAGS=""
  	SHLIB_LD="ld -shared -rdata_shared"
! 	SHLIB_LD_LIBS=""
  	SHLIB_SUFFIX=".so"
  	DL_OBJS="tclLoadDl.o"
  	DL_LIBS=""
--- 3853,3859 ----
      IRIX-5.*|IRIX-6.*)
  	SHLIB_CFLAGS=""
  	SHLIB_LD="ld -shared -rdata_shared"
! 	SHLIB_LD_LIBS='${LIBS}'
  	SHLIB_SUFFIX=".so"
  	DL_OBJS="tclLoadDl.o"
  	DL_LIBS=""