In my tcl tool I use binary shared library in form of file .so + pkgIndex.tcl, then I use package require
to load the actual package. It works perfectly fine on my machine, but when I try to pack it into Starpack, it throws me the error when I try to load that package: couldn't load file "/tmp/tcl_MI8NvK":/tmp/tcl_MI8NvK: undefined symbol: Tcl_AppendResult
The rest of the program in pure tcl works fine.
Looks like I missed some important library there, but not sure which one.
If I compile my shared library with inclusion of /usr/lib/x86_64-linux-gnu/libtcl8.6.a
it gives me another error:
couldn't load file "/tmp/tcl_4cwr95":/tmp/tcl_4cwr95: undefined symbol: inflate
.
I use plain C and SWIG to generate wrapper code to C library. Also I run SWIG with the flag -DUSE_TCL_STUBS.
Thank you in advance.