load issue with extension in a tclkit
Zbigniew Diaczyszyn <[email protected]> Fri, 30 Aug 2013 10:12:49 +0200
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
I tried to create an extension with the following parameters:
gcc -Wall -shared -fPIC -I ~/Programme/Active-Tcl-8.5/include/ -L ~/Programme/Active-Tcl-8.5/lib/ -ltclstub8.5 -o twofish.so twofish2tcl.c -DUSE_TCL_STUBS
The extension is initialized with the stubs option:
int Twofish_Init(Tcl_Interp *interp) {
if (Tcl_InitStubs(interp, "8.5", 0) == NULL) {
return TCL_ERROR;
}
...
Called with a tclsh interpreter it works well though ldd shows an unresolved symbol:
$ ldd -u twofish.so
4663: ./twofish.so: error: symbol lookup error: undefined symbol: tclStubsPtr (continued)
undefined symbol: tclStubsPtr (./twofish.so)
The created kit executable (AS basekit 8.5.13) shows finally the following error:
couldn't load file "/tmp/tclJ8M144": /tmp/tclJ8M144: undefined symbol: Tcl_InitStubs
In the net I couldn't find any details how a kit is loading extensions.
--
--
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en
---
You received this message because you are subscribed to the Google Groups "starkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.