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 >> tcljava-user
tcljava-user
Re: [tcljava-user] loading .so in Tcl that is created from Java
by Scott Serr other posts by this author
Mar 23 2006 9:51PM messages near this date
Re: [tcljava-user] loading .so in Tcl that is created from Java | [tcljava-user] fileevent and sockets in jacl
On 03/23/06 20:37, Mo DeJong wrote:

> On Thu, 23 Mar 2006 17:30:20 -0700
> Scott Serr <sserr@[...].com> wrote:
>   
> 
> >Hello Tcl Blenders,
> >
> >We are able to use TclBlend to create a (real, not Jacl) Tcl interpreter
> >    
> >
> 
> I will pretend you did not say that :)
>   
> 
I should have clarified the need to clarify.  We were doing new 
tcl.lang.Interp() and where using Jacl unknowingly because it was in our 
CLASSPATH first?

I read through the mailing list and you seemed to imply Jacl would not 
allow for the Tcl "load" command.  I did notice when we were 
"accidently" using it, that it seemed to not inherit environment 
variables in $env/$::env.  So setting up LD_LIBRARY_PATH wasn't an 
option.  Is this normal?  Am I way out there?

> >Tcl starting the JVM,  Tcl "load foo.so" also loads "bar.so" for us.
> >
> >JVM starting the Tcl Interpreter, Tcl "load foo.so" succeeds but fails 
> >to load bar.so and has un resolved dependencies.
> >
> >Any ideas of how to solve this?  We thought about combining our dozen or 
> >so *.so files into one...
> >    
> >
> 
> Humm, another approach you can try is just loading the other
> shared libs before you load the one with the deps. Running load Tcl command
> with an empty string as the init method will raise an error, but it does
> do the OS load behind the scenes. I would give that a try and see if
> it fixes things before trying to rebuild libraries.
> 
> I hope that helps
> Mo DeJong
>   
> 
We will try that...  I guess ldd will show us what order to try to load 
them in.  Thanks Mo!  You and TclBlend are great, excellent work!  
Without it we would have to be writing large (steaming) piles of C++ 
instead of (fresh) cart-loads of Java.  And TclBlend is so much easier 
than calling C++ from Tcl, unless I totally missed something. :)

Thanks,
Scott Serr




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
tcljava-user mailing list
tcljava-user@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-user
Thread:
Scott Serr
Mo DeJong
Scott Serr

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