Re: [TDK] Problem with tclapp and LD_LIBRARY_PATH
by Andreas Kupries other posts by this author
Mar 26 2009 11:51AM messages near this date
view in the new Beta List Site
[TDK] Problem with tclapp and LD_LIBRARY_PATH
|
[TDK] TclDevKit 5 Released
asilver@[...].com wrote:
> Hello,
> I'm trying to create a starkit using Spirent's TestCenter Automation
> package. I trying to reference Spirent's package external to the
> interpreter I'm using.
>
> Running the script without a starkit requires the LD_LIBRARY_PATH variable
> to be set as follows:
>
> LD_LIBRARY_PATH=/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linu
x
>
> Running the script normally without a starkit, works fine.
> My first attempt at creating the starkit resulting in an error message
> saying the "stc package" could not located. To fix that problem, I added
> to the auto_path variable inside the application.
> lappend auto_path [file nativename /usr/local/ActiveTcl/lib/stc2.20]
> package require -exact stc 2.20
Ok.
> Now the package can be found but there is still an error when the package
> is attempted to be loaded. I've included the error message below. This
> is running on RedHat Linux using TDK 3.2. I also tried setting the
> LD_LIBRARY_PATH variable inside the application, right before the package
> require command but that didn't have any effect.
>
> set env (LD_LIBRARY_PATH)
> "/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux"
>
> Error when script is run......
>
> Error Occured while loading the Spirent Automation Internal Utility
> Library (couldn't load file
> "/usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux/libsTcl.so":
> /usr/local/stc/Spirent_TestCenter_2.20/Spirent_TestCenter_Application_Linux/libsTcl.so:
> undefined symbol: Tcl_DeleteInterp).
This seems to indicate, to me, that the shared library in the Spirent package
was not compiled with stubs and not linked against libtclstubs.a, but against
the regular libtcl.so
This is a known thing to not work with starpacks. Starpacks can use only
stubs-based shared libraries.
Andreas
_______________________________________________
TDK mailing list
TDK@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk
Thread:
asilver
Andreas Kupries
|