ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tdk
tdk
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved