From owner-freebsd-hackers Mon Jun 23 03:01:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA25938 for hackers-outgoing; Mon, 23 Jun 1997 03:01:24 -0700 (PDT) Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA25922 for ; Mon, 23 Jun 1997 03:01:15 -0700 (PDT) Received: from localhost (narvi@localhost) by haldjas.folklore.ee (8.8.4/8.8.4) with SMTP id NAA20776; Mon, 23 Jun 1997 13:30:47 +0300 (EEST) Date: Mon, 23 Jun 1997 13:30:47 +0300 (EEST) From: Narvi To: Michael Smith cc: hackers@FreeBSD.ORG, Amancio Hasty Subject: Re: Tcl loadable packages In-Reply-To: <199706230159.LAA14097@genesis.atrad.adelaide.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 [[ >