Re: [tkined] How to install Tcl/Tk8.0 Sun package + Scotty?

John Stumbles (J.D.Stumbles@reading.ac.uk)
Fri, 22 May 1998 19:58:08 +0100 (BST)

On Thu, 21 May 1998, Morgan Sarges wrote:

>
> On 20-May-98 Doug Hughes wrote:

--8<--

> > You could probably make it work by playing with the scripts some more.
> > However, I would have my doubts if the package was made with the
> > --enable-shared
> > flag, and if it wasn't, you may have problems building scotty. It works
> > much better when the Tcl stuff has been built with --enable-shared.
>
> Ill confirm what Doug mentioned above. Grab the tcl/tk source.
>
> The tcl kit and the tk kit builds took about 3 minutes a piece on a
> Sun Ultra I. Scotty build, about 8 minutes (had a typo in something somewhere).

OK I can confirm the "problems building scotty" ;-)

I just built Tcl & Tk from the sources (without --enable-shared) (this is
an Ultra / Solaris 2.5) but trying to make scotty, I got lots of warnings:

ucbcc: Warning: Option -KPIC passed to ld

and then ld complains:

/usr/ccs/bin/ld -G -z text tkiEditor.o tkiObjects.o tkiMethods.o tkiMisc.o tkiFl
ash.o tkiStripchart.o tkiBarchart.o tkiUtil.o tkiInit.oit tkiUnixInit.o -o
tkined.
so -lgen -lsocket -lnsl -lrpcsvc -lresolv
Text relocation remains referenced
against symbol offset in file
Tki_EditorAttribute 0x3914 tkiMethods.o
Tki_EditorAttribute 0x3744 tkiMethods.o

----8<--- lots more ----8<----

ld: fatal: relocations remain against allocatable but non-writable
sections
make: *** [tkined.so] Error 1

What does this mean?!

OTOH if I try to build Tcl with --enable-shared then it fails with ld
complaining:

/usr/ccs/bin/ld -G -z text -o libtcl8.0.so panic.o regexp.o tclAsync.o tclBasic.
o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompEx
pr.o tclCompile.o tclDate.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileNa
me.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.
o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLoad.o tclMain.o tclNamesp.o
tclNotify.o tclObj.o tclParse.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o
tclProc.o tclStringObj.o tclTimer.o tclUtil.o tclVar.o tclMtherr.o tclUnixChan.o
tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixT
ime.o tclUnixInit.o tclUnixNotfy.o fixstrtod.o tclLoadDl.o -ldl -lm -lc
Text relocation remains referenced
against symbol offset in file
<unknown> 0x9c panic.o
<unknown> 0x98 panic.o
panicProc 0x8 panic.o
panicProc 0x14 panic.o
panicProc 0x10 panic.o

----8<--- lots more ----8<----

dlopen 0x8 tclLoadDl.o
dlerror 0x1c tclLoadDl.o
ld: fatal: relocations remain against allocatable but non-writable
sections
make: *** [libtcl8.0.so] Error 1

Ages ago I built Tcl/Tk and scotty tkined on a SPARCstation1 with SunOS
4.1.3 and it worked .... I thought with the passage of time things would
have got easier <sigh!>

One thing occurs to me: there are a couple of apps (CiscoWorks for
switched networks Traffic Director, and Accelar Device Manager) which have
thier own Tcl/Tk installations. I don't think these have installed
themselves as general system-wide apps, just local to the apps their part
of, but I don't know if they could be fouling up my Tcl/Tk/Scotty
installation attempt.

any help appreciated!

--
John Stumbles                                      j.d.stumbles@reading.ac.uk
Computer Services, University of Reading       http://www.rdg.ac.uk/~suqstmbl 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       If a job's worth doing, it'll still be worth doing tomorrow.

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.