Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -11,11 +11,11 @@ ifneq ($(TCLKIT_SDK_DIR),) TCLCONFIG_SH_PATH = $(TCLKIT_SDK_DIR)/lib/tclConfig.sh TCL_LDFLAGS = -Wl,-R,$(TCLKIT_SDK_DIR)/lib export TCLKIT_SDK_DIR else -TCLCONFIG_SH_PATH = /usr/lib64/tclConfig.sh +TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh endif TCL_CFLAGS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_INCLUDE_SPEC}") TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}") all: appfs Index: appfs.c ================================================================== --- appfs.c +++ appfs.c @@ -125,11 +125,11 @@ } objv[0] = Tcl_NewStringObj("::appfs::getindex", -1); objv[1] = Tcl_NewStringObj(hostname, -1); - tcl_ret = Tcl_EvalObjv(interp, 2, &objv, 0); + tcl_ret = Tcl_EvalObjv(interp, 2, objv, 0); if (tcl_ret != TCL_OK) { APPFS_DEBUG("Call to ::appfs::getindex failed: %s", Tcl_GetStringResult(interp)); return(NULL); } Index: appfs.tcl ================================================================== --- appfs.tcl +++ appfs.tcl @@ -1,8 +1,9 @@ #! /usr/bin/env tclsh -package require http 2.5 +package require http 2.7 +package require sqlite3 namespace eval ::appfs { variable sites [list] variable cachedir "/tmp/appfs-cache"