Newsgroups: comp.lang.tcl,comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!yeshua.marcam.com!usc!howland.reston.ans.net!EU.net!sun4nl!freya.let.rug.nl!vannoord
From: vannoord@let.rug.nl (Gertjan van Noord)
Subject: ProTcl on HPUX and Sicstus2.1#9
Sender: news@let.rug.nl (News system at let.rug.nl)
Message-ID: <1994Oct26.124040.5053@let.rug.nl>
Date: Wed, 26 Oct 1994 12:40:40 GMT
Nntp-Posting-Host: vidar.let.rug.nl
Organization: Faculteit der Letteren, Rijksuniversiteit Groningen, NL
Keywords: ProTcl Prolog Sicstus
Lines: 35
Xref: glinda.oz.cs.cmu.edu comp.lang.tcl:20917 comp.lang.prolog:11496

Problems with ProTcl on HPUX and Sicstus 2.1#9
----------------------------------------------

I have been trying to get ProTcl 1.3 to work with Sicstus 2.1 
patch level 9, on a HP machine (HPUX 9.0, series 700).

I was succesful in getting the following combinations to work:
- Linux + Sicstus2.1 patchlevels 8 and 9, by linking the ProTcl
  files statically
- HPUX + Sicstus2.1 patchlevel 8, by linking both the ProTcl
  and library(charsio.o) statically.

Note that in each case I load a few Tcl/Tk extensions with ProTcl:
BLT, and TkSteal.

On our HP-UX machine we have compiled Sicstus 2.1.9 both with
GCC and with the ordinary HP cc. Both versions of sicstus built
in this way give `bus errors' if I try some of the ProTcl
examples. 

Surprisingly, using dynamic loading works a little better than
static loading. If I load dynamically, I get the demo window
if I try tk_demo/0. However, using some of the examples of this
demo window I get segmentation violations (e.g. the Canvases -
Arrow shapes example). If I use static loading, I never obtain
the demo window, but I get a bus error immediately. 

Using dynamic loading I get a couple of the following warnings:

ld: (Warning) Inter-quadrant branch in /usr/lib/X11R5.supplement/libtcl.a(tclExpr.o)


As you see, I use a static tcl and tk library. Tcl and Tk are compiled
using hp's cc. I might try to re-compile Tcl/Tk with GCC.

