Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 1997 13:30:47 +0300 (EEST)
From:      Narvi <narvi@haldjas.folklore.ee>
To:        Michael Smith <msmith@atrad.adelaide.edu.au>
Cc:        hackers@FreeBSD.ORG, Amancio Hasty <hasty@rah.star-gate.com>
Subject:   Re: Tcl loadable packages
Message-ID:  <Pine.BSF.3.96.970623130943.17008B-100000@haldjas.folklore.ee>
In-Reply-To: <199706230159.LAA14097@genesis.atrad.adelaide.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 23 Jun 1997, Michael Smith wrote:

> Narvi stands accused of saying:
> > 
> > 	If one was to make a port of tcl loadable package, how would one
> > 	go about it?
> > 
> > 	Well, I know I have to make a shared library. How am I to name it
> > 	- the original makefile, that does not work on FreeBSD tries to
> > 	just make a xxxx.so file.
> 
> There are a couple of approaches.  You can hack the Makefile to build
> shared libraries the BSD way, or you can write a replacement Makefile that
> uses bsd.lib.mk.  Looking at the latter will at least make it clear how
> shared libraries are made, and let you name it appropriately.

I find it easier to write a new Makefile.

> 
> > 	Where am I to install it?
> 
> /usr/local/lib is probably as good a place as any.  If it has support 

Ok. 

> scripts, I'd suggest putting them in /usr/local/libdata/...

Hm... I don't have libdata here... Is it an official directory?

Or perhaps there should be a separate hierachie for installation and easy
finding of tcl packages? 

I take it that there really should be a standard place to hold the "loader
files" for loadable (that is - in the form of shared libraries) tcl
packages - if a given packages exists, just call /usr/local/.../load_$pkg  
and it gets loaded. It will avoid a lot of compatibilty problems and the
need to re-write the scripts every time we move to a newer tcl version and
newer versions of the packages.

	Sander

> 
> -- 
> ]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
> ]] Genesis Software                     genesis@gsoft.com.au            [[
> ]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
> ]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
> ]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970623130943.17008B-100000>