Statically-linked tkined/scotty/etc. on BSDI 2.1

Nicholas van Veldhuisen (vanveln@research.oneworld.com)
Mon, 10 Mar 1997 15:59:38 -0800

So I have gone through the steps of statically linking
Tcl 7.6 and Tk 4.2 on BSDI 2.1, then made scotty statically
linked. However, tkined is a wish4.2 script that fails
on the

package require Tkined* 1.4

lines, due to the pkgIndex.tcl statement that attempts to
load a dynamically loadable object file. But, if the object
file is created as a static archive library and linked into the
executable . Could this be fixed by statically linking tkined.a
to the wish4.2 executable? I have thus far tried and failed.
There appears to be some small feature missing with all of
this garbage that I'm failing to get.

My hopes were slightly raised earlier when Cameron Laird
wrote this:

The "modern" approach to extending Tcl
is to have *no* dedicated executable
application of the sort you describe,
but only loadable object modules which
a standard interpreter or allied exec-
utive invokes as necessary. I personally
need statically-linked scotty, so I've
written up enough of the directions that
you were able to create the same. In
principle, either of us could also create
a statically-linked tkined, but I haven't
needed to, and you might not know how.

So, for example, in this tkined script, how does one get the [EDITOR]
command to work? (I got that far by sourcing all the library
TCL files within tkined, but the [EDITOR] command did not appear
to be within those.) What object module contains this? How
is that statically linked into the wish4.2 executable ...
or scotty, or something else? I'm so very confused by how anything
works once it is all "statically-linked," meaning that
the tnm.a and tkined.a files are created as "static object
file libraries" or "static shared libraries", then linked into an
executable ... or am I missing the point? Is there ANY
documentation one could access, or possibly examples, that
will do anything with statically linked scotty that is of
a graphical nature, as I've heard tkined is, but have
not had the pleasure to view due to the dl-routines of
the BSDI 2.1 and 2.01 operating system.

Just as I think I've actually come to some understanding
of what the problem is and how I could possibly work around it,
I am completely at a loss for how to get any of the examples
to work without dynamically loaded object modules.

- Nick

Nicholas W. vanVeldhuisen P.O. Box 1589
Solutions Engineer II Corvallis, OR 97339-1589
One World Internetworking(sm) phone (541) 758-1112
http://www.oneworld.com fax (541) 759-5012
vanveln@corp.oneworld.com

"Facilitating Communications with the Global Marketplace"

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Offering Superior Software Solutions and Customer Service
for your Internet Business Needs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

--
!! 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.