jcw/critcl — Issue #6: ./build.tcl starkit - fails on FreeBSD
Author: zdia
Created: 2012-01-25 09:03:40+00:00
State: open

I am trying to create some C extensions (sha256) with critcl to run on a FreeBSD system. I did

# ./build.tcl install
Installed package: /usr/local/lib/tcl8.5/critcl3
Installed package: /usr/local/lib/tcl8.5/critcl-util1
Installed package: /usr/local/lib/tcl8.5/critcl-app3
Installed package: /usr/local/lib/tcl8.5/util84 (dict84, lassign84 bundle)
Installed package: /usr/local/lib/tcl8.5/stubs (stubs::* bundle)
Installed application: /usr/local/bin/critcl

# ./build.tcl starkit
can't find package vfs::mk4
while executing
"package require vfs::mk4"
(procedure "_starkit" line 2)
invoked from within
"_starkit"
("eval" body line 1)
invoked from within
"eval _$argv"

I have tried to link _tclsh_ to my _tclkit-cli_ which I have just created with Github's kitgen and which has the vfs::mk4 inside but this fails, too.

The FreeBSD tclsh shows this lib configuration:

% set auto_path
/usr/local/lib/tcl8.5 /usr/local/lib
% info library
/usr/local/lib/tcl8.5

The tree of /usr/local/lib/tcl8.5 is:

|-- auto.tcl
|-- clock.tcl
|-- critcl-app3/
|-- critcl-app3.1/
|-- critcl-class1/
|-- critcl-util1/
|-- critcl3/
|-- critcl3.1/
|-- encoding/
|-- history.tcl
|-- http1.0/
|-- init.tcl
|-- msgs/
|-- opt0.4/
|-- package.tcl
|-- parray.tcl
|-- safe.tcl
|-- stubs/
|-- tclAppInit.c
|-- tclConfig.sh
|-- tclIndex
|-- tm.tcl
|-- tzdata/
|-- util84/
`-- word.tcl

On my Linux system (Slackware 13.37) all works fine.

So I should make a libvfs.so for FreeBSD?